Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > HP-UX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 07:21 PM
Ulrich Windl
 
Posts: n/a
Default Quo vadis HP-UX 11.23?

Hi,

once again I'll have to express my dissatisfaction with HP-UX here (because
anything you tell the guys at the RC will never make it to those who actually
are responsible for it). Anyway:

Recently I've learned that customers do not want to install OS updates or
patches frequently, so HP only issues updates to paying customers twice a year
(look for the latest Support Plus in SUM if you find any). OK if the software
quality is so high that you don't need frequent patches, everything is fine,
but...

Trying to to update to the OS Core (Operating Environment) 05/2005 recently, I
learned (RC says that) that it will only install (=update) cleanly if I've
installed OE dated 09/2004 before. Installing OE 12/2004 would not help. The
problem seems to be related to "required patch PHKL_31151" which is
"required", but not "provided" in the OS DVD 05/2005. Don't ask me who is
responsible for that.

Anyway, the reason for this article is not that problem, but the failed
Upgrade from HP-UX 11.11 (64bit) to 11.23 (64bit) on an L-class server last
week: Upgrade failed miserably due to a series of software bugs:

After an Upgrade from 11.0 to 11.11 was a rather smooth process (I'm doing OS
upgrades since 8.02 (1992)), the upgrade from 11.11 to 11.23 is a mess.

I started out with Update-UX B.11.11.0412 (which was OK says the
manual). After a little preparation, the first (minor) problem came:

[...]
Executing pre-update script NsaHttp.100
Executing pre-update script OS-CorePatchCheck.100
Executing pre-update script RAMIPv6.100
Executing pre-update script RNG-DKRN.100
ERROR: The /dev/random or /dev/urandom device special files may not be in
use during update-ux. Use the fuser(1M) command to identify these
processes, then terminate them.
ERROR: Pre-Update script RNG-DKRN.100 failed.
[...]

CIFS Server (samba) uses the random device, so I had to stop CIFS. No big
problem, but IO had to restart the update procedure. After restarting the
pre-checks all succeeded(!) and update began.

Then the next surprise:
ERROR: "host:/": The kernel build script failed.
[...]
ERROR: There were errors encountered while installing the new OS. These
errors resulted in the install phase being aborted. If you can
correct the problems, you can re-enter the update-ux command as
before, or enter: "update-ux -first_depot" to start the update at the
installation phase.
NOTE: One or more errors encountered. Take appropriate corrective action
and re-run update-ux to complete the update.

The postinstall script for OS-Core.CORE2-KRN had failed for the following
reason: "(NPROC): The specified number is not valid for this command."
Please note that kernel configurations had all be done with SAM and the
setting was perfectly OK up to then. Anyway I simply replaced all occurrencies
of "(NPROC)" with "999" (about OK for that machine).

After restarting the process using "update-ux -first_depot", installation of
kernel filesets worked fine, but then (again):

ERROR: "host:/": The kernel build script failed.

The reason for this error was:
ld: Unsatisfied protected symbol "tape2_install" in file "/usr/conf/lib/libsio.a[tape2.modmeta.o]"

So I just deleted the "tape2" line in /stand/system and restarted the update
as before. Then all the 1600 (or so) filesets installed correctly, BUT NO
KERNEL WAS BUILT! (hey, who did write that code that?)

So we have:
[...]
======= 08/19/05 14:02:57 METDST END swinstall SESSION
(non-interactive)
(jobid=host-0161)

* Obtaining some information from the source depot.
* Executing Pre-Reboot scripts
* Rebooting


======= END update-ux


* Discarding pre-update kernel registry database.
ERROR: Unable to create /stand/vmunix -> /stand/current/vmunix link.
You will need to tell the boot loader to boot
/stand/current/vmunix.
link: No such file or directory

sync'ing disks (0 buffers to flush):
0 buffers not flushed
0 buffers still dirty

Closing open logical volumes...
Done

