On Sat, Sep 09, 2006 at 03:40:57PM -0700, Michael Morrison wrote:
> Got on oops when trying to mount xfs filesystem onto unassembled md
> raid0 device.
> What else can I provide to help with this?
>
> Linux version: 2.6.18-rc4
> Drives are hanging off an LSI fibre channel controller which is driven by
> the mpt driver in drivers/message/fusion.
>
> Steps leading up to this:
>
> 1. assemble 8 drive raid0 on /dev/md0
> 2. mount filesystem: /bin/mount -t xfs /dev/md0 /mnt/testfs -o
> noatime,nodiratime
> 3. umount /mnt/testfs
> 4. mdadm --stop /dev/md0
> 5. /bin/mount -t xfs /dev/md0 /mnt/testfs -o noatime,nodiratime
So why did MD allow /dev/md0 to be used if the device had been
stopped? According to the mdadm man page a --stop will release all
resources associated with the md device so after stopping /dev/md0
it should not be possible to use it.
This is not an XFS problem - this is either an MD bug (leaving /dev/md0
around after being stopped) and/or user error.
Cheers,
Dave.
--
Dave Chinner
Principal Engineer
SGI Australian Software Group
|