1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Linux 2 drives, single mount point

Discussion in 'Software' started by Woodstock, 10 Mar 2008.

  1. Woodstock

    Woodstock So Say We All

    Joined:
    10 Sep 2006
    Posts:
    1,783
    Likes Received:
    2
    so i have a pc with 2x 500gb hard drives in it one is full and is /home and the other is brand spanking new, i would like to make it appear as 1 mount point. That i can think of there is 3 options
    1. JBOD
    2. LVM
    3. Give up and make two different mount points
    4. Open to suggestions
    With sda being full i dont want to reformat, and im guessing that would make 1 and 2 impossible? note 2 x 500gb are only for data, /boot, / and swap are on a different drive (currently an older 40gb ata ( plan to put it on a cf card at some point))
     
  2. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    I'd go for LVM.

    Create a PV on the empty disk, add a VG over there spanning the entire drive. Copy everything over to the VG.

    Then, extend the PV and VG to span the 2 drives. Done :D (make sure you use a FS that isn't picky about resizing ;))
     
  3. steveo_mcg

    steveo_mcg What's a Dremel?

    Joined:
    26 May 2005
    Posts:
    5,841
    Likes Received:
    80
    How reliable is LVM? I was thinking about giving it ago for my server.
     
  4. Woodstock

    Woodstock So Say We All

    Joined:
    10 Sep 2006
    Posts:
    1,783
    Likes Received:
    2
    looks like i have some reading to do lol, how is ext3 when it comes to resizing? what i normally use as it was what people recommended at the time
     
  5. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    Any non journalling FS won't have a problem at all, and most journalling filesystems will do fine too. Ext3 can be (online) resized if your kernel supports it with a tool (resizefs IIRC).
     
  6. Woodstock

    Woodstock So Say We All

    Joined:
    10 Sep 2006
    Posts:
    1,783
    Likes Received:
    2
    would the stock kernel of debian-net install downloaded today be likely to have it or will i need to look at finding/compiling a different one.
     
  7. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    I think THIS will answer your questions ;)
     
  8. Woodstock

    Woodstock So Say We All

    Joined:
    10 Sep 2006
    Posts:
    1,783
    Likes Received:
    2
    i think between that and the doc on tldp i should be good thanks, ill hopefully get to try this weekend. Do you know of other blogs with intersting nix stuff?
     
Tags:

Share This Page