At this point why didn't the process stop for manual intervention when no
kernel could be installed??? You can guess how the boot lokked like:

Proceeding...

Trying Primary Boot Path
------------------------
Booting...
Boot IO Dependent Code (IODC) revision 1


HARD Booted.

ISL Revision A.00.44 Mar 12, 2003

ISL booting hpux

Boot
: disk(0/6/0/0.5.0.0.0.0.0;0)/stand/vmunix
disk(0/6/0/0.5.0.0.0.0.0;0)/stand/vmunix: cannot open, or not executable
Exec failed: No such file or directory

At this point I still ahd hope to fix this (what I thought) rather trivial
problem. Just use the "Recovery feature" of the installation media. As you can
guess, more fun is waiting for you:

Booting...
Boot IO Dependent Code (IODC) revision 1


SOFT Booted.

ISL Revision A.00.44 Mar 12, 2003

ISL booting hpux (;0):INSTALL

Boot
: disk(0/0/1/0.1.0.0.0.0.0;0):WINSTALL
14426112 + 6750440 + 3362904 start 0x35c168


[...]
Loading some basic commands...
Required files exist ... Proceeding
/duped_root/.kshrc[306]: /sbin/fs/cdfs/mount: not found
[...]
The disk is LVM.
Setting boot and root device file for c4t5d0...
Loading /sbin/umount...
[...]
Enter the fsck command string (e.g., /sbin/fs/vxfs/fsck -P ) :
Loading ...

/: write failed, file system is full
ERROR: tar: ./usr/lib/libc.1: HELP - extract write error: No space left on
device (errno = 28)
ERROR: File: . not found.
/: file system full
NOTE: Retrying loadfile command...
ERROR: Cannot make link to (busy?) file: ./usr/lib/#libdld.2: File exists
(errno = 17)
ERROR: tar: ./usr/lib/libdld.2 - cannot create: Text file busy (errno = 26).

/: write failed, file system is full
ERROR: tar: ./usr/lib/libc.1: HELP - extract write error: No space left on
device (errno = 28)
ERROR: File: . not found.
/: file system full
NOTE: Retrying loadfile command...
ERROR: Cannot make link to (busy?) file: ./usr/lib/#libdld.2: File exists
(errno = 17)
ERROR: tar: ./usr/lib/libdld.2 - cannot create: Text file busy (errno = 26).

[...]

So it seems the ramdisk was full, and the ramdisk is so small that I cannot
get the two fscks for HFS and VxFS into it. However recovery insists on
checking the filesystems before doing anything.

[...]
/duped_root/.kshrc[310]: /dev/rdsk/c4t5d0s1lvm: cannot execute
'fsck' could not fix all customer file system errors with the options and
answers specified. You may wish to run 'fsck' again with different options or
attempt to repair the file system with the 'fsck -b' option to use a redundant
superblock. Automatic recovery cannot be completed unless the target file
system can be successfully 'fsck'ed.
Mounting /dev/dsk/ to /ROOT/stand as read only.
Loading /sbin/fs/NONE/mount...

/: write failed, file system is full

/: write failed, file system is full
ERROR: tar: ./sbin/mount: HELP - extract write error: No space left on device
(errno = 28)
ERROR: tar: ./sbin/mount: HELP - extract write error: No space left on device
/: file system full
[...]

I can only guerss that the media and software are thoroughly tested at HP labs
before being sent out to customers. OOps, maybe they just sent out an alpha
test media? ;-)

Anyway, I would not give up that easily:

[...]
INFORMATION to verify:
Device file used for '/'(ROOT) is c4t5d0.
The hardware path to disk is 0/6/0/0.5.0.
[...]
Selection: a
The disk is LVM.
Setting boot and root device file for c4t5d0...
Loading /sbin/umount...
[...]
Select one of the following:
a. Mount the root disk and exit to a shell only.
b. Recover the bootlif/os partitions.
c. Replace the kernel on the root file system.
d. Both options: b and c.
v. Read information about LVM recovery (LVM.RECOVER).

