LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-05-2013, 02:35 PM   #1
manuel19
Member
 
Registered: May 2010
Distribution: Fedora Core 8 (Werewolf)
Posts: 40

Rep: Reputation: 0
Multiple Hard disks on same server


In my server I have 2 hard disk.

- 1st have 10GB.
- 2nd have 500GB.

The Linux fedora is installed in the 1st hard disk.
the 2nd is 100% new and don't have any data on it.

I want to know how can I do this:
Install softwares, scripts,etc,etc BUT in the 2nd hard disk ONLY.

I want to keep the 1st ONLY to hold the Linux system. I want to never change anything on 1st hard disk.


How can I do that?
 
Old 06-05-2013, 03:43 PM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Create partitions on the second disk. Mount the partitions on the directory tree where you need them.

For example, create a 100 GB partition on disk 2. Mount the partition as /home under '/' on the first disk.

You can do that automatically by specifying this in the /etc/fstab.

When you have mounted /home this way, if there was a /home partion on disk1, you will not be able to see or use it as long as the /home on disk2 is mounted.

You can also mount partitions further down in the hierarchy, say /home/foo from disk2 under /home on disk1. The same goes for directories like /usr/local.

jlinkels
 
Old 06-05-2013, 06:13 PM   #3
Cyberman
Member
 
Registered: Aug 2005
Distribution: Debian Stable
Posts: 218

Rep: Reputation: 17
I have my entire system on the larger disk, and I use the smaller disk for a backup, because I believe that the /home folder is the most important folder to backup, whereas anything else is freeware and easily replaceable. I do not know what your plans are, but I think you may want to consider your storage space more wisely.
 
Old 06-05-2013, 08:44 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,998

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
There are also other ways to add storage.

One might be to attach the extra space with some unique filesystem. zfs and btrfs come to mind but other ideas like lvm might work.

Also one might attach the entire drive to some folder or as above move or link the current folders to the extra space.

Guess you could do like a live cd does. Make an aufs to attach extra space.

The normal way is to consider moving or using/mounting the commonly changed folders to the new disk.

Without going to some live cd sort of deal, you can't simply change permissions to read only and expect it to work. So some data might change.
 
Old 06-05-2013, 10:17 PM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,671
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
As an aside ... when you start installing multiple (big) hard drives, you probably want to seriously consider introducing a Logical Volume Manager (LVM) system, which creates the important notion of "storage pools."

Under an LVM arrangement, a "mount point," such as, say, /usr, no longer has a one-to-one correspondence with "a disk drive (partition)." Instead, the mount-point is associated with a "storage pool," which is represented by available space on one or more physical drives. (Furthermore, this space-allocation can be adjusted.)

The "mount points" become a logical view of the storage, now fully independent of the physical reality (of the present moment), as represented by the (present...) arrangement of the storage pools. Programs see only the logical view of things: they "know nothing, and care nothing," about exactly how their needs are actually met. (And, after all, why should they?)

It's a very liberating concept, and well-implemented. You probably should look into it.

Last edited by sundialsvcs; 06-05-2013 at 10:19 PM.
 
  


Reply



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
[SOLVED] RAID 5 with 4 hard disks... array started with only 3 out of 4 disks kikinovak Slackware 9 08-11-2012 06:33 AM
Setting up RHEL4 server with multiple hard disks nblab Linux - Newbie 3 07-27-2012 05:30 AM
not able to boot from ssd with multiple hard disks system kapsule Linux - Newbie 6 05-03-2011 05:57 AM
Installing Open BSD over multiple hard disks zaicheke *BSD 2 07-10-2004 07:56 PM
Dual boot on inspiron with multiple hard disks mattkat Linux - Laptop and Netbook 1 09-15-2003 11:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:33 PM.

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
Open Source Consulting | Domain Registration