Problem with Raid Array persistence across reboots.



[Apologies if this has already been sent. My home computer systems
seems to be falling around my ears as I have changed all the disks
around, and I desperately need to ask the question below and get an
answer, so I can rebuild my desktop system, and thus release some disks
acting as backup on my server. I was trying to send this via sqwebmail
from my home server, but it died in the process and - my ssh session
terminated and could not be re-established. I think I have probably run
out of disk space, because until I do release the space I am running
with a very restricted root filesystem . Until I get home I can't fix
it, but I want to ask this question quickly to get answers start me on
my way]

...



I created a raid array with mdadm, thus

mdadm --create=/dev/md0 --level=1 --raid-devices=2 /dev/sd[ab]4

and then turned /dev/md0 into a LVM physical volume, volume group and
some logical volumes.

This worked great until I rebooted, at which point the start-up scripts
failed to recreate the raid array, and I got into tricky problems with
duplicate LVM PVs with the same UUID. [and ironically, since I used raid
to avoid it, some data loss - although fortunately I DO have backups]

Two questions

1) In the Debian world, how do you make raid arrays persistent across
reboots?

[It appears that Debian does not use raidtools and /etc/raidtab as the
linux raid howto says)

2) If I do manage to create the array, what stops vgscan during LVM
startup from picking up 3 physical volumes (/dev/md0, /dev/sda4 and
/dev/sdb4) with the same UUID and only find /dev/md0?

--
alan@xxxxxxxxxxxxxxxxxxxxx
(Sent from work e-mail )


This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.



Relevant Pages

  • Re: Problem with Raid Array persistence across reboots.
    ... Chandler, Alan wrote: ... answer, so I can rebuild my desktop system, and thus release some disks ... I created a raid array with mdadm, ... duplicate LVM PVs with the same UUID. ...
    (Debian-User)
  • Re: [opensuse] 11.1 - k3b will not run for non-root, what was the trick?
    ... Try creating a LVM on top of a RAID array. ... disks, rather than let me, add one later when I was ready to silver. ... OS install time, is exactly when disks are not available, as you keep ...
    (SuSE)
  • Re: Debian+LVM+RAID
    ... Why do you need LVM? ... Imho it is better to create a partitionable RAID array first and then ... to create the partitions you want to have on the partitionable RAID ... If you want to use a partitionable RAID array, you can use whole disks ...
    (Debian-User)
  • Re: kernel panic on mounting root fs
    ... > a raid array in its bios, ... > zeros to all partitions and the disks themselves ... I wish you would have done the test first. ... "Lost? ...
    (alt.os.linux)
  • Re: RAID5 ... Hardware problem
    ... Using the same SBS2003 Standard installation disks ... ... I will update all the Motherboard / controller firmware that is possible to ... the drives being used for the RAID array are in HotSwap ...
    (microsoft.public.windows.server.sbs)