lvm and raid woes

Norman Bridges n.w.bridges at isc.keele.ac.uk
Thu Jul 6 06:31:22 CDT 2006


Hi

I'm having problems with a combination of software raid 5 and two 
logical volumes defined on top of the md0. Various information about 
both is shown below. The system is Whitebox 4 fully patched.

I've created ext3 filesystems on both logical volumes, and succesfully 
populated these with data.

A problem arises when I reboot the system, when I find that the first 
logical volume "software" is mounted ok, but the second one "images" 
fails at the fsck stage. Consistently it claims that the journal inode 
is corrupt. It is worth noting though that if I comment out the mounts 
from fstab, and mount them by hand once the system is up then no 
corruption occurs. This all looks as if there is a timing condition 
between mdadm and lvm during the rc.sysinit phase, but I can't get to 
the bottom of it. Any help would be much appreciated.

Thanks


Here's  some details:


[root at sapphire ~]# mdadm -D --scan
ARRAY /dev/md0 level=raid5 num-devices=7 
UUID=2b23cfb2:e432ec2e:e009c05f:721694c
8
 
devices=/dev/sdb1,/dev/sdc1,/dev/sdd1,/dev/sde1,/dev/sdf1,/dev/sdg1,/dev/sdh1
,/dev/sdi1
[root at sapphire ~]# pvdisplay
   --- Physical volume ---
   PV Name               /dev/md0
   VG Name               data
   PV Size               820.38 GB / not usable 0
   Allocatable           yes
   PE Size (KByte)       4096
   Total PE              210017
   Free PE               97
   Allocated PE          209920
   PV UUID               k473bz-c2oU-w93D-wJ0v-RyYO-cHzy-QWlBo6

[root at sapphire ~]# vgdisplay
   --- Volume group ---
   VG Name               data
   System ID
   Format                lvm2
   Metadata Areas        1
   Metadata Sequence No  9
   VG Access             read/write
   VG Status             resizable
   MAX LV                0
   Cur LV                2
   Open LV               1
   Max PV                0
   Cur PV                1
   Act PV                1
   VG Size               820.38 GB
   PE Size               4.00 MB
   Total PE              210017
   Alloc PE / Size       209920 / 820.00 GB
   Free  PE / Size       97 / 388.00 MB
   VG UUID               2ePB85-PvC6-FwOF-Arcr-34VR-2XNC-ImsA6c

[root at sapphire ~]# lvdisplay
   --- Logical volume ---
   LV Name                /dev/data/software
   VG Name                data
   LV UUID                Bj7CSH-nGtx-zQn6-zuQO-Wznk-v24T-pnlSMA
   LV Write Access        read/write
   LV Status              available
   # open                 1
   LV Size                410.00 GB
   Current LE             104960
   Segments               1
   Allocation             inherit
   Read ahead sectors     0
   Block device           253:0

   --- Logical volume ---
   LV Name                /dev/data/images
   VG Name                data
   LV UUID                KRMQ92-6xXU-ZPxo-fFLh-4aFv-Sexn-Nk39W4
   LV Write Access        read/write
   LV Status              available
   # open                 0
   LV Size                410.00 GB
   Current LE             104960
   Segments               1
   Allocation             inherit
   Read ahead sectors     0
   Block device           253:1



-- 
Norman Bridges

_____________________________________________________________________________
N.W.Bridges at isc.keele.ac.uk:[tel] +44 1782 583073:[fax] +44 1782 584234
Keele University:Computing Services:Finance & IT:Keele:Staffs:ST5 5BG:UK



More information about the Linux-PowerEdge mailing list