diff options
-rw-r--r-- | templates/add/raid/node.tag/member/node.tag/node.def | 11 |
1 files changed, 11 insertions, 0 deletions
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 |