* Raid Persistent Superblock Question..
@ 2003-01-19 20:50 Sandu Mihai
2003-01-19 21:04 ` Alvin Oga
0 siblings, 1 reply; 4+ messages in thread
From: Sandu Mihai @ 2003-01-19 20:50 UTC (permalink / raw)
To: linux-raid
Is there any tool that can help someone edit the persistent superblock of a
partition/device that is a member of an RAID array?
Problem:
I have md0 - raid1 - /dev/sda1 + /dev/sdb1 + persistent-superblock 1
md0 happens to be my / partition.
If I will insert another two disks in that box (/dev/sdd, /dev/sdc with
/dev/sdc1, /dev/sdd1 being members of md0 RAID1 array, the disks are from
another box..) the kernel will mess-up the things, by 'autodetecting' the
newly added disks as md0, and not _my_ disks.
If I could alter the superblock info on the newly added disks, well,
that will be good.
So far, no HOWTO, and no docs mention the existence of a tool like this (you
can only query the superblock, and that is all..)
Best regards,
Sandu Mihai - KPNQwest Romania Network Engineer
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Raid Persistent Superblock Question.. 2003-01-19 20:50 Raid Persistent Superblock Question Sandu Mihai @ 2003-01-19 21:04 ` Alvin Oga 2003-01-20 1:57 ` Sandu Mihai 0 siblings, 1 reply; 4+ messages in thread From: Alvin Oga @ 2003-01-19 21:04 UTC (permalink / raw) To: Sandu Mihai; +Cc: linux-raid hi ya when you add a new scsi disk... you have to be careful about its unit number make sure your dirves are properly configured... - sda is in fact the lowest scsi-ID - sdb is in fact lowest scsi-ID +1 - add your new disks w/ higher scsi-IDs all should work fine sda, sdb, sdc is (re-)assigned in the sequence of scsi-IDs c ya alvin On Sun, 19 Jan 2003, Sandu Mihai wrote: > > Is there any tool that can help someone edit the persistent superblock of a > partition/device that is a member of an RAID array? > > Problem: > I have md0 - raid1 - /dev/sda1 + /dev/sdb1 + persistent-superblock 1 > md0 happens to be my / partition. > If I will insert another two disks in that box (/dev/sdd, /dev/sdc with > /dev/sdc1, /dev/sdd1 being members of md0 RAID1 array, the disks are from > another box..) the kernel will mess-up the things, by 'autodetecting' the > newly added disks as md0, and not _my_ disks. > If I could alter the superblock info on the newly added disks, well, > that will be good. > So far, no HOWTO, and no docs mention the existence of a tool like this (you > can only query the superblock, and that is all..) > ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Raid Persistent Superblock Question.. 2003-01-19 21:04 ` Alvin Oga @ 2003-01-20 1:57 ` Sandu Mihai 2003-01-20 2:07 ` Alvin Oga 0 siblings, 1 reply; 4+ messages in thread From: Sandu Mihai @ 2003-01-20 1:57 UTC (permalink / raw) To: Alvin Oga; +Cc: linux-raid Ok. I am carefull. But, I want to be able to mangle with the superblock, in order to have my kernel 'autodetect' a disk as being a member of a specific md device. If for example you install Redhat on a box, with all the things on software raid (including /), Redhat will autogenerate a raidtab, with every disk having a permanent superblock. That will glue forever your disks to md0, md1, etc (sadly, Redhat install will not allow you to specify which mdNNN you will use for what, except if you are doing kickstart install). If you will move the disks in another box (also Redhat), the other box will go bezerk, since by the 'magic' of array membership autodetection it will autodetect your new disks as part of a md device and then it will refuse to create the correct md device with the existing disks. (that is, if the box has md devices overlapping with those on the other box, eg. md0 used for / on both, etc) The new disks (in my case) got a correct SCSI assignment (newdisk 1 = sdc, new disk 2 = sdd, which is correct). So far, I have seen a lot of tools that either query the superblock, add a disk in the array, etc. I did not seen one that can let one edit the superblock of a raid device. /Mike ----- Original Message ----- From: "Alvin Oga" <aoga@Maggie.Linux-Consulting.com> To: "Sandu Mihai" <mihai.sandu@kpnqwest.ro> Cc: <linux-raid@vger.kernel.org> Sent: Sunday, January 19, 2003 11:04 PM Subject: Re: Raid Persistent Superblock Question.. > > hi ya > > when you add a new scsi disk... you have to be careful > about its unit number > > make sure your dirves are properly configured... > - sda is in fact the lowest scsi-ID > - sdb is in fact lowest scsi-ID +1 > - add your new disks w/ higher scsi-IDs > > all should work fine > > sda, sdb, sdc is (re-)assigned in the sequence of scsi-IDs > > c ya > alvin > > On Sun, 19 Jan 2003, Sandu Mihai wrote: > > > > > Is there any tool that can help someone edit the persistent superblock of a > > partition/device that is a member of an RAID array? > > > > Problem: > > I have md0 - raid1 - /dev/sda1 + /dev/sdb1 + persistent-superblock 1 > > md0 happens to be my / partition. > > If I will insert another two disks in that box (/dev/sdd, /dev/sdc with > > /dev/sdc1, /dev/sdd1 being members of md0 RAID1 array, the disks are from > > another box..) the kernel will mess-up the things, by 'autodetecting' the > > newly added disks as md0, and not _my_ disks. > > If I could alter the superblock info on the newly added disks, well, > > that will be good. > > So far, no HOWTO, and no docs mention the existence of a tool like this (you > > can only query the superblock, and that is all..) > > > > > > ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Raid Persistent Superblock Question.. 2003-01-20 1:57 ` Sandu Mihai @ 2003-01-20 2:07 ` Alvin Oga 0 siblings, 0 replies; 4+ messages in thread From: Alvin Oga @ 2003-01-20 2:07 UTC (permalink / raw) To: Sandu Mihai; +Cc: linux-raid hi ya i've moved raid drives from one box to another box with no problems... i think oyu are running into "LABEL=xxx" problems in /etc/fstab ( get rid of that sillyness ... makes sw-raid go bonkers ) and make sure your disk partitions are "FD" type and if you wanna move the drives from /dev/md0 to /dev/md7 just modify /etc/raidtab accordingly .. (rename to /dev/md7 ) - i havent had to play w/ superblocks c ya alvin On Mon, 20 Jan 2003, Sandu Mihai wrote: > Ok. I am carefull. But, I want to be able to mangle with the superblock, in > order to have my kernel 'autodetect' a disk as being a member of a specific > md device. > ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-01-20 2:07 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2003-01-19 20:50 Raid Persistent Superblock Question Sandu Mihai 2003-01-19 21:04 ` Alvin Oga 2003-01-20 1:57 ` Sandu Mihai 2003-01-20 2:07 ` Alvin Oga
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).