Bug 95594 - baselayout: raid-stop.sh for /lib/rcscripts/addons/
Bug#: 95594 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: base-system@gentoo.org Reported By: public@mjh.name
Component: baselayout
URL: 
Summary: baselayout: raid-stop.sh for /lib/rcscripts/addons/
Keywords:  
Status Whiteboard: 
Opened: 2005-06-09 11:55 0000
Description:   Opened: 2005-06-09 11:55 0000
Hello,

as I have software-raid arrays using LVM LVs as source devices (which is useful 
if you want e. g. only to mirror your very important data), raid arrays need to 
be shut down to permit LVM to shut down completely. Therefore I need a /lib/
rcscripts/addons/raid-stop.sh to shut raid arrays down. 
Attached is an extremely simple proposal which calls mdadm -Ss (Stop devices 
scanning config files for information about what to stop) if mdadm is present. 
The part for raidtools is missing as I don't use raidtools. 

Regards,
Milan

Reproducible: Always
Steps to Reproduce:
1.
2.
3.

------- Comment #1 From Milan Holzäpfel 2005-06-09 11:57:36 0000 -------
Created an attachment (id=60937) [details]
raid-stop.sh containung shutdown command for mdadm

A very simple /lib/rcscripts/addons/raid-stop.sh calling mdadm -Ss. 
raidtools-part is not present. 

------- Comment #2 From SpanKY 2005-06-09 18:35:02 0000 -------
added `raidstop` code and added to cvs, thanks