...
If you do not see the vSphere hard disk, force a rescan (or reboot which is less elegant but just as effective)
Code Block | ||||
---|---|---|---|---|
| ||||
for host in $(ls -1d /sys/class/scsi_host/*); do echo "- - -" > ${host}/scan ; done for device in $(ls -1d /sys/class/scsi_disk/*); do echo "1" > ${device}/device/rescan ; done |
...
Format the disk partition. Get the device name from the previous lsblk output
Code Block language bash theme Emacs fdisk /dev/sdb n (new partition) p (primary) (Press ENTER) (Use default partition number) (Press ENTER) (Use default first sector) (Press ENTER) (Use default last sector) t (change the partition type) 8e (Linux LVM) w (write)
in order to see this partition, read the partition table with "partprobe" (or reboot which is less elegant but just as effective)
Create the Physical Volume for LVM
...