Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 18 of 18
I've never had to use resize2fs in this scenario; I normally create a / that takes up a whole disk, then LVM the remaining disks. However, the second paragraph of ...
  1. #11
    Linux Enthusiast likwid's Avatar
    Join Date
    Dec 2006
    Location
    MA
    Posts
    649


    I've never had to use resize2fs in this scenario; I normally create a / that takes up a whole disk, then LVM the remaining disks. However, the second paragraph of the resize2fs man page states:

    Code:
           
           The  resize2fs  program does not manipulate the size of partitions.  If
           you wish to enlarge a filesystem, you must  first  make  sure  you  can
           expand  the  size  of the underlying partition first.  This can be done
           using fdisk(8) by deleting the  partition  and  recreating  it  with  a
           larger  size.   When  recreating the partition, make sure you create it
           with the same starting disk cylinder as before!  Otherwise, the  resize
           operation  will  certainly  not  work,  and  you  may  lose your entire
           filesystem.
    I am completely comfortable with trusting this man page and if the scenario arose I would do it.

  2. #12
    Linux Newbie
    Join Date
    May 2006
    Location
    Kansas
    Posts
    187
    I have a Suse 10.2 box that I did not setup with LVM for the initial installation. Now I need a large free filesystem to store recordings on for mythTV. I'm going to do what you suggested and and attempt to use "Gparted". I'm really hoping it works. I've only used LVM in the past to do resizing. This will be a first!

  3. #13
    Linux Engineer valemon's Avatar
    Join Date
    Oct 2006
    Location
    Volos
    Posts
    930
    Can someone explain what is LMV?
    Linux is like a Teepee, No Windows, No Gates, Only Apache Inside!
    Arch Linux
    Linux user #442041

  4. #14
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,308
    check this Wiki article on LVM ( Logical Volume Management )
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #15
    Linux Newbie
    Join Date
    May 2006
    Location
    Kansas
    Posts
    187
    I used Gparted and shrunk the size of the partions /home and /. However, now there are two separate partitions that I can't seem to join together. One is 9 gig and the other is 15. I hate to waste that much space.

    Name Flags Part Type FS Type [Label] Size (MB)
    ------------------------------------------------------------------
    hda1 Primary Linux swap / Solaris 526.42
    hda2 Boot Primary Linux ext3 6292.34
    Pri/Log Free Space 9500.20
    hda3 Primary Linux ext3 8916.21
    Pri/Log Free Space 14780.83


    Any idea on how I can join these together?

  6. #16
    Linux Guru gogalthorp's Avatar
    Join Date
    Oct 2006
    Location
    West (by God) Virginia
    Posts
    3,105
    When you shrank / you left free space between root and home. When you shrank home you left free space between home and the end of disk.

    Maybe you could use two LVM volumes and combine them in to one logical. But to be honest I don't know how to do that.

    The alternative is to move the home to the end of root.

  7. #17
    Linux Newbie
    Join Date
    May 2006
    Location
    Kansas
    Posts
    187
    Quote Originally Posted by gogalthorp
    When you shrank / you left free space between root and home. When you shrank home you left free space between home and the end of disk.

    Maybe you could use two LVM volumes and combine them in to one logical. But to be honest I don't know how to do that.

    The alternative is to move the home to the end of root.
    You are correct. I did leave space. I didn't know Gparted would let me move them.

    To create a pv for LVM, you have to create a partition on the HD and you can only have a maximum of 4. I tried to create two LV's and do what you said, but it won't let me create 5 total.

    I rebooted my box off the gparted cd and I'm moving the partitions now. It looks like it is working fine. Thanks for the suggestion!

  8. #18
    Linux Newbie
    Join Date
    May 2006
    Location
    Kansas
    Posts
    187
    Ahhhh..... much better now.

    Code:
       Name      Flags    Part Type FS Type       [Label]      Size (MB)
     ------------------------------------------------------------------
       hda1                Primary  Linux swap / Solaris          526.42
       hda2      Boot      Primary  Linux ext3                   6292.34
       hda3                Primary  Linux ext3                   8916.21
                           Pri/Log  Free Space                  24281.03
    My mythTV box thanks you.

Page 2 of 2 FirstFirst 1 2

Posting Permissions

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