On Tuesday 24 May 2005 19:01, Richard Fish wrote:
> Benjamin Sobotta wrote:
> >Hello!
> >
> >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?!
>
> Well, I am guessing that your setup is:
>
> /dev/sdaX+/dev/sdbX -> /dev/md0 -> /dev/loop/0 -> /home
>
> If so, then things should still work normally.  Check that your
> partitions are still of type 0xfd (linux raid autodetect).
>
> If not, please describe how your system is setup is a bit more detail.
> Specifically:
>
> 1. The relevant output from dmesg.
> 2. The contents of /proc/mdstat
> 3. The output of "losetup -a"
>
> -Richard

Hi!

Thanks for replying...

Your setup guess is exactly right.

I don't really get the part about the partitions. You mean the partition type 
of /dev/md0? Well when I do "fdisk /dev/md0" und then type 'p' it shows 
nothing. Might this be the problem? However it does detect the partitions at 
startup - it just doesn't start the raid.

1. (hopefully) relevant dmesg stuff:
[..................]
SCSI device sdb: 320173056 512-byte hdwr sectors (163929 MB)
SCSI device sdb: drive cache: write back
SCSI device sdb: 320173056 512-byte hdwr sectors (163929 MB)
SCSI device sdb: drive cache: write back
 /dev/scsi/host2/bus0/target0/lun0: unknown partition table
Attached scsi disk sdb at scsi2, channel 0, id 0, lun 0
SCSI device sdc: 320173056 512-byte hdwr sectors (163929 MB)
SCSI device sdc: drive cache: write back
SCSI device sdc: 320173056 512-byte hdwr sectors (163929 MB)
SCSI device sdc: drive cache: write back
 /dev/scsi/host3/bus0/target0/lun0: unknown partition table
Attached scsi disk sdc at scsi3, channel 0, id 0, lun 0
[...................]
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
[..................]

2. cat /proc/mdstat (while raid is running)
Personalities : [raid1]
md0 : active raid1 sdc[1] sdb[0]
      160086464 blocks [2/2] [UU]

unused devices: <none>

3. losetup -a
/dev/loop/0: [000c]:660 (/dev/md0) encryption=AES256 multi-key-v3
/dev/loop/1: [000c]:640 (/dev/sda5) offset=4096 encryption=AES128 multi-key-v3

/dev/loop/1 is swap.

I hope that this gives more insight... 

Thanks...

Ben
-- 
[email protected] mailing list

Reply via email to