LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-11-2016, 04:15 AM   #1
gyanprakash
LQ Newbie
 
Registered: Oct 2015
Posts: 8

Rep: Reputation: Disabled
configuring RAID1 after installation


Hi all,

I just learned about mirroring of disk using RAID1 in RHEL. I went through the steps to configure my disks. But I am bit confused about how to start with. Actually I have one device /dev/mapper/rhel-home mounted on home. I want to mirror this device with /dev/sdc. I would really appreciate any help.

Here is my df -h and fdisk -l output
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/rhel-root 50G 5.7G 45G 12% /
devtmpfs 32G 0 32G 0% /dev
tmpfs 32G 764K 32G 1% /dev/shm
tmpfs 32G 9.0M 32G 1% /run
tmpfs 32G 0 32G 0% /sys/fs/cgroup
/dev/mapper/rhel-home 3.6T 193M 3.6T 1% /home
/dev/sda3 494M 116M 379M 24% /boot
/dev/sda1 496M 95M 402M 19% /boot/efi


Disk /dev/sdb: 4000.8 GB, 4000787030016 bytes, 7814037168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/sda: 4000.8 GB, 4000787030016 bytes, 7814037168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: dos
Disk identifier: 0xe7d96bb9

Device Boot Start End Blocks Id System
/dev/sda1 1 4294967295 2147483647+ ee GPT
Partition 1 does not start on physical sector boundary.

Disk /dev/sdc: 4000.8 GB, 4000787030016 bytes, 7814037168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/mapper/rhel-root: 53.7 GB, 53687091200 bytes, 104857600 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/mapper/rhel-swap: 33.8 GB, 33764147200 bytes, 65945600 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/mapper/rhel-home: 3905.2 GB, 3905249345536 bytes, 7627440128 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
 
Old 01-11-2016, 06:24 AM   #2
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora
Posts: 1,687

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
If you went through the steps to configure your disk, I would guess that /dev/mapper/rhel-home is already a RAID 1 device, perhaps using sdb and sdc.

Can you show us the output of lsblk, vgs and lvs? This should give us more clarity about rhel-home.

Last edited by berndbausch; 01-11-2016 at 06:29 AM.
 
1 members found this post helpful.
Old 01-11-2016, 06:52 AM   #3
gyanprakash
LQ Newbie
 
Registered: Oct 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hi,

Thanks for reply,

Here are the outputs of lsblk, vgs and lvs


NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 3.7T 0 disk
├─sda1 8:1 0 500M 0 part /boot/efi
├─sda2 8:2 0 40M 0 part
├─sda3 8:3 0 500M 0 part /boot
├─sda4 8:4 0 6G 0 part
└─sda5 8:5 0 3.6T 0 part
├─rhel-root 253:0 0 50G 0 lvm /
├─rhel-swap 253:1 0 31.5G 0 lvm [SWAP]
└─rhel-home 253:2 0 3.6T 0 lvm /home
sdb 8:16 0 3.7T 0 disk
sdc 8:32 0 3.7T 0 disk
sr0 11:0 1 1024M 0 rom


VG #PV #LV #SN Attr VSize VFree
rhel 1 3 0 wz--n- 3.63t 0


home rhel -wi-ao---- 3.55t
root rhel -wi-ao---- 50.00g
swap rhel -wi-ao---- 31.45g

Last edited by gyanprakash; 01-11-2016 at 07:15 AM.
 
  


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
[SOLVED] what's the problem of LINUX MINT installation on RAID1? happywm Linux - Newbie 4 05-05-2015 04:08 PM
Configuring RedHat Enterprise 4 on a server using RAID1 for OS and RAID5 Data Pro/Con dmchenry Linux - Enterprise 1 05-26-2007 08:10 AM
What possible Linux OS to used when i will configuring RAID1 as well as hot swapping. rickymaloy Linux - Server 7 05-15-2007 04:32 AM
How configuring lilo with raid1 and lvm on mandriva 2007 gibe Linux - Server 1 11-16-2006 06:56 PM
Newbie needs help for hardware RAID1 installation xpucto Linux - Hardware 0 03-30-2006 04:28 AM


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