Chnaging partition types of RAID array members
Thanks. The issue turned out to be that the device mapper was running and immediately grabbed the disk device when I changed it's partition type. For others out there that may run into the same problem, I did a dmsetup -C remove <device>. Then I could add it to the array just fine.
The reshaping of the array worked fine, thought it took about 15 hrs to add 1.5TB of new disk to an existing 2.5 TB array. Everything was done with the filesystem live though, and worked great. Neil, your work with mdadm and the associated kernel work is very much appreciated.
I am moving the data from another 1.2 TB array (to the array that I just added 1.5TB to) to make room in the SATA hotswap chasis for 4 1TB drives that will form a new 3 TB RAID5 array. Before I can take the old array out of service though, I have to move the data in that pv to the other pv I just grew.
So I am doing a pvmove that is taking forever! It's been running for about 12 hours now, and only 30% done, and this is just for 1.2TB's of data. Why is it taking so long?
Is there anything I can do to speed things up? Right now, the disks are set for a lot of readahead (16384) because this server primary stores media. Is pvmove doing very small random reads? If so, maybe I should drop the readahead down to defaults and change the stripe cache size down? The tuning of the disks really improved performance in normal operation, but it just seems like the pvmove should be going faster than this.
Any ideas?
PS This is all under opensuse 10.3.
Thanks,
Mike
----- Original Message ----
From: Neil Brown <[email protected]>
To: Mike Myers <[email protected]>
Cc: [email protected]
Sent: Thursday, November 15, 2007 8:28:07 PM
Subject: Re: Chnaging partition types of RAID array members
Quoted 2 lines · On Thursday November 15, [email protected] wrote:
Hi. I have two RAID5 arrays on an opensuse 10.3 system. They are
used
Quoted 1 line
together in a large LVM volume that contains a lot of data I'd
rather
Quoted 4 lines
not have to try and backup/recreate.
md1 comes up fine and is detected by the OS on boot and assembled
automatically. md0 however, doesn't, and needs to be brought up
manually,
Quoted 1 line
followed by a manual start of lvm. This is a real pain of course.
The
Quoted 2 lines
issue I think is that md0 was created through EVMS, which I have stopped using some time ago since it's support seems to have been
deprecated.
Quoted 1 line
EVMS created the array fine, but using partitions that were not
0xFD
Quoted 1 line
(Linux RAID), but rather
0x83(linux native). Since stopping the
use
Quoted 3 lines
of EVMS on boot, the array has not come up automatically.
I have tried failing one of the array members, recreating the
partition
Quoted 2 lines
as linux RAID though the yast partition manager, and then trying to add it, but I get a "mdadm: Cannot open
/dev/sdb1: Device or
resource
Quoted 1 line
busy" error. If the partition is type
0x83(linux native) and
formatted
Quoted 1 line
with a filesystem first, then re-adding it is no problem at all, and
the array rebuilds
Quoted 1 line
fine.
You don't need to fail a device just to change the partition type. Just use "cfdisk" to change all the partition types to 'fd', then reboot and see what happens.
NeilBrown
Quoted 4 lines
In googling the topic I can't seem to find out why I get the error
message, and how to fix this. I'd really like to get this problem resolved. Does anyone out there know how to fix this, so I can get
partitions
Quoted 13 lines
correctly flagged as Linux RAID and the array autodetected at start?
Sorry if I missed something obvious.
Thanks,
Mike
____________________________________________________________________________________
Quoted 4 lines
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
-
To unsubscribe from this list: send the line "unsubscribe linux-raid"
in
Quoted 2 lines
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
-
To unsubscribe from this list: send the line "unsubscribe linux-raid"
in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
____________________________________________________________________________________
Get easy, one-click access to your favorites.
Make Yahoo! your homepage.
http://www.yahoo.com/r/hs