Find the answer to your Linux question:
Results 1 to 4 of 4
Hola, Recently, I've tried to create a snapshot of my /root folder in 10.04 (I remember to have done so a couple of times without trouble). I used the command ...
  1. #1
    Just Joined!
    Join Date
    Aug 2010
    Posts
    4

    Ubuntu hangs up when creating LVM snapshot of /root volume

    Hola,
    Recently, I've tried to create a snapshot of my /root folder in 10.04 (I remember to have done so a couple of times without trouble).

    I used the command
    HTML Code:

    Code:
    lvcreate -L10G -s -n rootsnapshot /dev/server/root
    Without a hint of HDD activity, Gnome (?) hangs up - I can move the mouse, and the clock is moving on, but I can't click on anything. No HDD activity, and this goes on forever (after a while, the whole system locks up). This happens each time when I try to create a snapshot.

    What could be the problem?
    Thanks

  2. #2
    Just Joined!
    Join Date
    Aug 2010
    Location
    Italy
    Posts
    35
    More info please: lvdisplay, vgdisplay and a df -h please ?

  3. #3
    Just Joined!
    Join Date
    Aug 2010
    Posts
    4
    Sure, here it is:
    Code:
    ------------------------------------------------------------------------------- lvdisplay
    
    --- Logical volume ---
      LV Name                /dev/server/ServerLinux
      VG Name                server
      LV UUID                P63Uoy-V3TA-vSPr-3yVj-dG0Z-KsBg-iR2Jha
      LV Write Access        read/write
      LV Status              available
      # open                 1
      LV Size                10.00 GiB
      Current LE             2560
      Segments               1
      Allocation             inherit
      Read ahead sectors     auto
      - currently set to     256
      Block device           252:0
       
      --- Logical volume ---
      LV Name                /dev/server/ServerBackup
      VG Name                server
      LV UUID                PW37n1-uoKy-u6wq-XsAS-14XL-Faar-83v0st
      LV Write Access        read/write
      LV Status              available
      # open                 0
      LV Size                50.00 GiB
      Current LE             12800
      Segments               1
      Allocation             inherit
      Read ahead sectors     auto
      - currently set to     256
      Block device           252:1
       
      --- Logical volume ---
      LV Name                /dev/server/ServerHome
      VG Name                server
      LV UUID                5oppft-7oyH-VNKZ-oYUG-u1mY-jKvR-lQ31eh
      LV Write Access        read/write
      LV Status              available
      # open                 1
      LV Size                142.00 GiB
      Current LE             36352
      Segments               1
      Allocation             inherit
      Read ahead sectors     auto
      - currently set to     256
      Block device           252:2
    
    ------------------------------------------------------------------------------- vgdisplay
    
    --- Volume group ---
    VG Name               server
    System ID             
    Format                lvm2
    Metadata Areas        1
    Metadata Sequence No  20
    VG Access             read/write
    VG Status             resizable
    MAX LV                0
    Cur LV                3
    Open LV               2
    Max PV                0
    Cur PV                1
    Act PV                1
    VG Size               212.27 GiB
    PE Size               4.00 MiB
    Total PE              54342
    Alloc PE / Size       51712 / 202.00 GiB
    Free  PE / Size       2630 / 10.27 GiB
    VG UUID               wHLmEN-fAok-FkR0-eH9j-JxT9-HhuH-n8aba0
    
    
    ------------------------------------------------------------------------------- df -h
    
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/mapper/server-ServerLinux
                          9.9G  3.0G  6.5G  32% /
    none                  480M  292K  480M   1% /dev
    none                  484M  180K  484M   1% /dev/shm
    none                  484M   92K  484M   1% /var/run
    none                  484M     0  484M   0% /var/lock
    none                  484M     0  484M   0% /lib/init/rw
    /dev/sda4              99M   36M   58M  39% /boot
    /dev/mapper/server-ServerHome
                          140G  301M  133G   1% /home

  4. #4
    Linux User ptkobe's Avatar
    Join Date
    Feb 2008
    Location
    Torres Vedras, PT
    Posts
    274
    Quote Originally Posted by poisonborz View Post
    Code:
    lvcreate -L10G -s -n rootsnapshot /dev/server/root
    Shouldn't it be
    Code:
    lvcreate -L10G -s -n rootsnapshot /dev/server/ServerLinux
    ?

    Also, free space on vg server is very near to 10G. Can this be a problem, I wonder.

    Just trying to help
    Regards
    Luis

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...