Deleting A Software Raid And Its Data - Novell LINUX ENTERPRISE SERVER 10 SP2 - STORAGE ADMINISTRATION GUIDE 05-15-2009 Administration Manual

Table of Contents

Advertisement

To configure an e-mail alert:
1 At a terminal console, log in as the
2 Edit the
/etc/mdadm/mdadm.conf
example, specify the MAILADDR value (using your own e-mail address, of course):
DEVICE partitions
ARRAY /dev/md0 level=raid1 num-devices=2
UUID=1c661ae4:818165c3:3f7a4661:af475fda
devices=/dev/sdb3,/dev/sdc3
MAILADDR yourname@example.com
The MAILADDR line gives an e-mail address that alerts should be sent to when mdadm is
running in
--monitor
line in
mdadm.conf
3 Start
monitoring by entering the following at the terminal console prompt:
mdadm
mdadm --monitor --mail=yourname@example.com --delay=1800 /dev/md0
The
option causes
--monitor
on any events noticed.
it should normally be run in the background.
In addition to reporting events in this mode,
another if they are in the same spare-group and if the destination array has a failed drive but no
spares.
Listing the devices to monitor is optional. If any devices are listed on the command line,
monitors only those devices. Otherwise, all arrays listed in the configuration file are monitored.
Further, if
option is added in the command, then any other
--scan
are also monitored.
proc/mdstat
For more information about using
4 To configure the
/etc/init.d/mdadmd
suse:~ # egrep 'MAIL|RAIDDEVICE' /etc/sysconfig/mdadm
MDADM_MAIL="yourname@example.com"
MDADM_RAIDDEVICES="/dev/md0"
MDADM_SEND_MAIL_ON_START=no
suse:~ # chkconfig mdadmd --list
mdadmd
0:off

6.7 Deleting a Software RAID and Its Data

If you want to remove the prior multipath settings, deactivate the RAID, delete the data on the
RAID, and release all resources used by the RAID, do the following:
1 If you want to keep the data stored on the software RAID device, make sure to back up the data
to alternate media, using your normal backup procedures. Make sure the backup is good before
proceeding.
2 Open a terminal console prompt as the
commands described in the remaining steps.
3 Dismount the software RAID device by entering
user.
root
file to add your e-mail address for receiving alerts. For
mode with the
--scan
, and it should have only one address.
to periodically poll a number of
mdadm
never exits once it decides that there are arrays to be checked, so
mdadm
mdadm
, see the
mdadm
service as a script:
1:off
2:off
3:on
root
option. There should be only one MAILADDR
might move a spare drive from one array to
md
and
mdadm(8)
mdadm.conf(5)
4:off
5:on 6:off
user or equivalent. Use this console to enter the
Managing Software RAIDs with EVMS
arrays and to report
md
mdadm
devices that appear in
/
man pages.
95

Advertisement

Table of Contents
loading

This manual is also suitable for:

Linux enterprise desktop 10 sp2

Table of Contents