Sponsored Content
Full Discussion: Sysdump and unmirroring
Operating Systems AIX Sysdump and unmirroring Post 302226441 by Locki on Tuesday 19th of August 2008 04:15:10 AM
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..
 

3 More Discussions You Might Find Interesting

1. 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

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. 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
SVK::Command::Smerge(3) 				User Contributed Perl Documentation				   SVK::Command::Smerge(3)

NAME
SVK::Command::Smerge - Automatically merge all changes between branches SYNOPSIS
smerge DEPOTPATH [PATH] smerge DEPOTPATH1 DEPOTPATH2 smerge [--to|--from] [PATH] OPTIONS
-I [--incremental] : apply each change individually -l [--log] : use logs of merged revisions as commit message -B [--baseless] : use the earliest revision as the merge point -b [--base] BASE : use BASE as the merge base, which can be PATH:REV -s [--sync] : synchronize mirrored sources before update -t [--to] : merge to the specified path -f [--from] : merge from the specified path --verbatim : verbatim merge log without indents and header --no-ticket : do not record this merge point --track-rename : track changes made to renamed node --host HOST : use HOST as the hostname shown in merge log --remoterev : use remote revision numbers in merge log -m [--message] MESSAGE : specify commit message MESSAGE -F [--file] FILENAME : read commit message from FILENAME --template : use the specified message as the template to edit --encoding ENC : treat -m/-F value as being in charset encoding ENC -P [--patch] NAME : instead of commit, save this change as a patch -S [--sign] : sign this change -C [--check-only] : try operation but make no changes --direct : commit directly even if the path is mirrored perl v5.10.0 2008-08-04 SVK::Command::Smerge(3)
All times are GMT -4. The time now is 08:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy