Eeeek! - You are leaving yourself at risk with this process.
Might I make a suggestion the you (as root) create an empty directory /disaster and a file /etc/exclude.datavg containing just ^\./ It is a circumflex/hat/funny accent to define beggining of line, then a backslash, fullstop then a forward slash. No trailling spaces. When savevg runs with the -e flag, it will use this file to exclude the contents of the datavg filesystems. Then:-
mkszfile
savevg -ef /disaster/datavg.structure datavg # Save mirrored definition
echo ":%s /COPIES= 2/COPIES= 1\n:wq"|vi /tmp/vgdata/datavg/datavg.data
savevg -ef /disaster/datavg.structure_nomirror datavg # Save un-mirrored definition
mksysb /dev/rmt0 # Backup for recovery to mirrored rootvg disks
echo ":%s /COPIES= 2/COPIES= 1\n:wq"|vi /image.data
mksysb /dev/rmt0 # Backup for recovery single rootvg disk
Now you will notice that there are savevg commands here. These save the definition of your volume group (logical volumes, filesystems etc.) but no data. The files created will be recovered when you restore your mksysb so you have a starting point. You can then issue:-
restvg -q -f /disaster/datavg.structure hdisk2 hdisk3
on your live server, or
restvg -q -f /disaster/datavg.structure_nomirror hdisk1
on the DR server. This will recreate and mount the empty filesystems ready ready for a data restore. Obviously, the disks have to be empty and not part of a volume group to do this, so it is probably only theoretical for your live server. Don't use it unless you have to :rolleyes:
Now obviously you have to consider the data backup/restore process. In my experience, savevg is not the neatest because (I think) you have to restore the whole volume group and that could be a problem if you are just after a single file. Use tar, cpio, or backup & restore to save your data. You can also then split it up over different media and be confident that you can restore single files if required.
You could do the following to get the filesystems you need to backup with tar/cpio etc.:-
lsvg -l datavg |grep open |tr -s " " |cut -f7 -d " " |sort
The rest is up to you really on how you want to play it. I would not necessarily advise avoiding smit completely, more trying to learn what it is doing for you and scripting that up instead. Have a look at smit.script that grows with each command. It will give you a better understanding of what you are asking the server to do.
It should at least reduce the risk to your server during the backup window. Additionally, smit panels are pretty difficult to schedule, so you could end up either staying on-site after business hours (including any schedule) to press the buttons and set it off or risk taking a backup of a moving target.
Does this help?
I think that your description suggests that your data is on plain unmirrored disks. Is that correct? If so then you are at risk there too. I regret that it is probably time to spend some money to protect yourself from a disk failure. If not, can you post the output from:-
lsvg -p datavg
lsvg -l datavg
... so we can see what can be done.
Can anyone else tidy up my procedure, suggest more information (correct any errors too) or help fill this out to better secure the position of this server?
Robin
Liverpool/Blackburn
UK