Seems this is becoming part of a series. Like the last few posts, this one was also produced from objective 1.1 of the VCDX Blueprint, and is part of my exam prep.
Task:
Manage VMFS file systems using command line tools.
Solution:
[root@ProfessionalVMware root]# vmkfstools
No valid command specified
OPTIONS FOR FILE SYSTEMS:
vmkfstools -C –createfs vmfs3
-b –blocksize #[mMkK]
-S –setfsname fsName
-Z –extendfs extension-partition
deviceName
-P –queryfs -h –humanreadable
-T –tovmfs3
-x –upgradetype [zeroedthick|eagerzeroedthick|thin]
-u –upgradefinish
vmfsPath
In this case I’ve only included the relevant output.
Creating a VMFS file system:
[root@ProfessionalVMware root]# vmkfstools –create vmfs3 –b 8M –s NewVolume vmhba1:2:0:3
Getting some details on a VMFS file system:
[root@ProfessionalVMware root]# vmkfstools -P /vmfs/volumes/storage1/
VMFS-3.31 file system spanning 1 partitions.
File system label (if any): storage1
Mode: public
Capacity 34628173824 (33024 file blocks * 1048576), 34158411776 (32576 blocks) avail
UUID: 4b6ac385-66ac6b08-056e-000c29a47f2f
Partitions spanned (on "lvm"):
vmhba0:0:0:3
While the content may seem obvious to some, this post is here to help those that still have their exams to prep for, or find themselves wandering about aimlessly on the CLI trying to configure NFS. Thanks for tuning in.
One thought on “Manage VMFS File Systems Using the CLI – VCDX Prep”
Comments are closed.