For
example we create a new VMFS store on the same storage backing with the
same LUN size as the original and it shows up as a LUN with a device
name of /dev/sdd we can use esxcfg-vmhbadevs -m to find it if required
The deleted device name was /dev/sdc
We use the dd command to do a block copy from the new partition to a file or even directly in this case.
Remember to back it up first!
dd if=/dev/sdc of=/var/log/part-backup-sdc-1st.hex bs=512 count=1
then issue
dd if=/dev/sdd of=/dev/sdc bs=512 count=1
or
dd if=/dev/sdd of=/var/log/part-backup-sdd.hex bs=512 count=1
dd if=/var/log/part-backup-sdd.hex of=/dev/sdc bs=512 count=1
"
Very nice!
And also:"
As as an additional level of protection we could even include making backups of the vh.sf metadata file and the VMFS header.
cp /vmfs/volumes/49716cd8-ebcbbf9a-6792-000d60d46e2e/.vh.sf /var/log/vh.sf.bu
dd if=/dev/sdc of=/var/log/vmfsheader-bu-sdc.hex bs=512 count=4096
This
would grant the ability for support to examine the exact details of the
VMFS configuration and potentially allow recovery from more complex
issues.
"
This one is going into my default actions list when deploying at customers... Put it on memory stick as a backup
! Many thanks Mike La Spina!
Hi Bouke, Does this work also for ...
...we did see some ballooning AND swa...
Well... - The desktops use 1,5GB of m...
Yes I know... - We do have a Windows ...
For XP. You'll see greatly reduced fi...