Changeset 9dbae63f


Ignore:
Timestamp:
08/13/13 11:02:20 (16 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1
Children:
8b8fb3b
Parents:
0ece806
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/pc-sysinstall/backend/functions-disk.sh

    r3018894 r9dbae63f  
    288288  for gprov in $GPROV  
    289289  do 
     290    echo_log "Stopping mirror $gprov" 
     291    rc_nohalt "gmirror stop -f $gprov" 
     292 
    290293    dName=`gmirror list | grep -v 'mirror/' | grep "Name: " | awk '{print $3}'` 
    291294    for rmDisk in $dName 
    292295    do 
    293       echo_log "Stopping mirror $gprov $rmDisk" 
    294296      rc_nohalt "gmirror remove $gprov $rmDisk" 
    295       rc_nohalt "dd if=/dev/zero of=/dev/${rmDisk} count=4096" 
     297      rc_nohalt "gmirror deactivate $gprov $rmDisk" 
     298      rc_nohalt "gmirror clear $rmDisk" 
     299      #rc_nohalt "dd if=/dev/zero of=/dev/${rmDisk} count=4096" 
    296300    done 
    297301  done 
Note: See TracChangeset for help on using the changeset viewer.