From f3dfb8baddab26bffac0a78890d1ad18035636fe Mon Sep 17 00:00:00 2001 From: Bob Gilligan Date: Tue, 14 Oct 2008 13:58:43 -0700 Subject: Bugfix: 3744 New disk added to RAID group will not be made bootable until after the RAID rebuild completes. Warn user not to reboot until that happens. --- templates/add/raid/node.tag/member/node.tag/node.def | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/templates/add/raid/node.tag/member/node.tag/node.def b/templates/add/raid/node.tag/member/node.tag/node.def index 60eff63..293b4ea 100644 --- a/templates/add/raid/node.tag/member/node.tag/node.def +++ b/templates/add/raid/node.tag/member/node.tag/node.def @@ -34,5 +34,16 @@ run: if [ $? -ne 0 ]; then echo "Unable to add member to RAID set" fi + + mounted_on=`mount | grep "^/dev/${raid_set}" | awk '{ print $3 }'` + if [ "$mounted_on" = "/" ]; then + echo + echo "Warning: RAID set ${raid_set} holds the root filesystem." + echo "To make the new disk bootable, the boot program will be" + echo "updated after the RAID rebuild process completes. Do" + echo "not reboot the system until the rebuild has finished." + echo "You may run \"show raid ${raid_set}\" to monitor the" + echo "status of the rebuild." + fi fi -- cgit v1.2.3