Re: Adding a new harddisk
From: Tommy Reynolds (TommyReynolds_at_yahoo.com)
Date: 05/06/04
- Previous message: Tommy Reynolds: "Re: RHEL 3.1 kernel update on RAID shows lilo error?"
- In reply to: Jeffrey Ross: "Re: Adding a new harddisk"
- Next in thread: Stephane: "Re: Adding a new harddisk"
- Reply: Stephane: "Re: Adding a new harddisk"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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!
- Previous message: Tommy Reynolds: "Re: RHEL 3.1 kernel update on RAID shows lilo error?"
- In reply to: Jeffrey Ross: "Re: Adding a new harddisk"
- Next in thread: Stephane: "Re: Adding a new harddisk"
- Reply: Stephane: "Re: Adding a new harddisk"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|