LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 09-08-2005, 01:44 AM   #1
babag
Member
 
Registered: Aug 2003
Posts: 365

Rep: Reputation: 30
mounting, adding storage space questions


can more storage space be added to an existing /home directory?

i've been running mandriva for a while and would like to expand my /home
directory. can this be done by simply adding a drive and mounting it under
/home? or will that conflict with the existing drive's /home?

how does this work in mandriva?

or would the way to do this be to add a larger drive and copy the existing
/home data over to it?

iow, can the directory /home be assigned across multiple partitions/drives
without raiding? or is it a one shot assignment?

i suppose what i'm wondering is if the mount assignment is a virtual thing
which can point to multiple physical devices/partitions.

sorry to run on. just not sure how to make my questions clear when i'm in
a state of confusion.

thanks,
BabaG
 
Old 09-08-2005, 02:01 AM   #2
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 51
Quote:
i've been running mandriva for a while and would like to expand my /home
directory. can this be done by simply adding a drive and mounting it under
/home? or will that conflict with the existing drive's /home?
Mounting it over an existing /home would just impose the contents of the mounted drive over the existing home. As soon as you unmounted the new partition the existing home's contents would be back.

Quote:
or would the way to do this be to add a larger drive and copy the existing
/home data over to it?
Yes this is how to do it. Make sure you've logged out of all sessions and are only logged in as root when you do it.

Quote:
iow, can the directory /home be assigned across multiple partitions/drives
without raiding? or is it a one shot assignment?
RAID doesn't really do this - it mirrors the directories across multiple physical disks for either redundancy or in RAID0's case for speed. It can't really be used for combining the storage capacity of 2 disks since its based on mirroring.

Logical Volume Management is how you combine space from multiple disks or partitions into a single greater partition. But to convert your /home partition into an lvm partition would require you to format it. However you may want to try it (after backing up the original data first) - I think the Mandrake partition thing supports it.

Quote:
i suppose what i'm wondering is if the mount assignment is a virtual thing
which can point to multiple physical devices/partitions.
Not directly but if you setup an LVM partition that spans across multiple devices/partitions and mount it then you have effectively done that.
 
Old 09-08-2005, 01:23 PM   #3
babag
Member
 
Registered: Aug 2003
Posts: 365

Original Poster
Rep: Reputation: 30
thanks for the thorough answers tkedwards. let's see if i have it right.

sounds like lvm will allow me to combine disk space from various sources
into a single partition. the sources can be on different disks. i'm gathering
that the sources would be partitions as well. iow, i couldn't do something
like add a directory to an lvm scheme unless it was its own partition. in
adding space to the lvm scheme i would first have to re-define the lvm
partition to include the original partition as well as the new partition, then
format it. this necessitates backing up all data from the pre-existing
partitions which would be later restored onto the new lvm partition.

there is no way to simply add a drive and say 'add this new space to
such-and-such directory.'

is this pretty much how it works?

thanks again,
BabaG

Last edited by babag; 09-08-2005 at 01:26 PM.
 
Old 09-08-2005, 06:17 PM   #4
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 51
Quote:
sounds like lvm will allow me to combine disk space from various sources
into a single partition. the sources can be on different disks. i'm gathering
that the sources would be partitions as well. iow, i couldn't do something
like add a directory to an lvm scheme unless it was its own partition. in
adding space to the lvm scheme i would first have to re-define the lvm
partition to include the original partition as well as the new partition, then
format it. this necessitates backing up all data from the pre-existing
partitions which would be later restored onto the new lvm partition.
Yeah. The way it works is say you had 2 20GB disks in your system and you wanted to use LVM for the whole thing you'd have:
/dev/hda1 /boot (100MB)
and then have the rest (of both hda and hdb) as one big LVM partition.
Then on that LVM partition you would create say:
one ext3 root (/) partition of 5GB, one swap of 1GB, ext3 /home of 25GB and leave the rest of the space free (9GB). Then maybe 6months down the track you realise that that root partition isn't big enough to hold the latest Mandriva or Ubuntu or whatever so you use LVM to resize it to 7GB. It takes that extra 2GB out of the free space on your LVM partition and most importantly doesn't require you to reformat your root partition, nor does it affect any of the other partitions (swap and home) in any way.

Anyway have a read of the LVM howto - it explains it better than I can: http://tldp.org/HOWTO/LVM-HOWTO

Quote:
there is no way to simply add a drive and say 'add this new space to
such-and-such directory.'
With LVM there is but otherwise no, AFAIK.
 
Old 09-08-2005, 08:07 PM   #5
babag
Member
 
Registered: Aug 2003
Posts: 365

Original Poster
Rep: Reputation: 30
thanks again. very helpful. and thanks for the link too.

BabaG
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding an HP Storage Library to RH AS3 system consty Red Hat 0 11-18-2005 05:52 AM
FC4, Adding Hard drives for storage. How and what FS? A6Quattro Linux - Hardware 7 07-21-2005 04:41 PM
How to share storage space in RHEL 3.0 spelltoronto Linux - Newbie 4 04-26-2005 12:20 AM
Mounting USB Storage - Here come the dumb questions... CameronChampion Linux - Newbie 9 08-03-2003 04:56 PM
Mounting USB Storage Seoi Linux - Hardware 1 06-18-2002 07:19 AM


All times are GMT -5. The time now is 12:26 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration