Sysdump and unmirroring


 
Thread Tools Search this Thread
Operating Systems AIX Sysdump and unmirroring
# 1  
Old 08-18-2008
Sysdump and unmirroring

I'm researching on how to unmirror a set of mirrored drives as this should enable me to do a failsafe patch install. My current install has 2 disk with all LVs mirrored except the sysdump LV.

This is the bit that confuses me as some seem to advise removing the sysdump from both drives (Patch management in AIX - IT Community) whilst others advise migrating the sysdump LV to the other disk before splitting the mirror.

Is there any reason to choose one option over the other?
# 2  
Old 08-18-2008
That depends on what you want to do. Basically with a two disk rootvg you need to empty one disk completely to make it available for alternate disk installation. If you delete one of your sysump LVs you will have to recreate it again later. If you keep both you need to migrate at least one of it to the disk left in the rootvg. Either method will work.
# 3  
Old 08-19-2008
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.

Last edited by Locki; 08-19-2008 at 05:36 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. AIX

Sysdump on local disk

Hello Team, Our p740 systems are booting up from SAN. We would like to configure the local disk(which is not part of rootvg) as a primary dump device. I have assigned the same too. But in the errpt throwing the below error. Please help me on this. ... (1 Reply)
Discussion started by: gowthamakanthan
1 Replies

2. AIX

AIX unmirroring while mirroring in background

Hi, by mistake I ran unmirror while mirroring was running in the back ground. anyhow the unmirror operation failed with the following 0516-076 lreducelv: Cannot remove last good copy of stale partition. Resynchronize the partitions with syncvg and try again. 0516-922 rmlvcopy:... (0 Replies)
Discussion started by: ithinksgreen
0 Replies

3. UNIX for Dummies Questions & Answers

Can I reduce sysdump?

Hi, I have a server which is running out of space on the rootvg. When trying to find some spare space I discovered there are 2 sysdump logical volumes, each of 5GB, yet if I get an estimate of the dump size it's only 0.5 GB. $ lsvg -l rootvg|grep sysdump hd71 sysdump 20 ... (1 Reply)
Discussion started by: m223464
1 Replies
Login or Register to Ask a Question