Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 10:29 AM
Joe D.
 
Posts: n/a
Default AIX 52ML04 mksysb questions

Hello again, all. I have yet ANOTHER newbie question, this time
regarding mksysb.

Let's start with my mounted files in rootvg:

# df -k
Filesystem 1024-blocks Free %Used Iused %Iused Mounted on
/dev/hd4 131072 109020 17% 2161 4% /
/dev/hd2 3801088 1068884 72% 50003 6% /usr
/dev/hd9var 131072 65576 50% 632 2% /var
/dev/hd3 524288 431428 18% 314 1% /tmp
/dev/fwdump 393216 373656 5% 18 1%
/var/adm/ras/platform
/dev/hd1 131072 58244 56% 347 2% /home
/dev/lv00 4194304 4062596 4% 19 1% /usr/sys

I ran "mksysb /dev/rmt0". Got the following:

# mksysb /dev/rmt0
Creating tape boot image....................
bosboot: Boot image is 26859 512 byte blocks.
***** ATTENTION *****
The boot image you just created might fail to boot because
the size exceeds the system limit. For information about
fixes or workarounds, see /usr/lpp/bos.sysmgt/README.
***** ATTENTION *****
Creating list of files to back up.
Backing up 3 files.
3 of 3 files (100%)
0512-038 mksysb: Backup Completed Successfully.
bosboot: Boot image is 26859 512 byte blocks.
***** ATTENTION *****
The boot image you just created might fail to boot because
the size exceeds the system limit. For information about
fixes or workarounds, see /usr/lpp/bos.sysmgt/README.
***** ATTENTION *****
#

I already checked out the "might fail to boot" message, and I'm in good
shape inasmuch as I have the necessary APAR in the server to allow me
to use this tape to recover from.

My question is: What have I backed up? "3 of 3" files, and "Boot image
is 26859 512 byte blocks." doesn't seem like much.

Google searching on this (yes, I AM trying to figure this out on my
own) led me to run
restore -s4 -Tvqf /dev/rmt0.1 > /tmp/mksysb_list
The output from this is:
# cat mksysb_list
1309 ./bosinst.data
3442 ./image.data
211004 ./tmp/vgdata/rootvg/backup.data
The total size is 215755 bytes.
#

If I look at ./tmp/vgdata/rootvg/backup.data, I have a list of a
boatload of stuff (excerpted below), starting with the config of
rootvg, followed by a list of filesets. I certainly LOOKS like a list
of files and packages, but the backup didn't take very long, and I'm
concerned about the sizes listed. Have I got a (presumeably) good
backup? I know the only way to tell for sure is to try and boot from
it, but that's not an option in this case.

Any help on mksysb options I should have included or any assurances
that I am /am not in good shape appreciated.

# more /tmp/vgdata/rootvg/backup.data
================================
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT
POINT
hd5 boot 1 2 2 closed/syncd N/A
hd6 paging 64 128 2 open/syncd N/A
hd8 jfslog 1 2 2 open/syncd N/A
hd4 jfs 1 2 2 open/syncd /
hd2 jfs 29 58 2 open/syncd /usr
hd9var jfs 1 2 2 open/syncd /var
hd3 jfs 4 8 2 open/syncd /tmp
hd1 jfs 1 2 2 open/syncd /home
hd10opt jfs 1 2 2 open/syncd /opt
fwdump jfs 3 6 2 open/syncd
/var/adm/ras/platform
system01lv jfs2 280 560 2 open/syncd /system01
hd7 sysdump 32 32 1 open/syncd N/A
hd7x sysdump 32 32 1 open/syncd N/A
loglv02 jfs2log 1 2 2 open/syncd N/A
lv00 jfs 32 32 1 open/syncd /usr/sys
================================
Fileset Level State Type Description
(Uninstaller)

