How to stop raid prior to shutdown...

How to stop raid prior to shutdown...

am 24.08.2004 06:23:32 von Bob Hillegas

Sorry for newbie question. Software-RAID-HOWTO said the following
would stop an array for shutdown. mdadm complains the array is still
in use. Why?

mdadm --stop --scan

md: md0 still in use.
mdadm: fail to stop array /dev/md0: Device or resource busy

/dev/md0 is not mounted.
There is no filesystem built on the partitions yet.

Just mdadm --create --verbose /dev/md0 --level=raid1 --raid-devices=2
/dev/sda1 /dev/sdb1

cat /proc/mdstat

Personalities : [raid1]
md0 : active raid1 sdb1[1] sda1[0]
71826496 blocks [2/2] [UU]

unused devices:

mdadm --query --detail /dev/md0

/dev/md0:
Version : 00.90.01
Creation Time : Mon Aug 23 20:54:44 2004
Raid Level : raid1
Array Size : 71826496 (68.50 GiB 73.55 GB)
Device Size : 71826496 (68.50 GiB 73.55 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Mon Aug 23 21:16:09 2004
State : clean, no-errors
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0


Number Major Minor RaidDevice State
0 8 1 0 active sync /dev/sda1
1 8 17 1 active sync /dev/sdb1
UUID : 4b2b674d:2b170d5e:3fbbf170:373f1bee
Events : 0.2
Thanks, BobH
--
------------------------------
Bob Hillegas
bobhillegas@houston.rr.com

-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: How to stop raid prior to shutdown...

am 24.08.2004 08:49:13 von tosse

On Tue, 2004-08-24 at 06:23, Bob Hillegas wrote:
> Sorry for newbie question. Software-RAID-HOWTO said the following
> would stop an array for shutdown. mdadm complains the array is still=20
> in use. Why?=20
>=20
> mdadm --stop --scan
>=20
> md: md0 still in use.
> mdadm: fail to stop array /dev/md0: Device or resource busy

Check if mdadm is still monitoring the array, if it is, shut it down.
Worked for me :)

--=20
Med vänliga hälsningar / Best regards
Torbjörn Olander
tosse@wlug.westbo.se

-
To unsubscribe from this list: send the line "unsubscribe linux-raid" i=
n
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html