Dear
Thanks for your valueable time.
I am trying to grow vmfs in vSphere Hypervisor. I fail to expand datastore in GUI, error as "failed to expand vmfs datastore".
I have 2 question for below output.
1. does partedUtil have a manual or mention in part of esxi 6.7 manual? confirm not mention in storage chapter.
2. the red high light command is use for what? lower case -v is verbose output. But what is uper case -V ?
Thank you.
[root@localhost:/bin] ls /vmfs/devices/disks/
mpx.vmhba1:C0:T0:L0 vml.0000000000766d686261313a303a30
mpx.vmhba1:C0:T0:L0:1 vml.0000000000766d686261313a303a30:1
mpx.vmhba1:C0:T0:L0:2 vml.0000000000766d686261313a303a30:2
mpx.vmhba1:C0:T0:L0:3 vml.0000000000766d686261313a303a30:3
mpx.vmhba1:C0:T0:L0:5 vml.0000000000766d686261313a303a30:5
mpx.vmhba1:C0:T0:L0:6 vml.0000000000766d686261313a303a30:6
mpx.vmhba1:C0:T0:L0:7 vml.0000000000766d686261313a303a30:7
mpx.vmhba1:C0:T0:L0:8 vml.0000000000766d686261313a303a30:8
mpx.vmhba1:C0:T0:L0:9 vml.0000000000766d686261313a303a30:9
[root@localhost:/bin] partedUtil getUsableSectors "/vmfs/devices/disks/mpx.vmhba1:C0:T0:L0"
34 209715166
[root@localhost:/bin] partedUtil getptbl "/vmfs/devices/disks/mpx.vmhba1:C0:T0:L0"
gpt
13054 255 63 209715200
1 64 8191 C12A7328F81F11D2BA4B00A0C93EC93B systemPartition 128
5 8224 520191 EBD0A0A2B9E5443387C068B6B72699C7 linuxNative 0
6 520224 1032191 EBD0A0A2B9E5443387C068B6B72699C7 linuxNative 0
7 1032224 1257471 9D27538040AD11DBBF97000C2911D1B8 vmkDiagnostic 0
8 1257504 1843199 EBD0A0A2B9E5443387C068B6B72699C7 linuxNative 0
9 1843200 7086079 9D27538040AD11DBBF97000C2911D1B8 vmkDiagnostic 0
2 7086080 15472639 EBD0A0A2B9E5443387C068B6B72699C7 linuxNative 0
3 15472640 83886046 AA31E02A400F11DB9590000C2911D1B8 vmfs 0
[root@localhost:/bin] partedUtil resize "/vmfs/devices/disks/mpx.vmhba1:C0:T0:L0" 3 15472640 209715200
Error: Can't have a partition outside the disk!
Geometry invalid
[root@localhost:/bin] partedUtil resize "/vmfs/devices/disks/mpx.vmhba1:C0:T0:L0" 3 15472640 100000000
[root@localhost:/bin] partedUtil resize "/vmfs/devices/disks/mpx.vmhba1:C0:T0:L0" 3 15472640 200000000
[root@localhost:/bin] partedUtil resize "/vmfs/devices/disks/mpx.vmhba1:C0:T0:L0" 3 15472640 209715199
Error: Unable to satisfy all constraints on the partition.
Error: Can't have overlapping partitions.
Disk set partition failed
[root@localhost:/bin] partedUtil resize "/vmfs/devices/disks/mpx.vmhba1:C0:T0:L0" 3 15472640 209715166
[root@localhost:~] vmkfstools -V
[root@localhost:~] vmkfstools --growfs "/vmfs/devices/disks/mpx.vmhba1:C0:T0:L0:3" "/vmfs/devices/disks/mpx
.vmhba1:C0:T0:L0:3"
Google took me to these:
https://kb.vmware.com/s/article/1036609
https://kb.vmware.com/s/article/1003988
Dear Scott
Thanks for reply.
I saw that link so I can have above output. I would like to know all information and I though manual should have that.
So I seek "manual". Maybe some not important utility will not mention in manual. I assume partedUtil in this situation. So I had too forget it.
In the other way question for vmkfstools is "why -V not show in --help output?"
last chapter of "vSphere Storage" is using vmkfstools, also not show -V option.
Thank you.
[root@localhost:~] vmkfstools -H
OPTIONS FOR FILE SYSTEMS:
vmkfstools -C --createfs [vmfs5|vmfs6|vfat]
-S --setfsname fsName
-Y --unmapGranularity #[bBsSkKmMgGtT]
-O --unmapPriority <none|low|medium|high>
-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 #[bBsSkKmMgGtT]
-d --diskformat [zeroedthick
|thin
|eagerzeroedthick
]
-a --adaptertype [deprecated]
-W --objecttype [file|vsan|vvol|pmem|upit]
--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|vvol]
--policyFile <fileName>
-N --avoidnativeclone
-X --extendvirtualdisk #[bBsSkKmMgGtT]
[-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
--dry-run [-K]
vmfsPath
OPTIONS FOR DEVICES:
-L --lock [reserve|release|lunreset|targetreset|busreset|readkeys|readresv
] /vmfs/devices/disks/...
-B --breaklock /vmfs/devices/disks/...
OPTIONS FOR VMFS MODULE:
--traceConfig [0|1]
--dataTracing [0|1]
--traceSize <x> (MB)
vmkfstools -H --help