VMware vSphere

 View Only

Expanding datastore from command line

  • 1.  Expanding datastore from command line

    Posted Mar 15, 2023 05:16 AM

    I posted this before but some gremlin devoured the post, no idea what happened! 

    There are two datastores I am trying to expand with the following Extents, they are both on a HPE MSA 2060FC:

    naa.600c0ff00066518855fe4f6301000000, partition 1
    naa.600c0ff000666207a7fe4f6301000000, partition 1

    When I try do the expansion through the GUI it shows the free space and lets me expand the partition in the GUI but then fails with the error below:

    Expand Vmfs Datastore
    Key
    haTask-ha-host-vim.host.DatastoreSystem.expandVmfsDatastore-1676674412

    Description
    Expand the capacity of a VMFS datastore extent

    State
    Failed - Cannot change the host configuration.

    Errors
    Failed to update disk partitions for /vmfs/devices/disks/naa.600c0ff000666207a7fe4f6301000000.

    This issue seems to be caused by the datastore you are trying to expand being the location ESX is installed to. I tried following the steps in the VMWare KB (https://kb.vmware.com/s/article/2002461) but found that the partition listed as the bootbank isn't either of the extents I'm trying to expand so I'm a bit confused and wondering if there is something else wrong. 

    ls -ltrh

    lrwxrwxrwx 1 root root 49 Oct 18 20:25 bootbank -> /vmfs/volumes/c8ad2a21-3a40e86c-21bd-799fe63ee25c

    vmkfstools -Ph -v10 bootbank

    Could not retrieve max file size: Inappropriate ioctl for device
    vfat-0.04 (Raw Major Version: 0) file system spanning 1 partitions.
    File system label (if any): BOOTBANK1
    Mode: private
    Capacity 4 GB, 3.7 GB available, file block size 64 KB, max supported file size 0 bytes
    Disk Block Size: 512/0/0
    UUID: c8ad2a21-3a40e86c-21bd-799fe63ee25c
    Logical device: t10.NVMe____HPE_NS204i2Dp_Gen102B_Boot_Controller_____010000063A435000:5
    Partitions spanned (on "disks"):
    t10.NVMe____HPE_NS204i2Dp_Gen102B_Boot_Controller_____010000063A435000:5
    Is Native Snapshot Capable: NO
    OBJLIB-LIB: ObjLib cleanup done.
    WORKER: asyncOps=0 maxActiveOps=0 maxPending=0 maxCompleted=0

    Below is the output from the commands that were requested in the previous post before it vanished into the ether. 

    ls -lisa /vmfs/devices/disks/

    total 17228468210
    5 0 drwxr-xr-x 2 root root 512 Mar 14 17:18 .
    1 0 drwxr-xr-x 16 root root 512 Mar 14 17:18 ..
    208 5820612608 -rw------- 1 root root 5960307310592 Mar 14 17:18 naa.600c0ff00066518855fe4f6301000000
    211 2324838400 -rw------- 1 root root 2380634522112 Mar 14 17:18 naa.600c0ff00066518855fe4f6301000000:1
    218 5820612608 -rw------- 1 root root 5960307310592 Mar 14 17:18 naa.600c0ff000666207a7fe4f6301000000
    216 2324838400 -rw------- 1 root root 2380634522112 Mar 14 17:18 naa.600c0ff000666207a7fe4f6301000000:1
    188 468785664 -rw------- 1 root root 480036519936 Mar 14 17:18 t10.NVMe____HPE_NS204i2Dp_Gen102B_Boot_Controller_____010000063A435000
    173 102400 -rw------- 1 root root 104857600 Mar 14 17:18 t10.NVMe____HPE_NS204i2Dp_Gen102B_Boot_Controller_____010000063A435000:1
    176 4193280 -rw------- 1 root root 4293918720 Mar 14 17:18 t10.NVMe____HPE_NS204i2Dp_Gen102B_Boot_Controller_____010000063A435000:5
    179 4193280 -rw------- 1 root root 4293918720 Mar 14 17:18 t10.NVMe____HPE_NS204i2Dp_Gen102B_Boot_Controller_____010000063A435000:6
    182 125724672 -rw------- 1 root root 128742064128 Mar 14 17:18 t10.NVMe____HPE_NS204i2Dp_Gen102B_Boot_Controller_____010000063A435000:7
    185 334566895 -rw------- 1 root root 342596500992 Mar 14 17:18 t10.NVMe____HPE_NS204i2Dp_Gen102B_Boot_Controller_____010000063A435000:8
    190 0 lrwxrwxrwx 1 root root 70 Mar 14 17:18 vml.0100000000303130305f303030365f334134335f3530303000485045204e53 -> t10.NVMe____HPE_NS204i2Dp_Gen102B_Boot_Controller_____010000063A435000
    175 0 lrwxrwxrwx 1 root root 72 Mar 14 17:18 vml.0100000000303130305f303030365f334134335f3530303000485045204e53:1 -> t10.NVMe____HPE_NS204i2Dp_Gen102B_Boot_Controller_____010000063A435000:1
    178 0 lrwxrwxrwx 1 root root 72 Mar 14 17:18 vml.0100000000303130305f303030365f334134335f3530303000485045204e53:5 -> t10.NVMe____HPE_NS204i2Dp_Gen102B_Boot_Controller_____010000063A435000:5
    181 0 lrwxrwxrwx 1 root root 72 Mar 14 17:18 vml.0100000000303130305f303030365f334134335f3530303000485045204e53:6 -> t10.NVMe____HPE_NS204i2Dp_Gen102B_Boot_Controller_____010000063A435000:6
    184 0 lrwxrwxrwx 1 root root 72 Mar 14 17:18 vml.0100000000303130305f303030365f334134335f3530303000485045204e53:7 -> t10.NVMe____HPE_NS204i2Dp_Gen102B_Boot_Controller_____010000063A435000:7
    187 0 lrwxrwxrwx 1 root root 72 Mar 14 17:18 vml.0100000000303130305f303030365f334134335f3530303000485045204e53:8 -> t10.NVMe____HPE_NS204i2Dp_Gen102B_Boot_Controller_____010000063A435000:8
    209 0 lrwxrwxrwx 1 root root 36 Mar 14 17:18 vml.0200010000600c0ff00066518855fe4f63010000004d5341203230 -> naa.600c0ff00066518855fe4f6301000000
    212 0 lrwxrwxrwx 1 root root 38 Mar 14 17:18 vml.0200010000600c0ff00066518855fe4f63010000004d5341203230:1 -> naa.600c0ff00066518855fe4f6301000000:1
    219 0 lrwxrwxrwx 1 root root 36 Mar 14 17:18 vml.0200020000600c0ff000666207a7fe4f63010000004d5341203230 -> naa.600c0ff000666207a7fe4f6301000000
    217 0 lrwxrwxrwx 1 root root 38 Mar 14 17:18 vml.0200020000600c0ff000666207a7fe4f63010000004d5341203230:1 -> naa.600c0ff000666207a7fe4f6301000000:1
    189 0 lrwxrwxrwx 1 root root 70 Mar 14 17:18 vml.055a496a8c23ad15fd1168399cc566bcaf55d9dcabf2c4fbe507c4e00abd6bb878 -> t10.NVMe____HPE_NS204i2Dp_Gen102B_Boot_Controller_____010000063A435000
    174 0 lrwxrwxrwx 1 root root 72 Mar 14 17:18 vml.055a496a8c23ad15fd1168399cc566bcaf55d9dcabf2c4fbe507c4e00abd6bb878:1 -> t10.NVMe____HPE_NS204i2Dp_Gen102B_Boot_Controller_____010000063A435000:1
    177 0 lrwxrwxrwx 1 root root 72 Mar 14 17:18 vml.055a496a8c23ad15fd1168399cc566bcaf55d9dcabf2c4fbe507c4e00abd6bb878:5 -> t10.NVMe____HPE_NS204i2Dp_Gen102B_Boot_Controller_____010000063A435000:5
    180 0 lrwxrwxrwx 1 root root 72 Mar 14 17:18 vml.055a496a8c23ad15fd1168399cc566bcaf55d9dcabf2c4fbe507c4e00abd6bb878:6 -> t10.NVMe____HPE_NS204i2Dp_Gen102B_Boot_Controller_____010000063A435000:6
    183 0 lrwxrwxrwx 1 root root 72 Mar 14 17:18 vml.055a496a8c23ad15fd1168399cc566bcaf55d9dcabf2c4fbe507c4e00abd6bb878:7 -> t10.NVMe____HPE_NS204i2Dp_Gen102B_Boot_Controller_____010000063A435000:7
    186 0 lrwxrwxrwx 1 root root 72 Mar 14 17:18 vml.055a496a8c23ad15fd1168399cc566bcaf55d9dcabf2c4fbe507c4e00abd6bb878:8 -> t10.NVMe____HPE_NS204i2Dp_Gen102B_Boot_Controller_____010000063A435000:8

    partedUtil getptbl "/vmfs/devices/disks/naa.600c0ff000666207a7fe4f6301000000"

    gpt
    724632 255 63 11641225216
    1 2048 4649678848 AA31E02A400F11DB9590000C2911D1B8 vmfs 0

    partedUtil getptbl "/vmfs/devices/disks/naa.600c0ff00066518855fe4f6301000000"

    gpt
    724632 255 63 11641225216
    1 2048 4649678848 AA31E02A400F11DB9590000C2911D1B8 vmfs 0

    partedUtil getUsableSectors "/vmfs/devices/disks/naa.600c0ff000666207a7fe4f6301000000"

    34 11641225182

    partedUtil getUsableSectors "/vmfs/devices/disks/naa.600c0ff00066518855fe4f6301000000"

    34 11641225182