LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-18-2013, 12:32 PM   #1
bluforce
Member
 
Registered: Apr 2012
Posts: 39

Rep: Reputation: Disabled
RHEL 6 - join 2 hard drives as 1 volume?


Guys,
About to install RHEL 6 on a machine and use two 1TB drives in it for file storage purposes. I want my users to only be able to see one volume. I would need to use LVM to set this up, correct?

During the anaconda setup for RHEL 6, how would I need to create my custom layout? Setup SWAP, "/", and make the rest LVM? Not sure.

Thanks for the help.
 
Old 06-18-2013, 12:52 PM   #2
cbtshare
Member
 
Registered: Jul 2009
Posts: 610

Rep: Reputation: 42
While this can be done in Anaconda, I think its better to do it manually,unless its a bunch of machines and you wanna run kickstart on them.Here is some readup on kickstart to help.
 
Old 06-18-2013, 01:00 PM   #3
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 3,774
Blog Entries: 1

Rep: Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339
In RHEL6, in GUI mode, this is done in the partition setup. Create physical volumes out of your hard drives. Then add them both to the logical volume. RHEL offers nice instructions if you have issues:

http://www.linuxtopia.org/online_boo...e_LVM-x86.html
 
1 members found this post helpful.
Old 06-18-2013, 02:29 PM   #4
bluforce
Member
 
Registered: Apr 2012
Posts: 39

Original Poster
Rep: Reputation: Disabled
Thanks.

How would you recommend setting up my partitions under "custom layout"? I have a
sda - free - 953869MB and also
sdb - free - 953869MB.

I would to have these drives merged into one volume for the majority of space, which would be mounted at /data
Would I need to create /boot, /, and swap with the rest LVM on sda and sdb?

TIA
 
Old 06-18-2013, 02:40 PM   #5
cbtshare
Member
 
Registered: Jul 2009
Posts: 610

Rep: Reputation: 42
It all depends which way your going to do it....If you want to use the GUI then linux will create the ,/ and swap as LVM ..So just use the linux GUI tool and add create the LVM ...command line is easier to me

Last edited by cbtshare; 06-18-2013 at 07:26 PM. Reason: Boot cannot be LVM
 
Old 06-18-2013, 03:29 PM   #6
mddnix
Member
 
Registered: Mar 2013
Location: Bangalore, India
Distribution: Redhat, Arch, Ubuntu
Posts: 505

Rep: Reputation: 137Reputation: 137
/boot connot be on LVM. Rest all could be on LVM.

In anaconda, set 200mb regular partition (ext4) on /dev/sda for /boot (/dev/sda1). Rest of the space add to volume group along with /dev/sdb.

Since you have 2 disks, you have three option to create logical volumes: Linear, Striped and Mirrored.

You can have more information of types of logical volumes and how to setup here: Logical Volume Administration

But i'm not sure these can be achieved on anaconda.

Last edited by mddnix; 06-18-2013 at 03:37 PM.
 
Old 06-18-2013, 04:10 PM   #7
swamp-dog
LQ Newbie
 
Registered: Sep 2010
Posts: 6

Rep: Reputation: 0
Quote:
Originally Posted by bluforce View Post
Thanks.

How would you recommend setting up my partitions under "custom layout"? I have a
sda - free - 953869MB and also
sdb - free - 953869MB.

I would to have these drives merged into one volume for the majority of space, which would be mounted at /data
Would I need to create /boot, /, and swap with the rest LVM on sda and sdb?

TIA
Choice is yours. I think you're considering raid0 or raid1 here. You can have raid0, 2Tb-(os space) or raid1, 1Tb-(os space). The former will lose everything if either disk fails. The latter will allow you to replace that failed disk and rebuild the new disk from the remaining good disk.
 
Old 06-18-2013, 04:25 PM   #8
whizje
Member
 
Registered: Sep 2008
Location: The Netherlands
Distribution: Slackware64 current
Posts: 592

Rep: Reputation: 140Reputation: 140
This is also an option:
Quote:
Linear mode

Ok, so you have two or more partitions which are not necessarily the same size (but of course can be), which you want to append to each other.

Spare-disks are not supported here. If a disk dies, the array dies with it. There's no information to put on a spare disk.

Using mdadm, a single command like

mdadm --create --verbose /dev/md0 --level=linear --raid-devices=2 /dev/sdb6 /dev/sdc5

should create the array. The parameters talk for themselves. The out- put might look like this

mdadm: chunk size defaults to 64K
mdadm: array /dev/md0 started.

Have a look in /proc/mdstat. You should see that the array is running.

Now, you can create a filesystem, just like you would on any other device, mount it, include it in your /etc/fstab and so on.
 
  


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
Mounting external hard drives for RHEL someshpr Linux - Hardware 3 11-23-2009 02:23 PM
2 hard drives, XP on my main sata drives, 10.2 on my IDE LILO doesnt show on boot up Dachy Slackware 14 01-03-2008 08:01 AM
Swap hard drives instead of RHEL installs? djeikyb Linux - Newbie 4 12-20-2007 12:26 PM
[Puppy Linux 2.12] Volume spanning multiple hard drives? faron_young Linux - Newbie 3 01-14-2007 12:08 PM
Upgrading hard drives on Software raid 1 boot drives. linuxboy123 Linux - General 0 12-11-2003 04:28 PM


All times are GMT -5. The time now is 04:50 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