This shows you the differences between two versions of the page.
vmware:disk_identify [2023/01/18 09:59] manu created |
vmware:disk_identify [2023/01/18 10:00] (current) manu |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== VMware identify a disk on a guest linux ====== | ====== VMware identify a disk on a guest linux ====== | ||
- | On the ESXi console, navigate to the VM directory and extract UUIDs from the vmdk files: | + | On the ESXi console, navigate to the VM directory and extract UUIDs from the vmdk files: |
+ | <cli prompt='#'> | ||
[root@XCORANODE1:/]# cd /vmfs/volumes/50eb5287-4ebf3591/oracle-node10 | [root@XCORANODE1:/]# cd /vmfs/volumes/50eb5287-4ebf3591/oracle-node10 | ||
Line 22: | Line 22: | ||
oracle-node10.vmdk :"6000C29cacd0ff627d86bd3489c6c5e3" | oracle-node10.vmdk :"6000C29cacd0ff627d86bd3489c6c5e3" | ||
+ | </cli> | ||
- | On Linux guest (Red Hat/Oracle Linux 6 or 7), extract the UUID with scsi_id commands: | ||
+ | On Linux guest (Red Hat/Oracle Linux 6 or 7), extract the UUID with scsi_id commands: | ||
+ | <cli prompt='#'> | ||
[root@oracle-node10 ~]# ls -1 /dev/sd?|while read device; do echo -n $device :; /lib/udev/scsi_id --page=0x83 --whitelisted --device=$device; done | [root@oracle-node10 ~]# ls -1 /dev/sd?|while read device; do echo -n $device :; /lib/udev/scsi_id --page=0x83 --whitelisted --device=$device; done | ||
Line 41: | Line 43: | ||
/dev/sdg :36000c29e2e7074291cbca476ad8cf554 | /dev/sdg :36000c29e2e7074291cbca476ad8cf554 | ||
- | /dev/sdh :36000c29768dd2bc0ca3af87b113a7b08 | + | /dev/sdh :36000c29768dd2bc0ca3af87b113a7b08 |
+ | </cli> |