FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 08-16-2012, 08:37 PM
SilverTip257
 
Default Software RAID woes due to GRUB

Hello,

I recently cloned an old install from one server chassis to another via rsync.
The old setup only had one disk and the new one is set up with two
disks in a softraid.
I managed to solve the problem and thought I'd present it here to
benefit others.

attempting to add sda3 to md2 says:
mdadm: hot add failed for /dev/sda3: Invalid argument

dmesg says:
md: could not bd_claim sda3.
md: error, md_import_device() returned -16

Drive is not mounted or in use by the OS.
SMART error logs do not indicate any disk failures.
I can boot up to a rescue CD and the array assembles just fine.

Go figure the old install used partition labels to determine the boot
device. So GRUB grabbed the first disk /dev/sda, on which root was
label "/" or device /dev/sda3. So GRUB kept /dev/sda3 busy so that
mdadm couldn't add it to the array.

Changing the root= device kernel param in grub.conf to the raid device
md2 and re-rolling the initial ramdisk cleared up the problem.
It boots fine and assembles a healthy softraid now.


Maybe it's a stupid item to overlook, but it certainly gave me a head
scratcher for a bit.
Have a laugh ... I certainly did when things were up and running properly again.

---~~.~~---
Mike
// SilverTip257 //
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 10:00 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org