Menu

LVM again

Help
dens
2008-01-29
2013-04-05
  • dens

    dens - 2008-01-29

    I tried to backup linux server (ubuntu-server 6.06) using LVM with no success. Well, Clonezilla offered to do it using dd which i did not want to accept..

    Since it is a server, i cannot make breaks to often to test different options, but, with lvm tools that are available while uptime i got the following:

    lvscan:
      ACTIVE            '/dev/disks/boot' [100.00 MB] inherit
      ACTIVE            '/dev/disks/usr' [5.00 GB] inherit
      ACTIVE            '/dev/disks/tmp' [2.00 GB] inherit
      ACTIVE            '/dev/disks/var' [20.00 GB] inherit
      ACTIVE            '/dev/disks/swap' [1.00 GB] inherit
      ACTIVE            '/dev/disks/treeroot' [46.43 GB] inherit

    lvmdiskscan:

      /dev/ram0                     [       64.00 MB]
      /dev/dm                       [      100.00 MB]
      /dev/ram1                     [       64.00 MB]
      /dev/hda1                     [       74.53 GB] LVM physical volume
      /dev/disks/usr                [        5.00 GB]
      /dev/ram2                     [       64.00 MB]
      /dev/disks/tmp                [        2.00 GB]
      /dev/ram3                     [       64.00 MB]
      /dev/disks/var                [       20.00 GB]
      /dev/ram4                     [       64.00 MB]
      /dev/disks/swap               [        1.00 GB]
      /dev/ram5                     [       64.00 MB]
      /dev/root                     [       46.43 GB]
      /dev/ram6                     [       64.00 MB]
      /dev/ram7                     [       64.00 MB]
      /dev/evms/lvm2/disks/boot     [      100.00 MB]
      /dev/ram8                     [       64.00 MB]
      /dev/evms/lvm2/disks/swap     [        1.00 GB]
      /dev/ram9                     [       64.00 MB]
      /dev/evms/lvm2/disks/tmp      [        2.00 GB]
      /dev/ram10                    [       64.00 MB]
      /dev/evms/lvm2/disks/treeroot [       46.43 GB]
      /dev/ram11                    [       64.00 MB]
      /dev/evms/lvm2/disks/usr      [        5.00 GB]
      /dev/ram12                    [       64.00 MB]
      /dev/evms/lvm2/disks/var      [       20.00 GB]
      /dev/ram13                    [       64.00 MB]
      /dev/ram14                    [       64.00 MB]
      /dev/ram15                    [       64.00 MB]
      12 disks
      16 partitions
      0 LVM physical volume whole disks
      1 LVM physical volume

    fdisk -l /dev/hda:
    Disk /dev/hda: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

       Device Boot      Start         End      Blocks   Id  System
    /dev/hda1   *           1        9729    78148161   8e  Linux LVM

    vgscan:
      Reading all physical volumes.  This may take a while...
      Found volume group "disks" using metadata type lvm2

    vgdisplay:
      --- Volume group ---
      VG Name               disks
      System ID
      Format                lvm2
      Metadata Areas        1
      Metadata Sequence No  7
      VG Access             read/write
      VG Status             resizable
      MAX LV                0
      Cur LV                6
      Open LV               6
      Max PV                0
      Cur PV                1
      Act PV                1
      VG Size               74.53 GB
      PE Size               4.00 MB
      Total PE              19079
      Alloc PE / Size       19079 / 74.53 GB
      Free  PE / Size       0 / 0
      VG UUID               FQUpRb-S3JZ-Obrn-B2OO-7BGu-jwJx-cQaGpp

    If there is any other check i can perform while online... i'll do it...

    Regards,

     
    • Steven Shiau

      Steven Shiau - 2008-02-05

      1. Please use "/opt/drbl/sbin/dcs" to switch clients into remote-linux-txt mode,
      2. PXE boot the client, login as root
      3. cat /proc/partitions
      4.
      /opt/drbl/sbin/get_part_info /dev/disks/boot fs
      /opt/drbl/sbin/get_part_info /dev/disks/usr fs
      /opt/drbl/sbin/get_part_info /dev/disks/tmp fs
      /opt/drbl/sbin/get_part_info /dev/disks/var fs
      /opt/drbl/sbin/get_part_info /dev/disks/swap fs
      /opt/drbl/sbin/get_part_info /dev/disks/treeroot fs

      Please post the results of (3) and (4).

       
    • dens

      dens - 2008-02-14

      Hm...

      this could be a non easy task since i am using a liveCD version only.

      Any other action i could take using tools available on live CD?

      Should i add that i was able to create an image of centos server using LVM with no problem...

      Regards

       
      • Steven Shiau

        Steven Shiau - 2008-02-17

        I thought you were talking about Clonezilla server edition. Never mind, actually you can just run the following in clonezilla live:
        1.. cat /proc/partitions
        2. 
        /opt/drbl/sbin/get_part_info /dev/disks/boot fs
        /opt/drbl/sbin/get_part_info /dev/disks/usr fs
        /opt/drbl/sbin/get_part_info /dev/disks/tmp fs
        /opt/drbl/sbin/get_part_info /dev/disks/var fs
        /opt/drbl/sbin/get_part_info /dev/disks/swap fs
        /opt/drbl/sbin/get_part_info /dev/disks/treeroot fs

        Please do that then post the results.

         
    • dens

      dens - 2008-02-20

      Well, there maybe some reason why LVM is not seen properly... or maybe not...

      I saw the following line in lvscan output (and i am not happy about it):

      ACTIVE '/dev/disks/boot' [100.00 MB] inherit

      As one can see... boot partition is included in LVM and it shoud not be. That is a rule as i know. But, it is strange that Clonezilla could not see it as it reads the disk in more "passive" way than actual Linux OS when server is up and running.

      Now i see why LILO is complaining that could not access some files...

      Anyway... any idea, hint or trick how to move boot partition form LVM to physical?

      May i resize existing partitions with GPARTED to obtain some 100MB for new physical /boot partition?

      Regards,

       

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.