----------------------------------------------------------------------------
IMNSearch.bld.DBCS 2.4.0.0 C F NetQuestion DBCS
Buildtime
Modules
IMNSearch.bld.SBCS 2.4.0.0 C F NetQuestion SBCS
Buildtime
Modules
IMNSearch.msg.en_US.rte.com
2.4.0.0 C F Text Search Messages
- U.S.
English
IMNSearch.rte.DBCS 2.4.0.10 C F NetQuestion DBCS
Search Engine
IMNSearch.rte.SBCS 2.4.0.10 C F NetQuestion SBCS
Search Engine
IMNSearch.rte.client 2.4.0.0 C F Text Search Client
IMNSearch.rte.com 2.4.0.0 C F Text Search
Client/Server
....
.... skip on down
....
#Package Name:Fileset:Level:State:PTF Id:Fix
State:Typeescriptionestination Dir.:Uninstaller:Message
Catalog:Message Set:Message
Number:Parent:Automatic:EFIX Locked
IMNSearch.bld:IMNSearch.bld.DBCS:2.4.0.0: : :C: :NetQuestion DBCS
Buildtime Modules: : : : : : :0:0:
IMNSearch.bld:IMNSearch.bld.SBCS:2.4.0.0: : :C: :NetQuestion SBCS
Buildtime Modules: : : : : : :0:0:
IMNSearch.msg.en_US.rte.com:IMNSearch.msg.en_US.rt e.com:2.4.0.0: : :C:
:Text Search Messages - U.S. English: : : : : : :0:0:
IMNSearch.rte:IMNSearch.rte.DBCS:2.4.0.10: : :C: :NetQuestion DBCS
Search Engine : : : : : : :0:0:
IMNSearch.rte:IMNSearch.rte.SBCS:2.4.0.10: : :C: :NetQuestion SBCS
Search Engine : : : : : : :0:0:
IMNSearch.rte:IMNSearch.rte.client:2.4.0.0: : :C: :Text Search Client :
: : : : : :0:0:
....
.... skip on down
....
pci.1069B166.09ci.1069B166.09-0509007e-1:0509007e: : :C:R:IBM eServer
PCI-X Dual Channel Ultra320 SCSI RAID Adapter Microcode CCIN
5703/1975: :/bin/rpm -e pci.1069B166.09: : : : :0:
xft:xft-0.0-0:0.0: : :C:R:An empty placeholder RPM for xft.: :/bin/rpm
-e xft: : : : :0:
xrender:xrender-0.0-0:0.0: : :C:R:An empty placeholder RPM for
xrender.: :/bin/rpm -e xrender: : : : :0:
================================
#Shrink Size:Full Size:VG Data Only
16896:17152:no
#

Joe D.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 10:29 AM
Hajo Ehlers
 
Posts: n/a
Default Re: AIX 52ML04 mksysb questions


Joe D. wrote:
> Hello again, all. I have yet ANOTHER newbie question, this time
> regarding mksysb.
> I ran "mksysb /dev/rmt0". Got the following:


....
>
> # mksysb /dev/rmt0
> Creating tape boot image....................
> bosboot: Boot image is 26859 512 byte blocks.
> ***** ATTENTION *****
> The boot image you just created might fail to boot because
> the size exceeds the system limit. For information about
> fixes or workarounds, see /usr/lpp/bos.sysmgt/README.
> ***** ATTENTION *****
> Creating list of files to back up.
> Backing up 3 files.
> 3 of 3 files (100%)
> 0512-038 mksysb: Backup Completed Successfully.
> bosboot: Boot image is 26859 512 byte blocks.
> ***** ATTENTION *****
> The boot image you just created might fail to boot because
> the size exceeds the system limit. For information about
> fixes or workarounds, see /usr/lpp/bos.sysmgt/README.
> ***** ATTENTION *****
> #
>
> I already checked out the "might fail to boot" message, and I'm in good
> shape inasmuch as I have the necessary APAR in the server to allow me
> to use this tape to recover from.
>
> My question is: What have I backed up? "3 of 3" files, and "Boot image
> is 26859 512 byte blocks." doesn't seem like much.


1) bootimage
Looks a little bit big.
Lesson :
Please verify that you have IY50487 installed on your system
See
IY50487: MKSYSB TAPE BOOTIMAGE TOO BIG, HANGS ON BOOT
http://www-1.ibm.com/support/docview...id=isg1IY50487
and
$ man instfix


