nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

about raid1 on CentOS 5.1

This is a discussion on about raid1 on CentOS 5.1 within the CentOS / RHEL / Fedora forums, part of the Linux Distribution category; Dear Linux Friends, I tried to configure raid1 with lvm in centos 5. Here is the disk partition with fdisk ...


Go Back   nixCraft Linux Forum > Linux Distribution > CentOS / RHEL / Fedora

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 08-22-2008, 03:06 PM
Junior Member
User
 
Join Date: Aug 2008
My distro: CentOS, Fedora,Ubuntu,RHEL
Posts: 4
Rep Power: 0
linuxss is on a distinguished road
Default about raid1 on CentOS 5.1

Dear Linux Friends,

I tried to configure raid1 with lvm in centos 5. Here is the disk partition with fdisk -l command:


Disk /dev/hdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 13 104391 83 Linux
/dev/hdb2 14 9632 77264617+ fd Linux raid autodetect
/dev/hdb3 9633 9729 779152+ 8e Linux LVM

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 9729 78148161 8e Linux LVM


After installation, when i remove one harddisk, the system won't boot. Now i need to put both harddisk for starting CentOS. I hope i made some mistake during installation.

Now can i remake RAID1 disk without totally reinstalling CentOS ?
Please Help!
Thanks
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-22-2008, 03:30 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,060
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Is it Software RAID1 or Hardware RAID1?
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #3 (permalink)  
Old 08-22-2008, 03:39 PM
Junior Member
User
 
Join Date: Aug 2008
My distro: CentOS, Fedora,Ubuntu,RHEL
Posts: 4
Rep Power: 0
linuxss is on a distinguished road
Default

Quote:
Originally Posted by nixcraft View Post
Is it Software RAID1 or Hardware RAID1?

it is software RAID1
Reply With Quote
  #4 (permalink)  
Old 08-25-2008, 09:27 PM
raj raj is offline
Contributors
User
 
Join Date: Jun 2005
Location: Hyderabad
Posts: 151
Rep Power: 4
raj is on a distinguished road
Default

Did you formatted or modified partitions on 2nd hard disk? If not use raidhotadd command to get the disks re-mirrored.

The raidhotadd command will rebuild your RAID array once the drive has been replaced.

You need to boot from 1st CentOS cd (rescue mode) and fix the issue.
Code:
raidhotadd /dev/md0 /dev/sdb
Replace /dev/md0 with actual raid device name (e.g. /dev/md0). While array is under construction, you can see progress and other information by typing following command
Code:
cat /proc/mdstat
The Software-RAID HOWTO
__________________
Raj
Linux rulz.
I have never turned back in my life ; I shall not do so today.. haha
Reply With Quote
  #5 (permalink)  
Old 08-27-2008, 01:08 PM
Junior Member
User
 
Join Date: Aug 2008
My distro: CentOS, Fedora,Ubuntu,RHEL
Posts: 4
Rep Power: 0
linuxss is on a distinguished road
Default

Thanks, i will try it and let you know.


Quote:
Originally Posted by raj View Post
Did you formatted or modified partitions on 2nd hard disk? If not use raidhotadd command to get the disks re-mirrored.

The raidhotadd command will rebuild your RAID array once the drive has been replaced.

You need to boot from 1st CentOS cd (rescue mode) and fix the issue.
Code:
raidhotadd /dev/md0 /dev/sdb
Replace /dev/md0 with actual raid device name (e.g. /dev/md0). While array is under construction, you can see progress and other information by typing following command
Code:
cat /proc/mdstat
The Software-RAID HOWTO
Reply With Quote
Reply

Bookmarks

Tags
/proc/mdstat , raid1 , raidhotadd , software raid1


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
NPTL...MISSING in Centos !!!!!!!!!!! amsreeku Linux software 0 08-08-2008 04:10 AM
Cannot log in to centos 5 server melvuen CentOS / RHEL / Fedora 0 04-24-2008 10:50 AM
software RAID1 sumit Linux hardware 1 07-17-2007 02:24 AM
Useless services in CentOS VDS/VPS meowing Web servers 6 06-02-2007 06:34 PM
Display Problem in CentOS 4.4 kasimani Linux software 1 05-05-2007 02:36 PM


All times are GMT +5.5. The time now is 03:58 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36