Mandatory FS for mksysb


 
Thread Tools Search this Thread
Operating Systems AIX Mandatory FS for mksysb
# 1  
Old 11-15-2012
Mandatory FS for mksysb

Hi all,

my first post. Be kind to me and to my english writing (i'm french) Smilie

During mksysb backup, some files are moving. I don't know yet which files (i'm starting a new job). For now, i'm wondering which fs are mandatory for a mksysb backup.

Currently, hereafter the content of rootvg :
Code:
hd5                 boot       1       2       2    closed/syncd  N/A
hd6                 paging     66      132     2    open/syncd    N/A
hd8                 jfs2log    1       2       2    open/syncd    N/A
hd4                 jfs2       63      126     2    open/syncd    /
hd2                 jfs2       95      190     2    open/syncd    /usr
hd9var              jfs2       25      50      2    open/syncd    /var
hd3                 jfs2       16      32      2    open/syncd    /tmp
hd1                 jfs2       4       8       2    open/syncd    /home
hd10opt             jfs2       26      52      2    open/syncd    /opt
hd11admin           jfs2       4       8       2    open/syncd    /admin
livedump            jfs2       8       16      2    open/syncd    /var/adm/ras/livedump
loglv02             jfslog     1       1       1    closed/syncd  N/A
lvnim02prod00       jfs2       4       8       2    open/syncd    /prod
lvnim02log00        jfs2       63      126     2    open/syncd    /log
lvnim02logNM00      jfs2       62      124     2    open/syncd    /lognmon

Have a nice day
Pat
# 2  
Old 11-15-2012
Quote:
Originally Posted by Fundix
Hi all,

my first post. Be kind to me and to my english writing (i'm french) Smilie

During mksysb backup, some files are moving. I don't know yet which files (i'm starting a new job). For now, i'm wondering which fs are mandatory for a mksysb backup.

Currently, hereafter the content of rootvg :
Code:
hd5                 boot       1       2       2    closed/syncd  N/A
hd6                 paging     66      132     2    open/syncd    N/A
hd8                 jfs2log    1       2       2    open/syncd    N/A
hd4                 jfs2       63      126     2    open/syncd    /
hd2                 jfs2       95      190     2    open/syncd    /usr
hd9var              jfs2       25      50      2    open/syncd    /var
hd3                 jfs2       16      32      2    open/syncd    /tmp
hd1                 jfs2       4       8       2    open/syncd    /home
hd10opt             jfs2       26      52      2    open/syncd    /opt
hd11admin           jfs2       4       8       2    open/syncd    /admin
livedump            jfs2       8       16      2    open/syncd    /var/adm/ras/livedump
loglv02             jfslog     1       1       1    closed/syncd  N/A
lvnim02prod00       jfs2       4       8       2    open/syncd    /prod
lvnim02log00        jfs2       63      126     2    open/syncd    /log
lvnim02logNM00      jfs2       62      124     2    open/syncd    /lognmon

Have a nice day
Pat
As the MKSYSB backs up just the ROOTVG it is generally thought the filesystems will be the default JFS2. Can you be more specific which files are disappearing? Have you any other VGs defined such as a datavg perhaps which of course will not be backed up by the MKSYSB.

I just had another look at the listing and question where the nim02 files /prod, /log, and /lognmon are? On a different VG perhaps? However if this is a listing of rootvg how can they be? Please let us know whether there are any more VGs defined.

Last edited by johnf; 11-15-2012 at 06:08 AM.. Reason: Added more detail
This User Gave Thanks to johnf For This Post:
# 3  
Old 11-15-2012
When i wrote files are moving I mean that somes files are updated during mksysb process. Sorry for the mistake.

No datavg present, only a nimvg :
Code:
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
lvnim02spot         jfs2       40      40      1    open/syncd    /nim/spot
lvnim02lpp          jfs2       196     196     1    open/syncd    /nim/lpp
lvnim02mksysb       jfs2       3200    3200    1    open/syncd    /nim/mksysb
loglv00             jfs2log    1       1       1    open/syncd    N/A
fslv00              jfs2       20      20      1    open/syncd    /aixconfig
fslv02              jfs2       120     120     1    open/syncd    /essai
lvnim02viobacku     jfs2       79      79      1    open/syncd    /nim/viobackup
loglv01             jfslog     1       1       1    closed/syncd  N/A

I guess it would be a good idea to have one or to use /etc/exclude.rootvg file.
# 4  
Old 11-15-2012
Quote:
Originally Posted by Fundix
When i wrote files are moving I mean that somes files are updated during mksysb process. Sorry for the mistake.

No datavg present, only a nimvg :
Code:
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
lvnim02spot         jfs2       40      40      1    open/syncd    /nim/spot
lvnim02lpp          jfs2       196     196     1    open/syncd    /nim/lpp
lvnim02mksysb       jfs2       3200    3200    1    open/syncd    /nim/mksysb
loglv00             jfs2log    1       1       1    open/syncd    N/A
fslv00              jfs2       20      20      1    open/syncd    /aixconfig
fslv02              jfs2       120     120     1    open/syncd    /essai
lvnim02viobacku     jfs2       79      79      1    open/syncd    /nim/viobackup
loglv01             jfslog     1       1       1    closed/syncd  N/A

