diff options
author | Bob Gilligan <gilligan@vyatta.com> | 2008-10-14 13:58:43 -0700 |
---|---|---|
committer | Bob Gilligan <gilligan@vyatta.com> | 2008-10-14 13:58:43 -0700 |
commit | f3dfb8baddab26bffac0a78890d1ad18035636fe (patch) | |
tree | 73291837f3391de3772c202531de682aeaf4ba1c /templates/add | |
parent | cd246600c699e7b7c5046b05052bc9fdfa2a8c70 (diff) | |
download | vyatta-op-f3dfb8baddab26bffac0a78890d1ad18035636fe.tar.gz vyatta-op-f3dfb8baddab26bffac0a78890d1ad18035636fe.zip |
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.
Diffstat (limited to 'templates/add')
-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 |