Apply space utilization data to manage storage resources

Using vmkfstools:

OPTIONS FOR FILE SYSTEMS:

vmkfstools -C –createfs [vmfs3|vmfs5]

-b –blocksize #[mMkK]

-S –setfsname fsName

-Z –spanfs span-partition

-G –growfs grown-partition

deviceName

-P –queryfs -h –humanreadable

-T –upgradevmfs

vmfsPath

-y –reclaimBlocks vmfsPath [–reclaimBlocksUnit #blocks]

OPTIONS FOR VIRTUAL DISKS:

vmkfstools -c –createvirtualdisk #[gGmMkK]

-d –diskformat [zeroedthick

|thin

|eagerzeroedthick

]

-a –adaptertype [buslogic|lsilogic|ide

|lsisas|pvscsi]

-W –objecttype [file|vsan]

–policyFile <fileName>

-w –writezeros

-j –inflatedisk

-k –eagerzero

-K –punchzero

-U –deletevirtualdisk

-E –renamevirtualdisk srcDisk

-i –clonevirtualdisk srcDisk

-d –diskformat [zeroedthick

|thin

|eagerzeroedthick

|rdm:<device>|rdmp:<device>

|2gbsparse]

-W –object [file|vsan]

–policyFile <fileName>

-N –avoidnativeclone

-X –extendvirtualdisk #[gGmMkK]

[-d –diskformat eagerzeroedthick]

-M –migratevirtualdisk

-r –createrdm /vmfs/devices/disks/…

-q –queryrdm

-z –createrdmpassthru /vmfs/devices/disks/…

-v –verbose #

-g –geometry

-x –fix [check|repair]

-e –chainConsistent

-Q –objecttype name/value pair

–uniqueblocks childDisk

vmfsPath

OPTIONS FOR DEVICES:

-L –lock [reserve|release|lunreset|targetreset|busreset|readkeys|readresv

] /vmfs/devices/disks/…

-B –breaklock /vmfs/devices/disks/…

vmkfstools -H –help

Create a 1GB VMDK Thin

/vmfs/volumes/54e226a0-5e31baf3-0477-005056ba5da5/Win7-01 # vmkfstools -c 1GB -d thin Win7-02.vmdk

Create a 1GB VMDK zeroedthick LSILOGIC

/vmfs/volumes/54e226a0-5e31baf3-0477-005056ba5da5/Win7-01 # vmkfstools -c 1GB -d zeroedthick -a LSILOGIC Win7-04.vmdk

Create: 100% done.

Extend the virtual disk by 3GB;

# vmkfstools -X 3G /vmfs/volumes/54e226a0-5e31baf3-0477-005056ba5da5/Win7-01/Win7-04.vmdk

Grow: 100% done.

Inflate the virtual disk, defaults to eagerzeroedthick. (thin to thick provisioning)

/vmfs/volumes/54e226a0-5e31baf3-0477-005056ba5da5/Win7-01 # vmkfstools –inflatedisk Win7-01_1.vmdk

Inflate: 100% done.

vmkfstools –D

/vmfs/volumes/54e226a0-5e31baf3-0477-005056ba5da5/Win7-01 # vmkfstools -D Win7-02.vmdk

Lock [type 10c00001 offset 270616576 v 175, hb offset 3305472

gen 101, mode 0, owner 00000000-00000000-0000-000000000000 mtime 337998

num 0 gblnum 0 gblgen 0 gblbrk 0]

Addr <4, 643, 81>, gen 165, links 1, type reg, flags 0, uid 0, gid 0, mode 600

len 493, nb 0 tbz 0, cow 0, newSinceEpoch 0, zla 4305, bs 8192

TBZ of zero indicates an eagerzeroedthick VMDK, otherwise it is zeroedthick or lazy zeroed

To delete VMDK:

vmkfstools -U Win7-02.vmdk

/vmfs/volumes/54e226a0-5e31baf3-0477-005056ba5da5/Win7-01 # vmkfstools -U Win7-02.vmdk

/vmfs/volumes/54e226a0-5e31baf3-0477-005056ba5da5/Win7-01 # ls -ali

total 39881744

293642436 drwxr-xr-x 1 root root 2380 Mar 27 20:23 .

4 drwxr-xr-t 1 root root 2380 Mar 27 18:00 ..

297836740 -rw

Advertisements

About Ahmad Sabry ElGendi

https://www.linkedin.com/pub/ahmad-elgendi/94/223/559
This entry was posted in Uncategorized, VCAP5-DCA, Vmware. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s