m. Return to 'HP-UX Recovery Media Main Menu'.
x. Exit to the shell.

Selection: c
Entering file system checking...
[...]
Loading /sbin/fs/hfs/fsck...
[...]
** /dev/rdsk/c4t5d0s1lvm
** Last Mounted on /stand
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
79 files, 0 icont, 27134 used, 291991 free (151 frags, 36480 blocks)
Mounting /dev/dsk/c4t5d0s1lvm to /ROOT/stand as read only.
Loading /sbin/fs/hfs/mount...
Loading /sbin/umount...
umount /ROOT/stand.
Executing fsck on /ROOT file system.
Loading /sbin/fs/vxfs/fsck...

/: write failed, file system is full

/: write failed, file system is full
ERROR: tar: ./sbin/fs/vxfs/fsck: HELP - extract write error: No space left on
device (errno = 28)
ERROR: tar: ./sbin/fs/vxfs/fsck: HELP - extract write error: No space left on/: file system full
/: file system full
[...]

OK, we had that before...

[...]
The disk is LVM.
Setting boot and root device file for c4t5d0...
Loading /sbin/umount...

/: write failed, file system is full

/: write failed, file system is full
ERROR: tar: ./sbin/umount: HELP - extract write error: No space left on
device (errno = 28)
ERROR: tar: ./sbin/umount: HELP - extract write error: No space left on
de/: file system full
[...]

After a few more attempts with similar results, I decided to try boot an an
older 11.23 Install media (booting an L class with 8GB RAM and two CPUs takes
its time).

[...]
NOTE: Creating the second RAM disc and mounting on /dev ...
* Generating device file for the second ramdisc...
* Loading mkfs to make a file system...
version 5 layout
15625 sectors, 15625 blocks of size 1024, log size 1024 blocks
unlimited inodes, largefiles not supported
15625 data blocks, 14529 free data blocks
1 allocation units of 32768 blocks, 32768 data blocks
last allocation unit has 15625 data blocks
* Loading mount to mount/dev/ram1 file system...
vxfs mount: Cannot open portal device: No such file or directory
* Mounting /dev/ram1 file system succeeded!
* Copying /dev.old files back to /dev succeeds!
* Loading insf to create disk device files...
* Creating disk device files...
* Loading the recovery commands...
[...]
FILE SYSTEM CHECK
MENU
The file system check '/sbin/fs/vxfs/fsck -y /dev/rdsk/c4t5d0s1lvm'
will now be run.

Select one of the following:
a. Run fsck -y.
b. Prompt for the fsck run string on c4t5d0s1lvm.
m. Return to the 'HP-UX Recovery MENU.'

Selection: a
Loading /sbin/fs/hfs/fsck...


[...]

** /dev/rdsk/c4t5d0s1lvm
** Last Mounted on /ROOT/stand
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
79 files, 0 icont, 27134 used, 291991 free (151 frags, 36480 blocks)
Going to mount /dev/dsk/c4t5d0s1lvm to /ROOT/stand as read only
Loading /sbin/fs/hfs/mount...
Loading /sbin/umount ......
Umount /ROOT/stand
Doing fsck on /ROOT file system
Loading /sbin/fs/vxfs/fsck...
/sbin/fs/vxfs/fsck -y /dev/rdsk/c4t5d0s2lvm
file system is clean - log replay is not required
Mount /ROOT file system
/sbin/fs/vxfs/mount /dev/dsk/c4t5d0s2lvm /ROOT
Loading mount commands ...
vxfs mount: Cannot open portal device: No such file or directory
Mount /ROOT/stand again
/sbin/fs/hfs/mount -F hfs /dev/dsk/c4t5d0s1lvm /ROOT/stand
Entering loading kernel....
The kernel is missing or zero size! Please try to determine the problem, and then retry.