2) mksysb
Check if you have a /etc/exlude.rootvg file and if yes post/verify the
entries. 3 files are really not enough


Latest AIX 5.2 installation tips
http://www-1.ibm.com/support/docview...TIPS082310_815

hth
Hajo

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 10:29 AM
Joe D.
 
Posts: n/a
Default Re: AIX 52ML04 mksysb questions


Hajo Ehlers wrote:
> Joe D. wrote:
>
> 1) bootimage
> Looks a little bit big.
> Lesson :
> Please verify that you have IY50487 installed on your system


Yep; I checked this out;

# instfix -ik IY50487
All filesets for IY50487 were found.

> See
> IY50487: MKSYSB TAPE BOOTIMAGE TOO BIG, HANGS ON BOOT
> http://www-1.ibm.com/support/docview...id=isg1IY50487
> and
> $ man instfix
>
>
> 2) mksysb
> Check if you have a /etc/exlude.rootvg file and if yes post/verify the
> entries. 3 files are really not enough


Nope; no exclude entry:

# ls -al /etc/ex*
lrwxrwxrwx 1 bin bin 19 Dec 27 2004 /etc/execerror
-> /usr/sbin/execerror
lrwxrwxrwx 1 root system 18 Dec 27 2004 /etc/exportvg
-> /usr/sbin/exportvg
lrwxrwxrwx 1 root system 18 Dec 27 2004 /etc/extendlv
-> /usr/sbin/extendlv
lrwxrwxrwx 1 root system 18 Dec 27 2004 /etc/extendvg
-> /usr/sbin/extendvg
Besides, if I read the man page correctly, this only is used if I pass
the -e option to mksysb, doesn't it? My mksysb command was simply
"mksysb /dev/rmt0"

>
> Latest AIX 5.2 installation tips
> http://www-1.ibm.com/support/docview...TIPS082310_815
>
> hth
> Hajo


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-05-2008, 10:29 AM
scott_doyland@johnlewis.co.uk
 
Posts: n/a
Default Re: AIX 52ML04 mksysb questions


Joe D. wrote:
> Hajo Ehlers wrote:
> > Joe D. wrote:
> >
> > 1) bootimage
> > Looks a little bit big.
> > Lesson :
> > Please verify that you have IY50487 installed on your system

>
> Yep; I checked this out;
>
> # instfix -ik IY50487
> All filesets for IY50487 were found.
>
> > See
> > IY50487: MKSYSB TAPE BOOTIMAGE TOO BIG, HANGS ON BOOT
> > http://www-1.ibm.com/support/docview...id=isg1IY50487
> > and
> > $ man instfix
> >
> >
> > 2) mksysb
> > Check if you have a /etc/exlude.rootvg file and if yes post/verify the
> > entries. 3 files are really not enough

>
> Nope; no exclude entry:
>
> # ls -al /etc/ex*
> lrwxrwxrwx 1 bin bin 19 Dec 27 2004 /etc/execerror
> -> /usr/sbin/execerror
> lrwxrwxrwx 1 root system 18 Dec 27 2004 /etc/exportvg
> -> /usr/sbin/exportvg
> lrwxrwxrwx 1 root system 18 Dec 27 2004 /etc/extendlv
> -> /usr/sbin/extendlv
> lrwxrwxrwx 1 root system 18 Dec 27 2004 /etc/extendvg
> -> /usr/sbin/extendvg
> Besides, if I read the man page correctly, this only is used if I pass
> the -e option to mksysb, doesn't it? My mksysb command was simply
> "mksysb /dev/rmt0"
>
> >
> > Latest AIX 5.2 installation tips
> > http://www-1.ibm.com/support/docview...TIPS082310_815
> >
> > hth
> > Hajo


Try running mksysb with the '-i' flag. It may be that your /image.data
file is incorrect, the -i option will create a new one. Also see the
mkszfile command and take note of the bit in the man page for mkszfile
that says:

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.

