you can do it in few ksh commands. Let's suppose :
- your sysdumpdev has been created with the right LV type (sysdump)
- your rootvg is on the two disks hdisk0 and hdisk1
- you have verified the settings for your sysdump device with the command : sysdumpdev -l, and found something like that :
primary /dev/mysysdumplv
secondary /dev/null
...
otherwise you should issue the following command :
sysdumpdev -P -s /dev/null
- you verified that your sysdump device was actually on the first disk, the following command :
lslv -m mysysdumplv | sed 1,2d | awk '{ print $3}' | uniq
should return only "hdisk0"
- you verified that for each lv, each copy was on only one disk (when growing FS, if you just issued uncontrolled "chfs" commands on FS built upon mirrored LV, it may happened that copies are mixed between both disks !)
then you can do the following :
LVS=$( lsvg -l rootvg | sed 1,2d | awk '{ if ($2 != "sysdump") print $1; }' )
for lv in $LVS; do
echo "removing $lv copy from hdisk1" # not to be in front of a desperatly black screen while everything is proceeding
rmlvcopy $lv 1 hdisk1
done
lspv -l hdisk1 # to be sure there's nothing left on it
reducevg rootvg hdisk1
# don't forget to modify the bootlist
bootlist -m normal -o hdisk0
bosboot -ad hdisk0
and it should do it ! you should have a whole drive just to do an alternate disk install of your mksysb with patches.