Menu

LVM and clonezilla issues

Help
Sam Soffa
2007-01-26
2013-04-05
  • Sam Soffa

    Sam Soffa - 2007-01-26

    Suddenly I an unable to clone a disk that has a LVM2 partition.  That has worked in the past and I have several images using them.  The error I get in partimage-debug.log is;
    [Main] misc.cpp->isFileSystemSupported#1127: SUPPORTED_FS=[ext2fs,ext3fs,reiserfs-3.5,reiserfs-3.6,reiserfs,fat,fat16,fat32,ntfs,hpfs,xfs,jfs,hfs,ufs]
    [Main] main.cpp->main#587: The file system of [/dev/sda2] is [-unknown-], and is not supported

    I have tried re-installing drbl from scratch, that didn't do much for me.  The only difference I know of is that this server was built hands off using a ks.cfg instead of using the RHEL gui.  The system I am trying to image is a RHEL4 U4 EL x86_64 s system;
    clearpart --all --drives=sda --initlabel
    part /boot --fstype ext3 --size=180  --asprimary
    part pv.50 --size=1 --grow
    volgroup VolGroup00 --pesize=32768 pv.50
    logvol / --fstype ext3 --name=root --vgname=VolGroup00 --size=6144
    logvol swap --fstype swap --name=swap --vgname=VolGroup00 --size=2048
    logvol /var --fstype ext3 --name=var --vgname=VolGroup00 --size=5120
    logvol /u02 --fstype ext3 --name=u02 --vgname=VolGroup00 --size=84112 --grow

    Any help would be much appreciated. Thanks! -Sam

     
    • Sam Soffa

      Sam Soffa - 2007-01-26

      An update.  I do a difference in the pt.sf file for one that works and one that doesn't.

      When it works;
      > cat pt.sf
      # partition table of /dev/sda
      unit: sectors

      /dev/sda1 : start=       63, size=   160587, Id=de
      /dev/sda2 : start=   160650, size=  4192965, Id= 6
      /dev/sda3 : start=  4353615, size=   208845, Id=83, bootable
      /dev/sda4 : start=  4562460, size=1749960450, Id= 5
      /dev/sda5 : start=  4562523, size=1749960387, Id=8e

      When it does not work;
      # partition table of /dev/sda
      unit: sectors

      /dev/sda1 : start=       63, size=   369432, Id=83, bootable
      /dev/sda2 : start=   369495, size=1757302155, Id=8e
      /dev/sda3 : start=        0, size=        0, Id= 0
      /dev/sda4 : start=        0, size=        0, Id= 0

      When it works LVM appears to be a partition in the extended partition instead of one of the primary's.

       
    • Sam Soffa

      Sam Soffa - 2007-01-26

      The solution!
      edit /opt/drbl/sbin/ocs-functions

      search for the 'check_LCM_partition' function.
      change
      'grep -i "LVM        "'
      to
      'grep -i "LVM"'
      The extra spaces after LVM seem to hose it.  I would if it was originally a tab instead of spaces and someone cut and pasted into a new scripts which replaces tabs with spaces.  Anyway, do the above and LVM partitions will save again.  Please let me know if this helps anyone else : ) -Sam

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.