LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-31-2005, 03:54 PM   #1
ozric
LQ Newbie
 
Registered: Jan 2005
Location: Örebro, Sweden
Distribution: SUSE 9.2
Posts: 23

Rep: Reputation: 15
Question Mounting several drives to one mountpoint? (redhat 9, IDE disks)


Hi!

I've been googling all day to find the answer to my dilemma without success and hope that someone here can help me;

My aim is to create a directory that will hold data from several harddrives.
I understand this is possible if I setup a software raid0 - but if I do then all data stored in that directory will be lost if one of the drives crashes.

Is there any way to mount multiple drives into one subdirectory without using a stripeset?

Incredibly grateful for any help.

Using redhat 9, i386, 4 IDE hd's of different brands/sizes, the 3 drives aimed to be used for this procedure are all using ext 2.

Last edited by ozric; 01-31-2005 at 03:56 PM.
 
Old 02-01-2005, 01:05 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,487

Rep: Reputation: 88
How about using symlinks? Mount each drive seperately on its own mountpoint, then create symlinks (see man ln) from your "master" directory to each of these drives. The net effect should be that your "master" directory "seems" to contain all the drives in its mountpoint (i. e. a drive call /dev/hda1 can now "contain" /dev/hda2 hda3 hda4 etc via symlinks).

As for how this ties into RAID, I haven't got a clue!

Good luck
 
Old 02-01-2005, 07:56 AM   #3
ozric
LQ Newbie
 
Registered: Jan 2005
Location: Örebro, Sweden
Distribution: SUSE 9.2
Posts: 23

Original Poster
Rep: Reputation: 15
Thanks for the reply! However, using symlinks (ln -s?) doesn't quite fit my purpose. I might not have expressed me clear enough, I'll try from a different angle.

I want a directory, say "really_big_storage_dir" where users can store files.
Lets say I've partitioned the disks I want for this purpose already and mounted them as /disks/drive1, drive2 and drive3.
If I use symlinks (ln -s /disks/drive1 /really_big_storagedir, ln -s /disks/drive2 /really_big_storagedir .. etc) this would obviously cause /really_big_storage_dir to contain the links drive1, drive2 and drive3.

Now this is what I try to get around. I want /really_big_storage_dir to be a directory that spans over the three drives, but I don't want the directory to be divided into three.
I would like files to be stored onto the next disk when one is filled. This is where it ties into RAID0 I guess. But I am curious wether it can be achieved without using a stripeset. Is it possible?

Kind regards,

ozric

edit: btw, I'm getting married in Cape Town next month with my South African fiance

Last edited by ozric; 02-01-2005 at 08:00 AM.
 
Old 02-01-2005, 11:11 AM   #4
wpn146
Member
 
Registered: Jan 2005
Distribution: Solaris, Linux Fedora Core 6
Posts: 170

Rep: Reputation: 30
Quote:
Originally posted by ozric
Thanks for the reply! However, using symlinks (ln -s?) doesn't quite fit my purpose. I might not have expressed me clear enough, I'll try from a different angle.

I want a directory, say "really_big_storage_dir" where users can store files.
Lets say I've partitioned the disks I want for this purpose already and mounted them as /disks/drive1, drive2 and drive3.
If I use symlinks (ln -s /disks/drive1 /really_big_storagedir, ln -s /disks/drive2 /really_big_storagedir .. etc) this would obviously cause /really_big_storage_dir to contain the links drive1, drive2 and drive3.

Now this is what I try to get around. I want /really_big_storage_dir to be a directory that spans over the three drives, but I don't want the directory to be divided into three.
I would like files to be stored onto the next disk when one is filled. This is where it ties into RAID0 I guess. But I am curious wether it can be achieved without using a stripeset. Is it possible?

Kind regards,

ozric

I believe either raid0 or lvm will do this. By the way, raid0 is normally a stripe. It doesn't "store onto the next disk when one is filled", it writes chuncks across all the disks.
Quote:
edit: btw, I'm getting married in Cape Town next month with my South African fiance
Congratulations.
 
  


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
Hardware RAID on IDE disks czezz Linux - Hardware 3 08-05-2005 10:22 AM
how to enable more than 4 IDE disks? voralle Mandriva 2 06-26-2005 07:09 PM
IDE and SATA disks flupke_chello Linux - Hardware 1 01-24-2005 01:54 PM
Mounting a large directory over NFS... Mountpoint is empty? Shade Linux - Networking 5 04-18-2004 09:29 PM
IDE disks, terminals, help! big_and_fat_guy Mandriva 1 10-11-2003 07:57 PM


All times are GMT -5. The time now is 06:38 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration