mark_667
asked on
Removing old ESXi 5 install
I've setting up a ESXi 5.1 server and initally installed ESXi on the RAID 1+0 array I'm using for VM storage (and the only datastore in the system). I then decided to install it to an internal USB memory stick. This works fine but how do I get rid of the partitions containing the old install so I can use the full array for storage?
ls /vmfs/volumes
lists 5x guids and the datastore.
/etc/init.d # ls /vmfs/devices/disks
naa.600508e00000000081546d 64bdb3ad04
naa.600508e00000000081546d 64bdb3ad04 :1
naa.600508e00000000081546d 64bdb3ad04 :2
naa.600508e00000000081546d 64bdb3ad04 :3
naa.600508e00000000081546d 64bdb3ad04 :5
naa.600508e00000000081546d 64bdb3ad04 :6
naa.600508e00000000081546d 64bdb3ad04 :7
naa.600508e00000000081546d 64bdb3ad04 :8
vml.0200000000600508e00000 000081546d 64bdb3ad04 5669727475 61
vml.0200000000600508e00000 000081546d 64bdb3ad04 5669727475 61:1
vml.0200000000600508e00000 000081546d 64bdb3ad04 5669727475 61:2
vml.0200000000600508e00000 000081546d 64bdb3ad04 5669727475 61:3
vml.0200000000600508e00000 000081546d 64bdb3ad04 5669727475 61:5
vml.0200000000600508e00000 000081546d 64bdb3ad04 5669727475 61:6
vml.0200000000600508e00000 000081546d 64bdb3ad04 5669727475 61:7
vml.0200000000600508e00000 000081546d 64bdb3ad04 5669727475 61:8
ls /vmfs/volumes
lists 5x guids and the datastore.
/etc/init.d # ls /vmfs/devices/disks
naa.600508e00000000081546d
naa.600508e00000000081546d
naa.600508e00000000081546d
naa.600508e00000000081546d
naa.600508e00000000081546d
naa.600508e00000000081546d
naa.600508e00000000081546d
naa.600508e00000000081546d
vml.0200000000600508e00000
vml.0200000000600508e00000
vml.0200000000600508e00000
vml.0200000000600508e00000
vml.0200000000600508e00000
vml.0200000000600508e00000
vml.0200000000600508e00000
vml.0200000000600508e00000
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
the easiest way would be to DELETE the array on the current disks.
I would also remove the disks, and move the order of disks around, so the array structure changes.
I would also remove the disks, and move the order of disks around, so the array structure changes.
ASKER
@hanccocka do you mean I'll have to recreate the array and wait hours for it to reinitalise? Is there any way I can just do this in VMWare?
Hours to reinitialise? What array controller do you have and how many disks?
if you are familiar with fdisk or gparted utils
http://gparted.sourceforge.net/livecd.php
you can remove the partitions manually. But sometimes partition utilities struggle to remove the partitions.
http://gparted.sourceforge.net/livecd.php
you can remove the partitions manually. But sometimes partition utilities struggle to remove the partitions.
ASKER
GParted doesn't look like it can handle VMFS
http://gparted.sourceforge.net/features.php
Could I use FDisk to delete the partitions used by the old install and extend the datastore into the freed space using partedUtil (preferable without losing any of the existing data on there)?
http://gparted.sourceforge.net/features.php
Could I use FDisk to delete the partitions used by the old install and extend the datastore into the freed space using partedUtil (preferable without losing any of the existing data on there)?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
i tried using partedUtil to delete the partitions but ran into a problem with a fwe of them:
partedUtil delete "/vmfs/devices/disks/naa.6 00508e0000 0000081546 d64bdb3ad0 4" 2
Error: Read-only file system during write on /dev/disks/naa.600508e0000 0000081546 d64bdb3ad0 4
Unable to delete partition 2 from device /vmfs/devices/disks/naa.60 0508e00000 000081546d 64bdb3ad04
partedUtil delete "/vmfs/devices/disks/naa.6 00508e0000 0000081546 d64bdb3ad0 4" 4
Unable to retrieve partition 4 from device /vmfs/devices/disks/naa.60 0508e00000 000081546d 64bdb3ad04
partedUtil delete "/vmfs/devices/disks/naa.6 00508e0000 0000081546 d64bdb3ad0 4" 7
Error: Read-only file system during write on /dev/disks/naa.600508e0000 0000081546 d64bdb3ad0 4
Unable to delete partition 7 from device /vmfs/devices/disks/naa.60 0508e00000 000081546d 64bdb3ad04
# partedUtil getptbl "/vmfs/devices/disks/naa.6 00508e0000 0000081546 d64bdb3ad0 4
"
gpt
121469 255 63 1951399936
7 1032224 1257471 9D27538040AD11DBBF97000C29 11D1B8 vmkDiagnostic 0
2 1843200 10229759 EBD0A0A2B9E5443387C068B6B7 2699C7 linuxNative 0
3 10229760 1951399902 AA31E02A400F11DB9590000C29 11D1B8 vmfs 0
~ #
I tried a gparted live CD but it couldn't see the array (I presume because it didn't have the necessary drivers for the card).
partedUtil delete "/vmfs/devices/disks/naa.6
Error: Read-only file system during write on /dev/disks/naa.600508e0000
Unable to delete partition 2 from device /vmfs/devices/disks/naa.60
partedUtil delete "/vmfs/devices/disks/naa.6
Unable to retrieve partition 4 from device /vmfs/devices/disks/naa.60
partedUtil delete "/vmfs/devices/disks/naa.6
Error: Read-only file system during write on /dev/disks/naa.600508e0000
Unable to delete partition 7 from device /vmfs/devices/disks/naa.60
# partedUtil getptbl "/vmfs/devices/disks/naa.6
"
gpt
121469 255 63 1951399936
7 1032224 1257471 9D27538040AD11DBBF97000C29
2 1843200 10229759 EBD0A0A2B9E5443387C068B6B7
3 10229760 1951399902 AA31E02A400F11DB9590000C29
~ #
I tried a gparted live CD but it couldn't see the array (I presume because it didn't have the necessary drivers for the card).
it's much quicker to destroy the current RAID (because some partitions are cached and cannot be deleted).
If you use a block-level disk editor, you can write zeros to sectors 0x0000-0xFFFF, wiping out the partition table.
You will also want to wipe the last few blocks of the array's volume, as a second copy of the partition table could be lurking there.
If you can boot WinPE (BartPE?) , the free HxD hex editor (for Windows) works well. You might also find a copy of the DOS "Norton Disk Editor" which can do the same thing, but might not work with your array's bios support.
You will also want to wipe the last few blocks of the array's volume, as a second copy of the partition table could be lurking there.
If you can boot WinPE (BartPE?) , the free HxD hex editor (for Windows) works well. You might also find a copy of the DOS "Norton Disk Editor" which can do the same thing, but might not work with your array's bios support.
ASKER
@modus_operandi, what do you mean? I did split the points.
ASKER