Operating System - HP-UX
1833767 Members
2173 Online
110063 Solutions
New Discussion

swap device odd minor number.

 
Ivan_112
Occasional Contributor

swap device odd minor number.

Hello,

I have the following question. We have rp8420, which had originaly HP-UX 11.11 installed, with 4 GB primary swap device. We had to upgrade the size of the swap so the best way we thought would be is to use ignite to backup the OS and then do a restore and increase the swap size during the restore. Everything went fine, and the OS was up and running. The thing that warries me is that swapinfo -tam shows:

# swapinfo
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 33554432 3864544 29689888 12% 0 - 1 31,0x006003
reserve - 25476508 -25476508
memory 26978256 15523108 11455148 58%

notice the name of the swap device. vgdisplay -v vg00 shows the /dev/vg00/lvol2 and everything is OK. lvdisplay -v /dev/vg00lvol2 is OK too. I read the man swapinfo about the NAME part, but i can't figure it out how this happend? In /dev/vg00/ everything is there. Anyone has any idea? Will be very thankfull.
5 REPLIES 5
RAC_1
Honored Contributor

Re: swap device odd minor number.

lvlnboot -v vg00
what does it show?
There is no substitute to HARDWORK
Ivan_112
Occasional Contributor

Re: swap device odd minor number.

lvlnboot -v vg00
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c0t6d0 (0/0/0/2/0.6.0) -- Boot Disk
/dev/dsk/c4t6d0 (1/0/0/2/0.6.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c0t6d0
/dev/dsk/c4t6d0
Root: lvol3 on: /dev/dsk/c0t6d0
/dev/dsk/c4t6d0
Swap: lvol2 on: /dev/dsk/c0t6d0
/dev/dsk/c4t6d0
Dump: lvol2 on: /dev/dsk/c0t6d0, 0
Victor BERRIDGE
Honored Contributor

Re: swap device odd minor number.

Hi Ivan,
Why or how come? I have no idea just like you..
what does it mean?
My understanding (Gods out there to confirm?)
based on a RP5450 for trying to understand:
A) from ioscan -funC disk
Class I H/W Path Driver S/W State H/W Type Description
==========================================================================
disk 0 0/0/1/0.3.0 sdisk CLAIMED DEVICE HP DVD-ROM 305
/dev/dsk/c0t3d0 /dev/rdsk/c0t3d0
disk 1 0/0/1/1.2.0 sdisk CLAIMED DEVICE HP 36.4GMAN3367MC
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
disk 2 0/0/2/0.2.0 sdisk CLAIMED DEVICE HP 36.4GMAN3367MC
/dev/dsk/c2t2d0 /dev/rdsk/c2t2d0

B) $ vgdisplay -v vg00|grep dsk
PV Name /dev/dsk/c2t2d0
PV Name /dev/dsk/c1t2d0


C) from kernel:
ant:/sm/export/hpux/admin $ echo "bootdev/X" | adb /stand/vmunix /dev/kmem
bootdev:
bootdev: 1F012000
ant:/sm/export/hpux/admin $ echo 'boot_string/S'|adb /stand/vmunix /dev/kmem
boot_string:
boot_string: disk(0/0/1/1.2.0.0.0.0.0;0)/stand/vmunix

My view is your output is very similar to
echo "bootdev/X" | adb /stand/vmunix /dev/kmem

This number represents the boot device. Here's how to decode it :

1F 00 5 0 00
__ __ _ _ __
| | | | |
major# | target | flags
| |
bus# lun

So 31,0x006003 31 is the major for scsi disks, bus would be c0, target t6, lun d0
giving you the hardware device you boot from:
/dev/dsk/c0t6d0.

The rest?
I will follow this thread to learn more about what why/what happend...

I know its not of great help at the moment, just a little recomfort to know you are on the good devices...

All the best
Victor
Ivan_112
Occasional Contributor

Re: swap device odd minor number.

Hello guys,

We fixed the problem. Turned out that the box has been rebooted 14 days ago and logged in to maintenance mode, and then moved to multi user mode _without_ rebooting (i.e. init 3). Then the / got mounted from /dev/root and that was the problem. Rebooting the box fixed the prolem naturaly. Thanks for all the tips guys.
Ivan_112
Occasional Contributor

Re: swap device odd minor number.

Will close the thread now.