Also try running mksysb with the -v option to list the files its
backing up (or trying to backup).

If it still doesnt work then try thru smit mksysb to see if that helps
(although it should not make any difference but it cant hurt.

Scott

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-05-2008, 10:29 AM
Hajo Ehlers
 
Posts: n/a
Default Re: AIX 52ML04 mksysb questions

Joe D. wrote:
> Hajo Ehlers wrote:

....
> Besides, if I read the man page correctly, this only is used if I pass
> the -e option to mksysb, doesn't it? My mksysb command was simply
> "mksysb /dev/rmt0"


Then Scotts suggestion should fit - hopefully

regards and have a good night
Hajo

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-05-2008, 10:29 AM
mikelaff@gmail.com
 
Posts: n/a
Default Re: AIX 52ML04 mksysb questions

Just a thought and YMMV

IBM Support has previously told me that ML04 on AIX 5.2 is a buggy
level and to avoid it.


Hajo Ehlers wrote:
> Joe D. wrote:
> > Hajo Ehlers wrote:

> ...
> > Besides, if I read the man page correctly, this only is used if I pass
> > the -e option to mksysb, doesn't it? My mksysb command was simply
> > "mksysb /dev/rmt0"

>
> Then Scotts suggestion should fit - hopefully
>
> regards and have a good night
> Hajo


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-05-2008, 10:30 AM
Joe D.
 
Posts: n/a
Default Re: AIX 52ML04 mksysb questions


scott_doyland@johnlewis.co.uk wrote:
>
> Try running mksysb with the '-i' flag. It may be that your /image.data
> file is incorrect, the -i option will create a new one. Also see the
> mkszfile command and take note of the bit in the man page for mkszfile
> that says:
>
> Scott


That seems to have done the trick; I ran it with a -m option, and it
listed well over 100,000 file to be backed up. It ran to end of tape
rather quickly; or at least I'm assuming it reached EOF, otherwise
something else killed it. Regardless, I did not kill the job, but when
I got the prompt back, I created an exclude file to omit a large
directory in rootvg that isn't needed for an OS recovery.

Then kicked off the mksysb again, this time specifying the exclude
file, and it listed @56000 files to back up and ran to successful
completion. Took about 4 hours.

So thanks to both you and Hajo for all your help; I'm gonna try and
figure out how to make it run quicker (specify a blocking cfactor?
Find other files to exclude?); but for now I'm happy that I have a
mksysb!

Thanks again;

Joe D.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-05-2008, 10:30 AM
Hajo Ehlers
 
Posts: n/a
Default Re: AIX 52ML04 mksysb questions

> figure out how to make it run quicker (specify a blocking cfactor?
Yes, as far as i know the mksysb set the block size to 512 for the
first 3 section tand reset for the 4th section to the original value.

So depending on your tape drive any value except 0 is a good starting
point. I would test a value of 1024 and 10240

$ lsattr rmt0 -a block_size # get current value
$ chdev -l rmt0 -a block_size=10240
$ mksysb ...
$ chdev -l rm -a block_size=OldValue

> Find other files to exclude?); but for now I'm happy that I have a
> mksysb!


A nice technote from IBM about mksysb

Backing Up the Operating System in AIX 4 and 5
http://www-1.ibm.com/support/docview...d=isg3T1000159

enjoy
Hajo

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-05-2008, 10:30 AM
Joe D.
 
Posts: n/a
Default Re: AIX 52ML04 mksysb questions


Hajo Ehlers wrote:
>
> So depending on your tape drive any value except 0 is a good starting
> point. I would test a value of 1024 and 10240
>
> $ lsattr rmt0 -a block_size # get current value
> $ chdev -l rmt0 -a block_size=10240
> $ mksysb ...
> $ chdev -l rm -a block_size=OldValue
>


Thanks for the tip, and the link. I updgraded the server to 5200-09-CSP
(thatks SOOO much for the pointers; hell, handholding is a better
word!). Following the upgrade, I implemneted your suggestion and it ran
much quicker, although there was a real quirk after I upgraded. I'll
save that for another post; I'd be interested to see what you make odf
it, as I could find NOTHING on the web. Maybe the answer lies in the
link you provided. At anyrate, here's the result of the successful
mksysb. OPne error message that I don't think is anything to worry
about:

# mksysb -m -e /dev/rmt0

Creating information file (/image.data) for rootvg..

Creating tape boot image.................
bosboot: Boot image is 27546 512 byte blocks.

***** ATTENTION *****
The boot image you just created might fail to boot because
the size exceeds the system limit. For information about
fixes or workarounds, see /usr/lpp/bos.sysmgt/README.
***** ATTENTION *****
.....

Creating list of files to back up.
Backing up 65833 files..............................
257 of 65833 files (0%)..............................
748 of 65833 files (1%)........backup: 0511-449 An error occurred
accessing ./tm
p/man585842: A file or directory in the path name does not exist.
.......................
13995 of 65833 files (21%)..............................
25502 of 65833 files (38%)..............................
43125 of 65833 files (65%)..............................
62708 of 65833 files (95%).......
0512-003 mksysb may not have been able to archive some files.
The messages displayed on the Standard Error contained additional
information.

bosboot: Boot image is 27546 512 byte blocks.

***** ATTENTION *****
The boot image you just created might fail to boot because
the size exceeds the system limit. For information about
fixes or workarounds, see /usr/lpp/bos.sysmgt/README.
***** ATTENTION *****
#

Thank you again!

Joe D.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 01-05-2008, 10:33 AM
0xDEADABE
 
Posts: n/a
Default Re: AIX 52ML04 mksysb questions

Joe D. wrote:
> Hajo Ehlers wrote:
>
>>So depending on your tape drive any value except 0 is a good starting
>>point. I would test a value of 1024 and 10240
>>
>>$ lsattr rmt0 -a block_size # get current value
>>$ chdev -l rmt0 -a block_size=10240
>>$ mksysb ...
>>$ chdev -l rm -a block_size=OldValue
>>

>
>
> Thanks for the tip, and the link. I updgraded the server to 5200-09-CSP
> (thatks SOOO much for the pointers; hell, handholding is a better
> word!). Following the upgrade, I implemneted your suggestion and it ran
> much quicker, although there was a real quirk after I upgraded. I'll
> save that for another post; I'd be interested to see what you make odf
> it, as I could find NOTHING on the web. Maybe the answer lies in the
> link you provided. At anyrate, here's the result of the successful
> mksysb. OPne error message that I don't think is anything to worry
> about:
>
> # mksysb -m -e /dev/rmt0
>
> Creating information file (/image.data) for rootvg..
>
> Creating tape boot image.................
> bosboot: Boot image is 27546 512 byte blocks.
>
> ***** ATTENTION *****
> The boot image you just created might fail to boot because
> the size exceeds the system limit. For information about
> fixes or workarounds, see /usr/lpp/bos.sysmgt/README.
> ***** ATTENTION *****
> ....
>
> Creating list of files to back up.
> Backing up 65833 files..............................
> 257 of 65833 files (0%)..............................
> 748 of 65833 files (1%)........backup: 0511-449 An error occurred
> accessing ./tm
> p/man585842: A file or directory in the path name does not exist.
> ......................
> 13995 of 65833 files (21%)..............................
> 25502 of 65833 files (38%)..............................
> 43125 of 65833 files (65%)..............................
> 62708 of 65833 files (95%).......
> 0512-003 mksysb may not have been able to archive some files.
> The messages displayed on the Standard Error contained additional
> information.
>
> bosboot: Boot image is 27546 512 byte blocks.
>
> ***** ATTENTION *****
> The boot image you just created might fail to boot because
> the size exceeds the system limit. For information about
> fixes or workarounds, see /usr/lpp/bos.sysmgt/README.
> ***** ATTENTION *****
> #
>
> Thank you again!
>
> Joe D.
>


Its nothing to worry about. You (or somebody else) looked at a man page
while the file list was being created, but finished before the actual
backup started. ;-)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:24 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
UnixAdminTalk.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518