La commande 'mkszfile' permet de recréer le fichier de description du groupe de volume 'rootvg'.
Il suffit de lancer la commande sous le compte 'root' pour créer le fichier /image.data contenant toutes les informations de structure du VG.
Exemple :
# mkszfile
#
Cela génère un fichier similaire à celuis présenté ci-dessous :
image_data:
IMAGE_TYPE= bff
DATE_TIME= Tue Jun 10 18:25:56 CEST 2014
UNAME_INFO= AIX p770-2 1 6 00C673304C00
PRODUCT_TAPE= no
USERVG_LIST= data3vg data2vg data4vg data5vg
PLATFORM= chrp
OSLEVEL= 6.1.8.0
OSLEVEL_R= 6100-03
CPU_ID= 00C67EF04C00
LPAR_ID= 10
logical_volume_policy:
SHRINK= no
EXACT_FIT= no
ils_data:
LANG= C
##Command used for vg_data; /usr/sbin/lsvg
vg_data:
VGNAME= rootvg
PPSIZE= 32
VARYON= yes
VG_SOURCE_DISK_LIST= hdisk0 hdisk1
QUORUM= 1
ENH_CONC_CAPABLE= no
CONC_AUTO= no
BIGVG= no
TFACTOR= 1
##Command used for source_disk_data; /usr/sbin/bootinfo
source_disk_data:
PVID= 00c67ef086173d5c
PHYSICAL_LOCATION= U9117.MMB.6567EF0-V10-C2-T1-L8100000000000000
CONNECTION= vscsi0//810000000000
LOCATION=
SIZE_MB= 30848
HDISKNAME= hdisk0
source_disk_data:
PVID= 00c67ef08b3e1a4b
PHYSICAL_LOCATION= U9117.MMB.6567EF0-V10-C3-T1-L8100000000000000
CONNECTION= vscsi1//810000000000
LOCATION=
SIZE_MB= 30848
HDISKNAME= hdisk1
##Command used for lv_data; /usr/sbin/lslv
lv_data:
VOLUME_GROUP= rootvg
LV_SOURCE_DISK_LIST= hdisk0 hdisk1
LV_IDENTIFIER= 00c67ef000004c000000013b86173e6a.1
LOGICAL_VOLUME= hd5
VG_STAT= active/complete
TYPE= boot
MAX_LPS= 512
COPIES= 1
LPs= 1
STALE_PPs= 0
INTER_POLICY= minimum
INTRA_POLICY= edge
MOUNT_POINT=
MIRROR_WRITE_CONSISTENCY= on/ACTIVE
LV_SEPARATE_PV= yes
PERMISSION= read/write
LV_STATE= closed/syncd
WRITE_VERIFY= off
PP_SIZE= 32
SCHED_POLICY= parallel
PP= 2
BB_POLICY= non-relocatable
RELOCATABLE= no
UPPER_BOUND= 32
LABEL= primary_bootlv
MAPFILE=
LV_MIN_LPS= 1
STRIPE_WIDTH=
STRIPE_SIZE=
SERIALIZE_IO= no
FS_TAG=
DEV_SUBTYP=
lv_data:
VOLUME_GROUP= rootvg
LV_SOURCE_DISK_LIST= hdisk0 hdisk1
LV_IDENTIFIER= 00c67ef000004c000000013b86173e6a.2
LOGICAL_VOLUME= hd6
VG_STAT= active/complete
TYPE= paging
MAX_LPS= 512
COPIES= 1
LPs= 16
STALE_PPs= 0
INTER_POLICY= minimum
INTRA_POLICY= middle
MOUNT_POINT=
MIRROR_WRITE_CONSISTENCY= off
LV_SEPARATE_PV= yes
PERMISSION= read/write
LV_STATE= opened/syncd
WRITE_VERIFY= off
PP_SIZE= 32
SCHED_POLICY= parallel
PP= 32
BB_POLICY= non-relocatable
RELOCATABLE= yes
UPPER_BOUND= 32
LABEL=
MAPFILE=
LV_MIN_LPS= 16
STRIPE_WIDTH=
STRIPE_SIZE=
SERIALIZE_IO= no
FS_TAG=
DEV_SUBTYP=
lv_data:
VOLUME_GROUP= rootvg
LV_SOURCE_DISK_LIST= hdisk0 hdisk1
LV_IDENTIFIER= 00c67ef000004c000000013b86173e6a.3
LOGICAL_VOLUME= hd8
VG_STAT= active/complete
TYPE= jfs2log
MAX_LPS= 512
COPIES= 1
LPs= 1
STALE_PPs= 0
INTER_POLICY= minimum
INTRA_POLICY= center
MOUNT_POINT=
MIRROR_WRITE_CONSISTENCY= off
LV_SEPARATE_PV= yes
PERMISSION= read/write
LV_STATE= opened/syncd
WRITE_VERIFY= off
PP_SIZE= 32
SCHED_POLICY= parallel
PP= 2
BB_POLICY= relocatable
RELOCATABLE= yes
UPPER_BOUND= 32
LABEL=
MAPFILE=
LV_MIN_LPS= 1
STRIPE_WIDTH=
STRIPE_SIZE=
SERIALIZE_IO= no
FS_TAG=
DEV_SUBTYP=
lv_data:
VOLUME_GROUP= rootvg
LV_SOURCE_DISK_LIST= hdisk0 hdisk1
LV_IDENTIFIER= 00c67ef000004c000000013b86173e6a.4
LOGICAL_VOLUME= hd4
VG_STAT= active/complete
TYPE= jfs2
MAX_LPS= 512
COPIES= 1
LPs= 11
STALE_PPs= 0
INTER_POLICY= minimum
INTRA_POLICY= center
MOUNT_POINT= /
MIRROR_WRITE_CONSISTENCY= on/ACTIVE
LV_SEPARATE_PV= yes
PERMISSION= read/write
LV_STATE= opened/syncd
WRITE_VERIFY= off
PP_SIZE= 32
SCHED_POLICY= parallel
PP= 22
BB_POLICY= relocatable
RELOCATABLE= yes
UPPER_BOUND= 32
LABEL= /
MAPFILE=
LV_MIN_LPS= 7
STRIPE_WIDTH=
STRIPE_SIZE=
SERIALIZE_IO= no
FS_TAG=
DEV_SUBTYP=
lv_data:
VOLUME_GROUP= rootvg
LV_SOURCE_DISK_LIST= hdisk0 hdisk1
LV_IDENTIFIER= 00c67ef000004c000000013b86173e6a.5
LOGICAL_VOLUME= hd2
VG_STAT= active/complete
TYPE= jfs2
MAX_LPS= 32512
COPIES= 1
LPs= 86
STALE_PPs= 0
INTER_POLICY= minimum
INTRA_POLICY= center
MOUNT_POINT= /usr
MIRROR_WRITE_CONSISTENCY= on/ACTIVE
LV_SEPARATE_PV= yes
PERMISSION= read/write
LV_STATE= opened/syncd
WRITE_VERIFY= off
PP_SIZE= 32
SCHED_POLICY= parallel
PP= 172
BB_POLICY= relocatable
RELOCATABLE= yes
UPPER_BOUND= 32
LABEL= /usr
MAPFILE=
LV_MIN_LPS= 78
STRIPE_WIDTH=
STRIPE_SIZE=
SERIALIZE_IO= no
FS_TAG=
DEV_SUBTYP=
lv_data:
VOLUME_GROUP= rootvg
LV_SOURCE_DISK_LIST= hdisk0 hdisk1
LV_IDENTIFIER= 00c67ef000004c000000013b86173e6a.6
LOGICAL_VOLUME= hd9var
VG_STAT= active/complete
TYPE= jfs2
MAX_LPS= 512
COPIES= 1
LPs= 18
STALE_PPs= 0
INTER_POLICY= minimum
INTRA_POLICY= center
MOUNT_POINT= /var
MIRROR_WRITE_CONSISTENCY= on/ACTIVE
LV_SEPARATE_PV= yes
PERMISSION= read/write
LV_STATE= opened/syncd
WRITE_VERIFY= off
PP_SIZE= 32
SCHED_POLICY= parallel
PP= 36
BB_POLICY= relocatable
RELOCATABLE= yes
UPPER_BOUND= 32
LABEL= /var
MAPFILE=
LV_MIN_LPS= 16
STRIPE_WIDTH=
STRIPE_SIZE=
SERIALIZE_IO= no
FS_TAG=
DEV_SUBTYP=
lv_data:
VOLUME_GROUP= rootvg
LV_SOURCE_DISK_LIST= hdisk0 hdisk1
LV_IDENTIFIER= 00c67ef000004c000000013b86173e6a.7
LOGICAL_VOLUME= hd3
VG_STAT= active/complete
TYPE= jfs2
MAX_LPS= 512
COPIES= 1
LPs= 5
STALE_PPs= 0
INTER_POLICY= minimum
INTRA_POLICY= center
MOUNT_POINT= /tmp
MIRROR_WRITE_CONSISTENCY= on/ACTIVE
LV_SEPARATE_PV= yes
PERMISSION= read/write
LV_STATE= opened/syncd
WRITE_VERIFY= off
PP_SIZE= 32
SCHED_POLICY= parallel
PP= 10
BB_POLICY= relocatable
RELOCATABLE= yes
UPPER_BOUND= 32
LABEL= /tmp
MAPFILE=
LV_MIN_LPS= 4
STRIPE_WIDTH=
STRIPE_SIZE=
SERIALIZE_IO= no
FS_TAG=
DEV_SUBTYP=
lv_data:
VOLUME_GROUP= rootvg
LV_SOURCE_DISK_LIST= hdisk0 hdisk1
LV_IDENTIFIER= 00c67ef000004c000000013b86173e6a.8
LOGICAL_VOLUME= hd1
VG_STAT= active/complete
TYPE= jfs2
MAX_LPS= 512
COPIES= 1
LPs= 1
STALE_PPs= 0
INTER_POLICY= minimum
INTRA_POLICY= center
MOUNT_POINT= /home
MIRROR_WRITE_CONSISTENCY= on/ACTIVE
LV_SEPARATE_PV= yes
PERMISSION= read/write
LV_STATE= opened/syncd
WRITE_VERIFY= off
PP_SIZE= 32
SCHED_POLICY= parallel
PP= 2
BB_POLICY= relocatable
RELOCATABLE= yes
UPPER_BOUND= 32
LABEL= /home
MAPFILE=
LV_MIN_LPS= 1
STRIPE_WIDTH=
STRIPE_SIZE=
SERIALIZE_IO= no
FS_TAG=
DEV_SUBTYP=
lv_data:
VOLUME_GROUP= rootvg
LV_SOURCE_DISK_LIST= hdisk0 hdisk1
LV_IDENTIFIER= 00c67ef000004c000000013b86173e6a.9
LOGICAL_VOLUME= hd10opt
VG_STAT= active/complete
TYPE= jfs2
MAX_LPS= 512
COPIES= 1
LPs= 14
STALE_PPs= 0
INTER_POLICY= minimum
INTRA_POLICY= center
MOUNT_POINT= /opt
MIRROR_WRITE_CONSISTENCY= on/ACTIVE
LV_SEPARATE_PV= yes
PERMISSION= read/write
LV_STATE= opened/syncd
WRITE_VERIFY= off
PP_SIZE= 32
SCHED_POLICY= parallel
PP= 28
BB_POLICY= relocatable
RELOCATABLE= yes
UPPER_BOUND= 32
LABEL= /opt
MAPFILE=
LV_MIN_LPS= 11
STRIPE_WIDTH=
STRIPE_SIZE=
SERIALIZE_IO= no
FS_TAG=
DEV_SUBTYP=
lv_data:
VOLUME_GROUP= rootvg
LV_SOURCE_DISK_LIST= hdisk0 hdisk1
LV_IDENTIFIER= 00c67ef000004c000000013b86173e6a.10
LOGICAL_VOLUME= hd11admin
VG_STAT= active/complete
TYPE= jfs2
MAX_LPS= 512
COPIES= 1
LPs= 4
STALE_PPs= 0
INTER_POLICY= minimum
INTRA_POLICY= center
MOUNT_POINT= /admin
MIRROR_WRITE_CONSISTENCY= on/ACTIVE
LV_SEPARATE_PV= yes
PERMISSION= read/write
LV_STATE= opened/syncd
WRITE_VERIFY= off
PP_SIZE= 32
SCHED_POLICY= parallel
PP= 8
BB_POLICY= relocatable
RELOCATABLE= yes
UPPER_BOUND= 32
LABEL= /admin
MAPFILE=
LV_MIN_LPS= 1
STRIPE_WIDTH=
STRIPE_SIZE=
SERIALIZE_IO= no
FS_TAG=
DEV_SUBTYP=
lv_data:
VOLUME_GROUP= rootvg
LV_SOURCE_DISK_LIST= hdisk0
LV_IDENTIFIER= 00c67ef000004c000000013b86173e6a.11
LOGICAL_VOLUME= lg_dumplv
VG_STAT= active/complete
TYPE= sysdump
MAX_LPS= 512
COPIES= 1
LPs= 32
STALE_PPs= 0
INTER_POLICY= minimum
INTRA_POLICY= middle
MOUNT_POINT=
MIRROR_WRITE_CONSISTENCY= on/ACTIVE
LV_SEPARATE_PV= yes
PERMISSION= read/write
LV_STATE= opened/syncd
WRITE_VERIFY= off
PP_SIZE= 32
SCHED_POLICY= parallel
PP= 32
BB_POLICY= relocatable
RELOCATABLE= yes
UPPER_BOUND= 32
LABEL=
MAPFILE=
LV_MIN_LPS= 32
STRIPE_WIDTH=
STRIPE_SIZE=
SERIALIZE_IO= no
FS_TAG=
DEV_SUBTYP=
lv_data:
VOLUME_GROUP= rootvg
LV_SOURCE_DISK_LIST= hdisk0 hdisk1
LV_IDENTIFIER= 00c67ef000004c000000013b86173e6a.12
LOGICAL_VOLUME= livedump
VG_STAT= active/complete
TYPE= jfs2
MAX_LPS= 512
COPIES= 1
LPs= 8
STALE_PPs= 0
INTER_POLICY= minimum
INTRA_POLICY= middle
MOUNT_POINT= /var/adm/ras/livedump
MIRROR_WRITE_CONSISTENCY= on/ACTIVE
LV_SEPARATE_PV= yes
PERMISSION= read/write
LV_STATE= opened/syncd
WRITE_VERIFY= off
PP_SIZE= 32
SCHED_POLICY= parallel
PP= 16
BB_POLICY= relocatable
RELOCATABLE= yes
UPPER_BOUND= 32
LABEL= /var/adm/ras/livedump
MAPFILE=
LV_MIN_LPS= 1
STRIPE_WIDTH=
STRIPE_SIZE=
SERIALIZE_IO= no
FS_TAG= vfs=jfs2:log=/dev/hd8:mount=true:account=false
DEV_SUBTYP=
##Commands used for fs_data; /usr/bin/df, /usr/sbin/lsjfs, and /usr/sbin/lsjfs2
fs_data:
FS_NAME= /
FS_SIZE= 720896
FS_MIN_SIZE= 406604
FS_LV= /dev/hd4
FS_JFS2_BS= 4096
FS_JFS2_SPARSE= yes
FS_JFS2_INLINELOG= no
FS_JFS2_SIZEINLINELOG= 0
FS_JFS2_EAFORMAT= v1
FS_JFS2_QUOTA= no
FS_JFS2_DMAPI= no
FS_JFS2_VIX= yes
FS_JFS2_EFS= no
fs_data:
FS_NAME= /usr
FS_SIZE= 5636096
FS_MIN_SIZE= 5103484
FS_LV= /dev/hd2
FS_JFS2_BS= 4096
FS_JFS2_SPARSE= yes
FS_JFS2_INLINELOG= no
FS_JFS2_SIZEINLINELOG= 0
FS_JFS2_EAFORMAT= v1
FS_JFS2_QUOTA= no
FS_JFS2_DMAPI= no
FS_JFS2_VIX= yes
FS_JFS2_EFS= no
fs_data:
FS_NAME= /var
FS_SIZE= 1179648
FS_MIN_SIZE= 985764
FS_LV= /dev/hd9var
FS_JFS2_BS= 4096
FS_JFS2_SPARSE= yes
FS_JFS2_INLINELOG= no
FS_JFS2_SIZEINLINELOG= 0
FS_JFS2_EAFORMAT= v1
FS_JFS2_QUOTA= no
FS_JFS2_DMAPI= no
FS_JFS2_VIX= yes
FS_JFS2_EFS= no
fs_data:
FS_NAME= /tmp
FS_SIZE= 327680
FS_MIN_SIZE= 200390
FS_LV= /dev/hd3
FS_JFS2_BS= 4096
FS_JFS2_SPARSE= yes
FS_JFS2_INLINELOG= no
FS_JFS2_SIZEINLINELOG= 0
FS_JFS2_EAFORMAT= v1
FS_JFS2_QUOTA= no
FS_JFS2_DMAPI= no
FS_JFS2_VIX= yes
FS_JFS2_EFS= no
fs_data:
FS_NAME= /home
FS_SIZE= 65536
FS_MIN_SIZE= 32768
FS_LV= /dev/hd1
FS_JFS2_BS= 4096
FS_JFS2_SPARSE= yes
FS_JFS2_INLINELOG= no
FS_JFS2_SIZEINLINELOG= 0
FS_JFS2_EAFORMAT= v1
FS_JFS2_QUOTA= no
FS_JFS2_DMAPI= no
FS_JFS2_VIX= yes
FS_JFS2_EFS= no
fs_data:
FS_NAME= /opt
FS_SIZE= 917504
FS_MIN_SIZE= 710196
FS_LV= /dev/hd10opt
FS_JFS2_BS= 4096
FS_JFS2_SPARSE= yes
FS_JFS2_INLINELOG= no
FS_JFS2_SIZEINLINELOG= 0
FS_JFS2_EAFORMAT= v1
FS_JFS2_QUOTA= no
FS_JFS2_DMAPI= no
FS_JFS2_VIX= yes
FS_JFS2_EFS= no
fs_data:
FS_NAME= /admin
FS_SIZE= 262144
FS_MIN_SIZE= 32768
FS_LV= /dev/hd11admin
FS_JFS2_BS= 4096
FS_JFS2_SPARSE= yes
FS_JFS2_INLINELOG= no
FS_JFS2_SIZEINLINELOG= 0
FS_JFS2_EAFORMAT= v1
FS_JFS2_QUOTA= no
FS_JFS2_DMAPI= no
FS_JFS2_VIX= yes
FS_JFS2_EFS= no
fs_data:
FS_NAME= /var/adm/ras/livedump
FS_SIZE= 524288
FS_MIN_SIZE= 32768
FS_LV= /dev/livedump
FS_JFS2_BS= 4096
FS_JFS2_SPARSE= yes
FS_JFS2_INLINELOG= no
FS_JFS2_SIZEINLINELOG= 0
FS_JFS2_EAFORMAT= v1
FS_JFS2_QUOTA= no
FS_JFS2_DMAPI= no
FS_JFS2_VIX= yes
FS_JFS2_EFS= no
post_install_data:
BOSINST_FILE=
La syntaxe officielle de la version V6.1 est la suivante :
mkszfile Command
Purpose
Saves the system state for reinstallation on the current system or
another system.
Syntax
mkszfile [ -X] [ -m] [ -N ]
Description
Attention: The mkszfile command overwrites an existing /image.data file
with new information.
The mkszfile command saves the system state for reinstallation on the
current system or on another system. The information saved includes the
following:
* System installation information
* Logical volume information for the root volume group
* File system information.
The saved information allows the bosinstall routine to recreate the
logical volume information as it existed before the backup.
The mkszfile command creates the /image.data file. The contents of this
file are defined by the system in which the image was created. The user
can edit the /image.data file before calling the mksysb command. The
mksysb command, in turn, only backs up the file systems specified in
the /image.data file, which reflects the requirements of the rootvg
file system.
All the saved information is obtained using list commands. The commands
are listed in the /image.data file as comments for the user's reference
when editing this file.
Files on tape cannot be changed. However, in order to override the data
files on the tape, the user can create a diskette with the desired
files.
The mkszfile command checks to be sure there is at least 8MB of free
space available in the /tmp file system for the boot image. Note:
1 Before running the mkszfile command, ensure that enough space is
available in the /tmp file to store a boot image. This space is
needed during both backup and installation. To determine the
amount of space needed in the /tmp file, issue one of the
following commands: bosboot -qad rmt or bosboot -qad ipldevice.
2 If you remove the /dev/ipldevice prior to executing the mkszfile
command, the 0301-150 bosboot error occurs. This message, in most
cases, can be ignored. Confirm the success of the mkszfile command
by the return code.
Flags
Item
Description
-m
Creates map files that specify the mapping of the logical-to-
physical partitions for each logical volume in the volume group.
This mapping can be used to allocate the same logical-to-physical
mapping when the image is restored. The map file locations are
stored in the MAPFILE field in the /image.data file for each
logical volume. Sufficient space would exist in the /tmp file
system for map creation because the installation routines place
the maps in the /tmp file system before issuing the mklv command.
For example, for the hd7 logical volume, the location of the map
file is /tmp/vgdata/rootvg/hd7.map. The MAPFILE field in the
/image.data file for the hd7 logical volume is under the entry
MAPFILE=/tmp/vgdata/rootvg/hd7.map.
The map files in the backup image are copied after the
/bosinst.data and /image.data files.
-N
Includes file systems that belong to a workload partition (WPAR)
in the defined state in the /image.data file. Note: To be included
in the /image.data file, all file systems that belong to a WPAR in
the defined state need to be in the rootvg volume group.
-X
Expands /tmp if needed.
Files
Item
Description
/usr/bin/mkszfile
Contains the mkszfile command.