vmWare 上的 Ubuntu:添加了新磁盘,但找不到它

vmWare 上的 Ubuntu:添加了新磁盘,但找不到它

vmware 系统管理员使用 ubuntu 为现有(正在运行)的虚拟机添加了新磁盘。

我在这里粘贴有关用于理解驱动器映射的常用命令的信息

来自 VMware 控制台的信息

Hard disk 1 - 80 GB - Scsi 0:0
Hard disk 2 - 200 GB - Scsi 0:1
Hard disk 3 - 80 GB - Scsi 0:2

第三个磁盘是新的,我需要格式化和安装。

更多信息请关注。

lsb_release -a

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.5 LTS
Release:        16.04
Codename:       xenial

猫/ proc /分区

major minor  #blocks  name

  11        0    1048575 sr0
   2        0          4 fd0
   8        0   83886080 sda
   8        1     498688 sda1
   8        2          1 sda2
   8        5   83384320 sda5
   8       16  209715200 sdb
   8       17  208983351 sdb1
 252        0   82333696 dm-0
 252        1    1048576 dm-1

$ ls /dev/sd*
/dev/sda  /dev/sda1  /dev/sda2  /dev/sda5  /dev/sdb  /dev/sdb1

sudo 重新扫描-scsi-bus.sh

Scanning SCSI subsystem for new devices
Scanning host 0 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 1 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
 Scanning for device 1 0 0 0 ...           
OLD: Host: scsi1 Channel: 00 Id: 00 Lun: 00
      Vendor: NECVMWar Model: VMware IDE CDR10 Rev: 1.00
      Type:   CD-ROM                           ANSI SCSI revision: 05
Scanning host 2 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
 Scanning for device 2 0 0 0 ... 
OLD: Host: scsi2 Channel: 00 Id: 00 Lun: 00
      Vendor: VMware   Model: Virtual disk     Rev: 1.0 
      Type:   Direct-Access                    ANSI SCSI revision: 02
 Scanning for device 2 0 1 0 ... 
OLD: Host: scsi2 Channel: 00 Id: 01 Lun: 00
      Vendor: VMware   Model: Virtual disk     Rev: 1.0 
      Type:   Direct-Access                    ANSI SCSI revision: 02
0 new or changed device(s) found.          
0 remapped or resized device(s) found.          
0 device(s) removed.

sudo fdisk -l

Disk /dev/sda: 80 GiB, 85899345920 bytes, 167772160 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x03aba350

Dispositivo Avvio   Start      Fine   Settori  Size Id Tipo
/dev/sda1   *        2048    999423    997376  487M 83 Linux
/dev/sda2         1001470 167770111 166768642 79,5G  5 Esteso
/dev/sda5         1001472 167770111 166768640 79,5G 8e Linux LVM


Disk /dev/sdb: 200 GiB, 214748364800 bytes, 419430400 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x78a76f80

Dispositivo Avvio Start      Fine   Settori   Size Id Tipo
/dev/sdb1          2048 417968750 417966703 199,3G 83 Linux


Disk /dev/mapper/ubuntu--1604--64--ftp--vg-root: 78,5 GiB, 84309704704 bytes, 164667392 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/ubuntu--1604--64--ftp--vg-swap_1: 1 GiB, 1073741824 bytes, 2097152 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

sudo lsblk -f

NAME                                 FSTYPE      LABEL UUID                                   MOUNTPOINT
fd0                                                                                           
sda                                                                                           
├─sda1                               ext2              5ad72be2-9e4e-4ccc-971f-8efa938b7a57   /boot
├─sda2                                                                                        
└─sda5                               LVM2_member       Afot5Y-kyl3-QesZ-sMgg-dmiL-38dK-kKZJZP 
  ├─ubuntu--1604--64--ftp--vg-root   ext4              eb40816a-26a9-4507-878e-e2fb4de57b37   /
  └─ubuntu--1604--64--ftp--vg-swap_1 swap              935d9909-e290-4229-9c47-e67aa1516709   [SWAP]
sdb                                                                                           
└─sdb1                               ext4              506cf3de-d2da-4970-a2ac-e823eba06987   /bacula
sr0  

问题

我不知道如何找到新设备,进行格式化并安装。

我如何检测新添加的硬盘?

我以前没有这些命令的输出列表 - ls /dev/sd*

所以我来这里寻求你的帮助

答案1

我可以确认问题在于系统管理员并未真正添加硬盘。

对不起。

成功添加新硬盘后,在 SCSI 3:0 我可以看到它为 /sdc1

相关内容