Permalink
Browse files

Change a bit how we cleanup a gmirror before starting install. This does

remove the gmirror device, but for whatever reason, gmirror won't release
the drives until we reboot.
  • Loading branch information...
1 parent 0ece806 commit 9dbae63f2826b3138dca0d79cd1de1aa7683f567 @kmoore134 kmoore134 committed Aug 13, 2013
Showing with 6 additions and 2 deletions.
  1. +6 −2 src-sh/pc-sysinstall/backend/functions-disk.sh
@@ -287,12 +287,16 @@ stop_all_gmirror()
GPROV="`gmirror list | grep ". Name: mirror/" | cut -d '/' -f 2`"
for gprov in $GPROV
do
+ echo_log "Stopping mirror $gprov"
+ rc_nohalt "gmirror stop -f $gprov"
+
dName=`gmirror list | grep -v 'mirror/' | grep "Name: " | awk '{print $3}'`
for rmDisk in $dName
do
- echo_log "Stopping mirror $gprov $rmDisk"
rc_nohalt "gmirror remove $gprov $rmDisk"
- rc_nohalt "dd if=/dev/zero of=/dev/${rmDisk} count=4096"
+ rc_nohalt "gmirror deactivate $gprov $rmDisk"
+ rc_nohalt "gmirror clear $rmDisk"
+ #rc_nohalt "dd if=/dev/zero of=/dev/${rmDisk} count=4096"
done
done
};

0 comments on commit 9dbae63

Please sign in to comment.