7 Replies Latest reply on Mar 5, 2012 6:56 AM by racom

    Extending a target disk in VDR 2.0

    racom Enthusiast

      Hi,

      we use VMware Data Recovery 2.0 to backup our VM's to NAS via NFS. Taget disk was 500 GB VMDK assigned to VDR. Due to decreasing free place I've tried to extend it this way:

       

      1. reboot VDR

      2. extend VMDK in vCenter to 800 GB

      3. reboot VDR again 'cause disk size remained the same (fdisk -l):

       

      Disk /dev/sdb: 536.8 GB, 536870912000 bytes
      103 heads, 8 sectors/track, 1272543 cylinders
      Units = cylinders of 824 * 512 = 421888 bytes
         Device Boot      Start         End      Blocks   Id  System
      /dev/sdb1               1     1272544   524287999+  83  Linux

       

      4. delete old partition a add a new partition using all free space (I've did it successfully several times for some Ubuntu/CentOS VMs):

       

      Disk /dev/sdb: 858.9 GB, 858993459200 bytes

      103 heads, 8 sectors/track, 2036069 cylinders

      Units = cylinders of 824 * 512 = 421888 bytes

         Device Boot      Start         End      Blocks   Id  System

      /dev/sdb1               1     2036069   838860424   83  Linux

       

      5. but e2fsck failed (as well as attempts to use alternate superblocks):

       

      e2fsck 1.39 (29-May-2006)

      Couldn't find ext2 superblock, trying backup blocks...

      e2fsck: Bad magic number in super-block while trying to open /dev/sdb1

       

      The superblock could not be read or does not describe a correct ext2

      filesystem.  If the device is valid and it really contains an ext2

      filesystem (and not swap or ufs or something else), then the superblock

      is corrupt, and you might try running e2fsck with an alternate superblock:

          e2fsck -b 8193 <device>

       

      6. I've tried to restore original filesystem but number of blocks is different:

       

      Disk /dev/sdb: 858.9 GB, 858993459200 bytes

      103 heads, 8 sectors/track, 2036069 cylinders

      Units = cylinders of 824 * 512 = 421888 bytes

         Device Boot      Start         End      Blocks   Id  System

      /dev/sdb1               1     1272544   524288124   83  Linux

       

      Does VDR use some special formatting?

       

      My questions:

       

      1. What's a right way to extend VMDK? VDR Administration Guide mentions vCenter part only.

      2. Any chance to restore filesystem? I've created new VMDK for next backups immediately but I'd be glad to have access to old backups.

       

      Thanks in advance for tips.