LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-09-2009, 11:23 AM   #1
Ammad
Member
 
Registered: Apr 2004
Distribution: redhat 9.0, fc4, redhat as 4
Posts: 522

Rep: Reputation: 31
LVM , RAID and new disks


HI,

i installed RHEL5, with RAID + LVM on 2 disks, it was running fine with /dev/sda and /dev/sdb.
Today i added two new disks in system. after adding the previous disks changed to

Code:
/dev/sda --->  /dev/sdc
/dev/sdb --->  /dev/sdd

and New disks named 
/dev/sda
/dev/sdb
I can boot my system its working fine, but i cant create RAID on new disks, while booting system it displays an error/worning in LVM

Code:
 Incorrect metadata area header checksum
when i create a new RAID there is an error

Code:
root# mdadm --create --verbose /dev/md5 --level=1 --raid-devices=2 /dev/sda2 /dev/sdb2
mdadm: error opening /dev/md5: No such file or directory
IMP* SELINUX is disabled.

i dont have /dev/md5 , it should create new /dev/md5.

Any idea to solve this

thanks.
 
Old 01-09-2009, 12:49 PM   #2
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
Well, clearly the message
Quote:
Incorrect metadata area header checksum
is because your new disks are being mistaken by the system for the old disks. It would have been better, perhaps, if you installed the new disks as /dev/sdc and /dev/sdd; changing the order in the BIOS might be possible.

As far as the second problem is concerned, you need to make the device /dev/md5 with mknod prior to creating the array with mdadm.
 
Old 01-09-2009, 11:26 PM   #3
Ammad
Member
 
Registered: Apr 2004
Distribution: redhat 9.0, fc4, redhat as 4
Posts: 522

Original Poster
Rep: Reputation: 31
thanks, i thought about that to change order but the system is IBM-P , so have to change physical disks, so a new question

i am using Soft-raid, so if i replace both OS disks (RAID 1) to BAY 0,1. will it works without any lost of information (without failure of RAID).


for the RAID? when i first create /dev/md0-4 i didn't created node, then why now?



Thanks for your precious time .
 
Old 01-10-2009, 11:00 AM   #4
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
Quote:
i am using Soft-raid, so if i replace both OS disks (RAID 1) to BAY 0,1. will it works without any lost of information (without failure of RAID).
Might work, and should be safe. Just be careful when you physically move the disks (antistatic precautions) and be careful before you write anything that you know what it is you are doing.. Bachups are always a must in this situation anyway.

Quote:
for the RAID? when i first create /dev/md0-4 i didn't created node, then why now?
Depending of the distro, there are a default number of md devices made, presumably 4 in your case.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LVM and multiple iSCSI disks performance of LVM xxx_anuj_xxx Linux - Server 4 05-01-2008 12:26 PM
moving disks with software raid and LVM mastrboy Linux - General 8 09-30-2006 09:33 AM
Should I use JBOD or LVM? (spanning disks) sillygates Linux - Hardware 2 07-20-2006 08:07 PM
RHEL 3: Steps of expanding file system (add new SCSI disks) to existing SW RAID & LVM atman1974 Linux - General 2 01-12-2006 09:49 PM
Raid Problem Fedora Core 3, RAID LOST DISKS ALWAYS icatalan Linux - Hardware 1 09-17-2005 03:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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