Christoph Gysin wrote:

>Benjamin Sobotta wrote:
>  
>
>>I set up a software RAID1 with two SATA disks. /home resides on the raid. 
>>This 
>>used to work great for month. At boot the machine would test the raid and 
>>start it. Great!
>>2 days ago however I put loop-AES on top of it in order to encrypt my home 
>>directory. Since then it still finds the raid at startup, however, doesn't 
>>start it anymore. (displays "skipping"). I always have to start by hand via 
>>"raidstart /dev/md0". Then it works fine.
>>Can someone tell me why it stopped to start automatically - or even better 
>>how 
>>to get it back to work?!
>>    
>>
>
>The raid configuration (as defined in the raidtab) gets stored in a superblock
>on each disk. If the partitiontype is fd, linux reads the superblock at boot 
>and
>automatically starts the array.
>  
>
All true....

>Since you have now encrypted the whole device, linux can't read the superblock
>at boot. raidstart works, because it reads /etc/raidtab and sets up the array.
>  
>

Sorry, this is all false.  Benjamin has placed the encypted volume *on
top* of the raid array, not underneath it.  Besides if you clobber the
superblocks, and your raidtab matches your actual configuration (has
"persistent-superblock 1"), raidstart will throw an error.

The array is not autodetected because the kernel cannot decipher his
partition table at boot time.

-Richard

-- 
[email protected] mailing list

Reply via email to