I guess it would be a good idea to have one or to use /etc/exclude.rootvg file.
OK now we can explore which files are changing and why. Which files are being altered? This is generally why the MKSYSB is only performed when there is very little system activity.
# 5  
Old 11-15-2012
An mksysb file consists of 4 parts:
  • a boot block (empty if the output is to a file)
  • a minimal OS used to restore the system to bare metal
  • a TOC (empty)
  • the output of a regular savevg rootvg, which is in backup file format

You can exclude certain files/directories by using the "-e" flag and an exclude file (entries there follow the regexps for "grep"), but that is not obligatory. It is to speed up the process and make the image smaller, but you should it apply only once the process as a whole works.

Note that you have to have enough free space in /tmp to hold the boot block (use the bosboot command to find out how big that is) during backup AND restore. You can use the "-X" flag to automatically adjust the size of /tmp.

Note also, that there is a file /image.data, which records the sizes of the various LVs/FSes, which mksysb uses. It is possible to use this file to make FSes smaller in the backup (and hence the restore) than they are on the original system. This file is created by the mkszfile command and can be modified by hand to create certain results. The downside is that you are responsible for having a file which at least works - mksysb doesn't check that. If unsure create it directly prior to the mksysb run either by calling mkszfile by hand or using the "-i" flag of mksysb, which calls this command automatically.

The process of backing up a VG is - like any other backup - a relatively static process. unlike with a database, there is no "transaction log" in a filesystem and hence the backup is prone to inconsistencies if files are changing during backup. This is why it is advisable to have transactional data NOT in the rootvg and take the backup during times of minimal activity.

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
# 6  
Old 11-16-2012
Hi all,

thank you for your help. The adminsys will give me the names of the files which are updated during mksysb process. We already have some names : Tivoli software.

I've suggested the adminsys to have a datavg and he will work on it.
I will come back here when I will have some fresh news.

Thank You Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

Is it mandatory or not to stop/start Applcation server ehen Restarting Database Server?

Good afternoon I need your help please. There is a Mantenance Windos which needs to Restart de Database Server 192.x.x.97 to set up some configuration Is it mandatory or not to stop/start Applcation server that runs in 192.x.x.95 ? Is it mandatory or not to stop/start apache and Tomcat?... (3 Replies)
Discussion started by: alexcol
3 Replies

2. Red Hat

Is redhat training mandatory for RHCSA certification

Hey guys, I m planning to take the RHCSA certification. Do I have to take the training from RedHat first? Is it mandatory or I can go on my own and appear for the certification? Let me know. Thanks... (2 Replies)
Discussion started by: snchaudhari2
2 Replies

3. Shell Programming and Scripting

Bash shell script with mandatory and optional input

Hello I would like to write a bash shell script which will need user to supply one variable which is mandatory and some other optional variables. If mandatory variable is not supplied by user, the script will exit. If optional values are not supplied by user, hard-coded value (in the script)... (3 Replies)
Discussion started by: atanubanerji
3 Replies

4. Shell Programming and Scripting

How to match mandatory column in file.?

(3 Replies)
Discussion started by: Rishabh Jain
3 Replies

5. Shell Programming and Scripting

Usage: optional and mandatory arguments

I have an awk script which can be used in the following ways: xi and xf will only be mandatory when processing the file fin.zc. awk -v xi=0/-0.5 -v xf=80/30 -f ./zc2cmd.awk fin.zc > fout.cmod awk -f ./zc2cmd.awk -u awk -f ./zc2cmd.awk --usg awk -f ./zc2cmd.awk -e awk -f ./zc2cmd.awk... (1 Reply)
Discussion started by: kristinu
1 Replies

6. UNIX for Advanced & Expert Users

mandatory & record locking using client server architecture

Hi I want a program of employee database locking with mendatory & record locking using client server architecture .there are two type of clients one which has all permissions of read/write called supervisor & another can only read the file.employee data base should contain 1) name 2)ID 3)BU... (1 Reply)
Discussion started by: rluha
1 Replies

7. BSD

Log off mandatory after adding a user to a group to take effect?

Hello I have a group called "media" which has a 7 access to a directory with the same name, my username was not included in that group, after vimming /etc/group and adding myself to it, I notice that that group is not defined as one of my groups (by issuing the "groups" command). I know that if... (1 Reply)
Discussion started by: sirbijan
1 Replies

8. AIX

mksysb

Hello everyone I have two questions. I would like to hear your opinions, your tips. I have several box with aix 5.3. the rootvg in each box has mirror. but I have a cron that makes a mksysb every week. Do you think that it the best to have a mksysb of rootvg if I have a mirror on this... (4 Replies)
Discussion started by: lo-lp-kl
4 Replies

9. UNIX for Advanced & Expert Users

Mandatory fileds in Bugzilla

Hi, We need to configure some of the fileds in bugzilla like Platform,OS, Version etc are mandatory. Is it possible to set, if yes then how to configure. Thanks & Regards, Bache (0 Replies)
Discussion started by: bache_gowda
0 Replies
Login or Register to Ask a Question