<Press return to continue>
[...]

So it seems an older version of the installation media does not know about the
filesystem layout of the current media (and the current media doesn't work).

I still had hope to be able to fix that problem, going into "manual mode"
(root shell):
Volume group "/dev/vg02" has been successfully changed.
# mount -ea
mount: rksapfs1:/exports/home is already mounted on /home
mount: /dev/vg00/lvol8 is already mounted on /var
mount: /dev/vg00/lvol7 is already mounted on /usr
mount: /dev/vg00/lvol6 is already mounted on /opt
mount: /dev/vg00/lvol4 is already mounted on /tmp
mount: /dev/vg00/lvol1 is already mounted on /stand
mount: /opt/ora: No such file or directory
mount: /opt/sap: No such file or directory
[...]
However:
# /usr/bin/find / -name system _prep
/sbin/sh: /usr/bin/find: not found
# ls /usr
# mount /usr
mount: /dev/vg00/lvol7 is already mounted on /usr
# umount /usr
umount: cannot unmount /usr : Block device required
umount: return error 1.
[...]
# umount /usr
umount: cannot unmount /usr : Block device required
umount: return error 1.
# mount /usr
mount: /dev/vg00/lvol7 is already mounted on /usr
# umount /dev/vg00/lvol7
umount: cannot unmount /usr : Block device required
umount: return error 1.
# umount /dev/vg00/rlvol7
umount: cannot find /dev/vg00/rlvol7 in /etc/mnttab
cannot unmount /dev/vg00/rlvol7
# mount /usr
vxfs mount: Cannot open portal device: No such device
# ls -l /opt
total 0
# mount /opt
vxfs mount: Cannot open portal device: No such device
[...]

At that point I still had a faint hope to boot vmunix.prev:
[...]
ISL> hpux /stand/vmunix.prev

Boot
: disk(0/6/0/0.5.0.0.0.0.0;0)/stand/vmunix.prev
9232384 + 1716224 + 4010432 start 0x1fc0e8




alloc_pdc_pages: Relocating PDC from 0xf0f0000000 to 0x7eb00000.
gate64: sysvec_vaddr = 0xc0002000 for 2 pages
NOTICE: autofs_link(): File system was registered at index 3.
NOTICE: cachefs_link(): File system was registered at index 5.
NOTICE: nfs3_link(): File system was registered at index 6.

System Console is on the Built-In Serial Interface
Entering cifs_init...
Initialization finished successfully... slot is 9
Logical volume 64, 0x3 configured as ROOT
Logical volume 64, 0x2 configured as SWAP
Logical volume 64, 0x2 configured as DUMP
Swap device table: (start & size given in 512-byte blocks)
entry 0 - major is 64, minor is 0x2; start = 0, size = 40304640
Starting the STREAMS daemons-phase 1
Checking root file system.
Root check done.
Create STCP device files
Starting the STREAMS daemons-phase 2
$Revision: vmunix: vw: -proj selectors: CUPI80_BL2000_1108 -c 'Vw for CUPI80_BL2000_1108 build' -- cupi80_bl2000_1108 'CUPI80_BL2000_1108' Wed Nov 8 19:24:56 PST 2000 $
Memory Information:
physical page size = 4096 bytes, logical page size = 4096 bytes
Physical: 8388608 Kbytes, lockable: 7814288 Kbytes, available: 7427756 Kbytes


INIT: /etc/inittab: WARNING: Cannot pstat_getstatic: Invalid argument
[...no more output appeared...]
--------------------
At that point it was obvious that I had to recover!

At least one thing that worked:
======= 08/19/05 12:01:35 EDT Installation complete: Successful


####### # #
# # # #
# # # #
# # ###
# # # #
# # # #
####### # #
-------------------------------
So that was a short story on how to waste 10 hours of work using HP-UX.

Regards,
Ulrich
P.S. More luck with your upgrade!
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:50 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 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074