Find the answer to your Linux question:
Results 1 to 8 of 8
I have LVM set up on two discs running RAID 1 (sw) and ReiserFS. I have resized my logical volume /home with Code: # lvresize -L +20G /dev/system/home-volume but when ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! Polymorf's Avatar
    Join Date
    May 2007
    Posts
    5

    Resized lvm, but Reiserfs won't be resized.


    I have LVM set up on two discs running RAID 1 (sw) and ReiserFS.
    I have resized my logical volume /home with
    Code:
    # lvresize -L +20G /dev/system/home-volume
    but when I tried resizing the file system :
    Code:
    # resize_reiserfs -f /dev/mapper/system-home--volume
    resize_reiserfs 3.6.19 (2003 www.namesys.com)
    
    
    reiserfs_open: the reiserfs superblock cannot be found on /dev/mapper/system-home--volume.
    I have run this both with /home mounted and unmounted, and from runlevel 1,3,5 with the same result.

    I have tried google without result. Some suggestions are reiserfsck --rebuild-sb but these were not mentioned in context with LVM, so I'm wondering if this would work ? I'm afraid of loosing data by trying the rebuild because I'm not sure what it does exactly.

    Any suggestions?

  2. #2
    Linux Guru bigtomrodney's Avatar
    Join Date
    Nov 2004
    Location
    Ireland
    Posts
    6,132
    Why is there two hyphens in system-home--volume?

  3. #3
    Just Joined! Polymorf's Avatar
    Join Date
    May 2007
    Posts
    5
    That's just the name. They all end with --volume.

  4. #4
    Linux Guru bigtomrodney's Avatar
    Join Date
    Nov 2004
    Location
    Ireland
    Posts
    6,132
    I was just curious, all of my LVMs have only single hyphens in them. It's probably a form of delimiter to use the hyphen twice

    What is the actual file called say in /dev/mapper/ ?

  5. #5
    Just Joined! Polymorf's Avatar
    Join Date
    May 2007
    Posts
    5
    Here is my df -h output
    df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/md0 510M 183M 301M 38% /
    udev 1006M 140K 1005M 1% /dev
    /dev/sda2 31M 9,4M 20M 33% /boot
    /dev/mapper/system-local--volume
    496M 19M 452M 4% /local
    /dev/mapper/system-opt--volume
    4,0G 1,2G 2,6G 32% /opt
    /dev/mapper/system-srv--volume
    248M 12M 224M 5% /srv
    /dev/mapper/system-tmp--volume
    3,0G 456M 2,4G 16% /tmp
    /dev/mapper/system-usr--volume
    5,0G 3,7G 1,1G 79% /usr
    /dev/mapper/system-var--volume
    1008M 451M 506M 48% /var
    /dev/mapper/system-home--volume
    119G 110G 2,5G 98% /home

    As you can see these are the /dev/mapper names. Not sure if that's what you meant, though as the path was already specified in the first post ?
    I have resized the logical volume /dev/mapper/system-home--volume to 140G. But the file system remains as shown. I don't think the hyphens are the problem since the lvm operations went fine.
    edit: /dev/system contains links to /dev/mapper btw.

  6. #6
    Just Joined! Polymorf's Avatar
    Join Date
    May 2007
    Posts
    5
    Ah, here is the reason for the double hyphens: http://lists.debian.org/debian-boot/.../msg00823.html
    edit: I should also mention that i have tried
    Code:
    resize_reiserfs -f /dev/system/home-volume
    as well, with the same result...

  7. #7
    Just Joined! Polymorf's Avatar
    Join Date
    May 2007
    Posts
    5
    I made a huge blunder. I have previously used ReiserFS, but when I reinstalled maybe 6 months ago I chose ext3 and had forgotten about it. Embarrassing...
    But now the problem is solved at least.
    Thanks

  8. #8
    Linux Guru bigtomrodney's Avatar
    Join Date
    Nov 2004
    Location
    Ireland
    Posts
    6,132
    Sorry just back on now. Glad you got it sorted though

Posting Permissions

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