- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- How to mirror boot disk in Red Hat?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2009 06:11 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2009 10:42 PM
тАО09-04-2009 10:42 PM
Re: How to mirror boot disk in Red Hat?
check thid link and last response :
http://www.tek-tips.com/viewthread.cfm?qid=1318503&page=1
http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch26_:_Linux_Software_RAID
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-05-2009 05:05 AM
тАО09-05-2009 05:05 AM
Re: How to mirror boot disk in Red Hat?
If you wan't to mirror after installation, check the documentation to migrate your current OS because the procedure is a little complicated and you must ensure that during RAID initialization you don't destroy your current data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-05-2009 08:33 AM
тАО09-05-2009 08:33 AM
Re: How to mirror boot disk in Red Hat?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-05-2009 07:46 PM
тАО09-05-2009 07:46 PM
Re: How to mirror boot disk in Red Hat?
http://trinityhome.org/misc/bootable-raid1.html
http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1252208719478+28353475&threadId=1093327
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2009 04:12 AM
тАО09-06-2009 04:12 AM
Re: How to mirror boot disk in Red Hat?
I wish I could say this is what I'm looking for because I found this earlier and dismissed it for a couple of reasons. a) its not supported by red hat b) its so babblely with conditions.
Thanks though. But I'd really like to see a procedure from red hat.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2009 05:29 AM
тАО09-06-2009 05:29 AM
Re: How to mirror boot disk in Red Hat?
http://kbase.redhat.com/faq/docs/DOC-4297
This is for RHEL4 and looks like it hasn't been updated since RHEL5 was released, so I believe it could be applicable with RHEL5 too.
RHEL also includes a LVM-level mirroring function, just like MirrorDisk in HP-UX. However, it is not very well known and recovery knowledge may be hard to find if there is an error. I've used it successfully on RHEL4 for on-line migration of a few systems from one SAN storage to another, though.
http://www.redhat.com/docs/manuals/csgfs/browse/4.5/SAC_Cluster_Logical_Volume_Manager/mirror_create.html
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2009 07:02 AM
тАО09-06-2009 07:02 AM
Re: How to mirror boot disk in Red Hat?
Thanks Matt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2009 07:05 AM
тАО09-06-2009 07:05 AM
Re: How to mirror boot disk in Red Hat?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2009 12:41 AM
тАО09-07-2009 12:41 AM
Solutionbdf is an alias I created to make HP-UX command work in my pea brain molecules.
[root@bersheva ~]# bdf
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg00-lvol1
2.0G 758M 1.1G 41% /
/dev/mapper/vg00-lvol3
7.8G 3.2G 4.3G 43% /usr
/dev/mapper/vg00-lvol4
7.7G 531M 6.8G 8% /var
/dev/mapper/vg01-lvol0
184G 105G 70G 61% /share
/dev/hda1 99M 73M 22M 77% /boot
Note my boot is getting full. Time to pull out some old releases of the kernel.
fdisk -l
See what disks are available.
[root@bersheva ~]# fdisk -l
Disk /dev/hda: 20.4 GB, 20404101120 bytes
255 heads, 63 sectors/track, 2480 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 2480 19816177+ 8e Linux LVM
Disk /dev/hdb: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/hdb doesn't contain a valid partition table
So we want to mirror the stuff on /dev/hda to /dev/hdb
Lets take a look at vg00 as I forced Linux to use hpux volume group names.
[root@bersheva ~]# vgdisplay -v vg00
Using volume group(s) on command line
Finding volume group "vg00"
--- Volume group ---
VG Name vg00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 5
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 4
Open LV 4
Max PV 0
Cur PV 1
Act PV 1
VG Size 18.90 GB
PE Size 1.00 MB
Total PE 19351
Alloc PE / Size 19351 / 18.90 GB
Free PE / Size 0 / 0
VG UUID qiYEF9-L633-qUYg-KTsn-Lah1-wGqE-d2hrDb
--- Logical volume ---
LV Name /dev/vg00/lvol1
VG Name vg00
LV UUID 7cBaOF-DHmO-SMZM-sjM7-QuZ4-08nc-suNKz3
LV Write Access read/write
LV Status available
# open 1
LV Size 2.00 GB
Current LE 2048
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Logical volume ---
LV Name /dev/vg00/lvol3
VG Name vg00
LV UUID Yg9QNp-822v-0ZWw-AMsu-wJrB-iqew-YAFzzi
LV Write Access read/write
LV Status available
# open 1
LV Size 8.00 GB
Current LE 8196
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
--- Logical volume ---
LV Name /dev/vg00/lvol4
VG Name vg00
LV UUID Duyc7u-F26Q-DQdx-ej3c-7Nyk-8sg2-yQD5ou
LV Write Access read/write
LV Status available
# open 1
LV Size 7.89 GB
Current LE 8083
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2
--- Logical volume ---
LV Name /dev/vg00/lvol2
VG Name vg00
LV UUID 3V0brW-AnTz-FWYZ-MMX3-5I26-gsCD-7hwd3T
LV Write Access read/write
LV Status available
# open 1
LV Size 1.00 GB
Current LE 1024
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:3
--- Physical volumes ---
PV Name /dev/hda2
PV UUID 00RXtI-5nOp-qn6d-Tubr-un4c-3cEP-OnKfly
PV Status allocatable
Total PE / Free PE 19351 / 0
pvcreate /dev/hdb
fdisk /dev/hdb
# Carve up hdb into the same layout as /hda, leave the extra space left over for other use.
((If you want you can use dd to copy the data, but raid utilities do that for you already.))
vgextend vg00 /dev/hdb
[root@bersheva ~]# lvdisplay -v vg00
Using logical volume(s) on command line
--- Logical volume ---
LV Name /dev/vg00/lvol1
VG Name vg00
LV UUID 7cBaOF-DHmO-SMZM-sjM7-QuZ4-08nc-suNKz3
LV Write Access read/write
LV Status available
# open 1
LV Size 2.00 GB
Current LE 2048
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Logical volume ---
LV Name /dev/vg00/lvol3
VG Name vg00
LV UUID Yg9QNp-822v-0ZWw-AMsu-wJrB-iqew-YAFzzi
LV Write Access read/write
LV Status available
# open 1
LV Size 8.00 GB
Current LE 8196
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
--- Logical volume ---
LV Name /dev/vg00/lvol4
VG Name vg00
LV UUID Duyc7u-F26Q-DQdx-ej3c-7Nyk-8sg2-yQD5ou
LV Write Access read/write
LV Status available
# open 1
LV Size 7.89 GB
Current LE 8083
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2
--- Logical volume ---
LV Name /dev/vg00/lvol2
VG Name vg00
LV UUID 3V0brW-AnTz-FWYZ-MMX3-5I26-gsCD-7hwd3T
LV Write Access read/write
LV Status available
# open 1
LV Size 1.00 GB
Current LE 1024
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:3
In Linux /boot can not be part of lvm.
So basically, since we have used fdisk to carve the disk up the mirroring is pretty easy.
mdadm --create /dev/md0 --level=raid1 --raid-devices=2 /dev/sda1 /dev/sdb1
# This mirrors /boot
mdadm --create /dev/md1 --level=raid1 --raid-devices=2 /dev/sda1 /dev/sdb1
# This mirrors the LVM partition (see fdisk output)
lvmdiskscan (Since I didn't really do it I can't show you correct output here)
# cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 sdb1[1] sda1[0]
4200896 blocks [2/2] [UU]
md2 : active raid1 sdb2[1] sda2[0]
10490304 blocks [2/2] [UU]
You do need to boot test this.
You need to use grub to make sure the system will actually boot off of either disk.
This article should suffice:
http://www.tux4u.nl/freedocs/linux/html/mirror-boot-26_howto.html
Source article:
http://thewatertower.org.uk/pages/linux-lvm.html
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2009 05:50 AM
тАО09-07-2009 05:50 AM
Re: How to mirror boot disk in Red Hat?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-08-2009 12:57 PM
тАО09-08-2009 12:57 PM
Re: How to mirror boot disk in Red Hat?
You can actually have your LVM System VG sit on top of md (RAID devices).. or even forego LVM and just have your partitions rest on top of md devices (?).
Esily done at install time or even after he fact.
Good examples by our SEP though. Shalom sir.
Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler