Re: Adding a new harddisk

From: Tommy Reynolds (TommyReynolds_at_yahoo.com)
Date: 05/06/04

  • Next message: Tommy Reynolds: "Re: vsftpd quesiton"
    Date: Wed, 05 May 2004 18:39:08 -0500
    
    

    On Thu, 06 May 2004 09:14:43 +1200, Jeffrey Ross wrote:

    >> - Is there a possibility to make sure that hdb, will be an extension of my
    >> partition hda9 ?
    >> in other words, I need to increase the size of my /home directory with
    > this
    >> 2nd harddisk !!
    >
    > I don't know if mke2fs on hdb is correct. I would expect you to partition
    > the disk first and then run mke2fs on the partition, eg hdb1. You can then
    > unmount /home, remount it elsewhere, eg /mnt/hda9 mount the new file system
    > as /home, and move all files from /mnt/hda9 to /home. hda9 can then be
    > reused for something else.
    > I've not done this on Linux so there may be a smarter method like LVM (which
    > would allow you to join your new disk into /home, but takes some more work).

    I agree with partitioning hdb first.

    And, yes, LVM would let you dynamically expand filesystems but
    Stephane already has a live filesystem in "/home" and setting up LVM
    requires starting with a clean partition, sort of a ground-up
    configuration.

    I would recommend partitioning hdb, formatting a smaller section of
    it as an additional swap area and the majority of it as an EXT3
    filesystem. Mount the EXT3 filesystem as "/home1" and just use the
    "-d /home1/foo" switch when using useradd for "foo". There's no law
    that requires user home directories to actually be in "/home"; that's
    why God invented the "~" expansion and "$HOME" ;-)

    (Well, to be honest, He did get someone else to type it in...)

    But, if you need the new disk because your "/home" partition is
    already overflowing, just migrate some of your users home directories
    to the "/home1" late tonight. Look at the usermod(8) man page for
    the "-d home" and "-m" switches.

    Cheers!


  • Next message: Tommy Reynolds: "Re: vsftpd quesiton"

    Relevant Pages

    • RE: lvm on RH8 _ SOLVED_
      ... Apparently, the lvm module wasn't getting initialised at boot, so I ... Using fdisk, change the partition usage to 0x8e (free space, logical ... Next the filesystem needs to be created in the logical volumes. ...
      (RedHat)
    • Re: Booting - Enterprise Volume Management System
      ... blocksize of your filesystem and calculate the new size based on those units. ... physical disk partition. ... You manipulate a virtual partition and don't ... Software raid will always be slower than LVM ...
      (Ubuntu)
    • Re: Booting - Enterprise Volume Management System
      ... nothing to do with LVM and everything to do with file systems. ... bother with LVM on a single disk if you can just make one big partition? ... Runaway processes can't fill the filesystem, ... windows machine when exchange fills the file system. ...
      (Ubuntu)
    • RE: RAID 1 Config with AMD 780G Chipset
      ... Use the dialog boxes to create one primary partition large enough to ... Later this will be used for swap. ... One approach is to set up LVM, make reasonable space for at least / ... LVM volumes for each desired separate filesystem (rootlv, homelv, ...
      (Ubuntu)
    • Re: Cannot mount old drive with LVM partition - help!
      ... on hdb is the boot partition, partition 2 on hdb is the LVM where my stuff ... but you should be able to turn off lvm vgchange -an. ...
      (alt.os.linux)