LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 11:32 AM   #1
bluforce
Member
 
Registered: Apr 2012
Posts: 51

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, 11:52 AM   #2
cbtshare
Member
 
Registered: Jul 2009
Posts: 645

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, 12:00 PM   #3
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
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, 01:29 PM   #4
bluforce
Member
 
Registered: Apr 2012
Posts: 51

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, 01:40 PM   #5
cbtshare
Member
 
Registered: Jul 2009
Posts: 645

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 06:26 PM. Reason: Boot cannot be LVM
 
Old 06-18-2013, 02:29 PM   #6
Madhu Desai
Member
 
Registered: Mar 2013
Distribution: Rocky, Fedora, Ubuntu
Posts: 541

Rep: Reputation: 153Reputation: 153
/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 Madhu Desai; 06-18-2013 at 02:37 PM.
 
Old 06-18-2013, 03: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, 03:25 PM   #8
whizje
Member
 
Registered: Sep 2008
Location: The Netherlands
Distribution: Slackware64 current
Posts: 594

Rep: Reputation: 141Reputation: 141
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



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 01: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 07:01 AM
Swap hard drives instead of RHEL installs? djeikyb Linux - Newbie 4 12-20-2007 11:26 AM
[Puppy Linux 2.12] Volume spanning multiple hard drives? faron_young Linux - Newbie 3 01-14-2007 11:08 AM
Upgrading hard drives on Software raid 1 boot drives. linuxboy123 Linux - General 0 12-11-2003 03:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:09 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
Open Source Consulting | Domain Registration