Friday, January 6, 2012

vmkfstools

1. To create RDM to pass to SVM
cd /vmfs/devices/disks/
ls t10.ATA_____ST91000640NS________________________________________9XG066WP
mkdir /vmfs/volumes/localdatastore/rdms; cd rdms
vmkfstools -z /vmfs/devices/disks/t10.ATA_____ST91000640NS________________________________________9XG066WP t10.ATA_____ST91000640NS________________________________________9XG066WP.vmdk

2. vmkfstools -i ../ServiceVM/master/ServiceVM-1.12_Ubuntu/ServiceVM-1.12_Ubuntu.vmdk ServiceVM-1.12_Ubuntu.vmdk

This is to expand cloned .vmdk file and multiple vmdk files.
mkdir /vmfs/volumes/localdatastore/ServiceVM; cd ServiceVM and run the above command,

3. vmfs/volumes/4ecc5264-e9e3dc78-671b-0025902e98e1/Windows7_VMFS3_Nutanix # rm -rf Windows7_VMFS3_Nutanix-flat.vmdk
rm: cannot remove 'Windows7_VMFS3_Nutanix-flat.vmdk': No such file or directory
/vmfs/volumes/4ecc5264-e9e3dc78-671b-0025902e98e1/Windows7_VMFS3_Nutanix # vmkfstools -D Windows7_VMFS3_Nutanix-flat.vmdk
Lock [type 10c00001 offset 24301568 v 49, hb offset 4141056
gen 229, mode 0, owner 00000000-00000000-0000-000000000000 mtime 9443 nHld 0 nOvf 0]
Addr <4, 18, 26>, gen 29, links 1, type reg, flags 0, uid 0, gid 0, mode 600
len 190827200512, nb 2999 tbz 0, cow 0, newSinceEpoch 0, zla 3, bs 1048576
vmkfstools --activehosts /vmfs/volumes/4ecc5264-e9e3dc78-671b-0025902e98e1/Windows7_VMFS3_Nutanix
Found 2 actively heartbeating hosts on volume '/vmfs/volumes/4ecc5264-e9e3dc78-671b-0025902e98e1/Windows7_VMFS3_Nutanix'
(1): MAC address 00:25:90:48:b4:6c
(2): MAC address 00:25:90:48:b4:68
http://www.virtuallyghetto.com/2010/07/vsphere-41-is-gift-that-keeps-on-giving.html
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1003397
http://spininfo.homelinux.com/news/Virtual_Machine_and_Guest_OS/2011/04/15/Can_t_delete_snapshots_-_even_unmounted_disks

vmkfstools -P /vmfs/volumes/NTNX_shared_datastore1
VMFS-3.54 file system spanning 1 partitions.
File system label (if any): NTNX_shared_datastore1
Mode: public
Capacity 268167020544 (255744 file blocks * 1048576), 267565137920 (255170 blocks) avail
UUID: 4ee6e755-68d3f64c-1040-00259048b4e2
Partitions spanned (on "lvm"):
t10.NUTANIX_shared_datastore1_a118bcd634d6150d5816d20eeeba58b8f7188938:1
Is Native Snapshot Capable: NO

-L --lock [reserve|release|lunreset|targetreset|busreset|readkeys|readresv] /vmfs/devices/disks/...
-B --breaklock /vmfs/devices/disks/...

No comments: