1755013 Members
3205 Online
108828 Solutions
New Discussion юеВ

Re: vg00 extend on HP-ux

 
Dzmitryj Jakavuk
Super Advisor

vg00 extend on HP-ux

Hello

I have Integrity VM 4.2 host with 1 HP-UX GUest installed.
Guest OS is installed on external storage LUN
I have expanded the LUN and I can see that it is expanded on the host OS. It's size is 5179 PE or
23549760 Kbytes.
This lun is exported to the guest hp-ux OS as vg00 volume group and /dev/disk/disk2_p2 device
Inside VM its size equals 4774 PE or 19557376 Kbytes

That means that its size was not automatically updated.
I need the procedure that will allow to update the size of physical device inside VM

Any suggestions?

Thank you in advance

8 REPLIES 8
Dzmitryj Jakavuk
Super Advisor

Re: vg00 extend on HP-ux

I have tried to remove disk from VM and attach back. No way

There are couple of messages in syslog
vmunix: ia64dsk: The disk appears to have grown since the partition table was written.

njia_1
Trusted Contributor

Re: vg00 extend on HP-ux

njia_1
Trusted Contributor

Re: vg00 extend on HP-ux

Hi

should have said this in the last reply, vgmodify is the command you need to use but you need to boot into maintenance mode to do this.

also look at the man page of vgmodify

thanks
Torsten.
Acclaimed Contributor

Re: vg00 extend on HP-ux

I never tried this for a 11.31 boot disk on Integrity servers.

The problem is, you have 3 partitions on this disk, hp-ux is on the second, but your new space is "behind" the third partition. Not sure if this will work or not, likely this won't work.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Dzmitryj Jakavuk
Super Advisor

Re: vg00 extend on HP-ux

njia thank you for responce let me show you the output of the commands on host os

bash-4.1# vgdisplay -v vg01
--- Volume groups ---
VG Name /dev/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 6652
VGDA 2
PE Size (Mbytes) 4
Total PE 5749
Alloc PE 5749
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 425728m
VG Max Extents 106432

--- Logical volumes ---
LV Name /dev/vg01/NNM9
LV Status available/syncd
LV Size (Mbytes) 22996
Current LE 5749
Allocated PE 5749
Used PV 1


--- Physical volumes ---
PV Name /dev/dsk/c7t0d1
PV Name /dev/dsk/c9t0d1 Alternate Link
PV Status available
Total PE 5749
Free PE 0
Autoswitch On
Proactive Polling On


bash-4.1# diskinfo //dev/rdsk/c7t0d1
SCSI describe of //dev/rdsk/c7t0d1:
vendor: HP
product id: MSA VOLUME
type: direct access
size: 23549760 Kbytes
bytes per sector: 512



bash-4.1# hpvmstatus -P nnm9
[Virtual Machine Details]
Virtual Machine Name VM # OS Type State
==================== ===== ======= ========
nnm9 2 HPUX On (OS)

[Authorized Administrators]
Oper Groups :
Admin Groups :
Oper Users :
Admin Users :

[Virtual CPU Details]
#vCPUs Entitlement Maximum
====== =========== =======
2 10.0% 100.0%

[Memory Details]
Total Reserved
Memory Memory
======= ========
2 GB 64 MB

[Storage Interface Details]
Guest Physical
Device Adaptor Bus Dev Ftn Tgt Lun Storage Device
======= ========== === === === === === ========= =========================
disk scsi 0 1 0 0 0 lv /dev/vg01/rNNM9
dvd scsi 0 1 0 1 0 file /var/Software_NNM_i_HP_UX_9.0_MLU_TB766_15001.iso

[Network Interface Details]
Interface Adaptor Name/Num PortNum Bus Dev Ftn Mac Address
========= ========== ========== ======= === === === =================
vswitch lan vswitch1 1 0 0 0 ba-9b-db-4e-ed-ca

[Misc Interface Details]
Guest Physical
Device Adaptor Bus Dev Ftn Tgt Lun Storage Device
======= ========== === === === === === ========= =========================
serial com1 tty console

So /dev/vg00 from Host OS is mapped to Guest OS as a physical device /dev/disk/disk2_p2


the output of the commands on guest OS


bash-4.1# vgdisplay -v /dev/vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 7
Open LV 7
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4784
VGDA 2
PE Size (Mbytes) 4
Total PE 4774
Alloc PE 4764
Free PE 10
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 299g
VG Max Extents 76544

--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 1792
Current LE 448
Allocated PE 448
Used PV 1

LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 1332
Current LE 333
Allocated PE 333
Used PV 1

LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 1024
Current LE 256
Allocated PE 256
Used PV 1

LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 512
Current LE 128
Allocated PE 128
Used PV 1

LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 6056
Current LE 1514
Allocated PE 1514
Used PV 1

LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 4984
Current LE 1246
Allocated PE 1246
Used PV 1

LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 3356
Current LE 839
Allocated PE 839
Used PV 1


--- Physical volumes ---
PV Name /dev/disk/disk2_p2
PV Status available
Total PE 4774
Free PE 10
Autoswitch On
Proactive Polling On

bash-4.1# diskinfo /dev/rdisk/disk2_p2
SCSI describe of /dev/rdisk/disk2_p2:
vendor: HP
product id: Virtual LvDisk
type: direct access
size: 19557376 Kbytes
bytes per sector: 512

So As I understand my problem is to make guest OS understand that the volume which is presented from HOST OS became bigger
Torsten.
Acclaimed Contributor

Re: vg00 extend on HP-ux

.




Consider to take an ignite backup and restore it






.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Dzmitryj Jakavuk
Super Advisor

Re: vg00 extend on HP-ux

booting to maintainance mode failed


ktracer is off until requested.
Installing Socket Protocol families AF_INET and AF_INET6
Kernel EVM initialized
sec_init(): kernel RPC authentication/security initialization.
secgss_init(): kernel RPCSEC_GSS security initialization.
rpc_init(): kernel RPC initialization.
rpcmod_install(): kernel RPC STREAMS module "rpcmod" installation. ...(driver_install)
NOTICE: nfs_client_pv3_install(): nfs3 File system was registered at index 10.
NOTICE: nfs_client_pv4_install(): nfs4 File system was registered at index 11.
NOTICE: cachefsc_install: cachefs File system was registered at index 13.
Boot device's HP-UX HW path is: 0.0.1.0.0.0
iether0: INITIALIZING HP PCI/PCI-X 1000Base-T at hardware path 0/0/0/0

System Console is on the Built-In Serial Interface
afinet_prelink: module installed
AF_INET socket/streams output daemon running, pid 43
Starting the STREAMS daemons-phase 1
ia64dsk: The disk appears to have grown since the partition table was written.
ia64dsk: The disk appears to have grown since the partition table was written.
ia64dsk: The disk appears to have grown since the partition table was written.
ia64dsk: The disk appears to have grown since the partition table was written.
ia64dsk: The disk appears to have grown since the partition table was written.
ia64dsk: The disk appears to have grown since the partition table was written.
ia64dsk: The disk appears to have grown since the partition table was written.
Swap device table: (start & size given in 512-byte blocks)
entry 0 - major is 64, minor is 0x2; ia64dsk: The disk appears to have grown since the partition table was written.
start = 0, size = 2727936
ia64dsk: The disk appears to have grown since the partition table was written.
bad_kern_refer
Stored message buffer up to system crash:

MFS is defined: base= 0xe00000010204b000 size= 27356 KB
Found adjacent data tr. Growing size. 0x1fb5000 -> 0x5fb5000.
Loaded ACPI revision 2.0 tables.


MCA recovery subsystem disabled, not supported on this platform.
montecito_proc_features: PROC_GET_FEATURES returned 0xfffffffffffffff8
Using /stand/ext_ioconfig

Memory Class Setup
-------------------------------------------------------------------------
Class Physmem Lockmem Swapmem
-------------------------------------------------------------------------
System : 1942 MB 1942 MB 1942 MB
Kernel : 1942 MB 1942 MB 1942 MB
User : 1685 MB 1494 MB 1500 MB
-------------------------------------------------------------------------

ktracer is off until requested.
montecito_proc_features: PROC_GET_FEATURES returned 0xfffffffffffffff8
Installing Socket Protocol families AF_INET and AF_INET6
64000/0xfa00 esvroot
Kernel EVM initialized
64000/0x0 mass_storage
64000/0x0/0x0 usb_ms_scsi
sec_init(): kernel RPC authentication/security initialization.
secgss_init(): kernel RPCSEC_GSS security initialization.
rpc_init(): kernel RPC initialization.
rpcmod_install(): kernel RPC STREAMS module "rpcmod" installation. ...(driver_install)
NOTICE: nfs_client_pv3_install(): nfs3 File system was registered at index 10.
NOTICE: nfs_client_pv4_install(): nfs4 File system was registered at index 11.
NOTICE: cachefsc_install: cachefs File system was registered at index 13.
btlan_load() Loaded Successfully
0 cec_gen
0/0 gh2p
0/0/0/0 iether
Initializing the Ultra320 SCSI Controller at 0/0/1/0. Controller firmware version is 00.00.00.00
0/0/1/0 mpt
0/0/3/0 legacyio
0/0/3/0/1 asio0
0/1 gh2p
0/2 gh2p
0/3 gh2p
0/4 gh2p
0/5 gh2p
0/6 gh2p
0/7 gh2p
120 processor
121 processor
250 pdh
250/0 ipmi
250/1 acpi_node
0/0/1/0.0x0 estp
0/0/1/0.0x1 estp
0/0/1/0.0x0.0x0 eslpt
0/0/1/0.0x1.0x0 eslpt
0/0/1/0.1 tgt
0/0/1/0.1.0 sdisk
0/0/1/0.0 tgt
0/0/1/0.0.0 sdisk
255/1 mass_storage
255/1/0 usb_ms_scsi
64000/0xfa00/0x0 esdisk
64000/0xfa00/0x1 esdisk
Boot device's HP-UX HW path is: 0.0.1.0.0.0
iether0: INITIALIZING HP PCI/PCI-X 1000Base-T at hardware path 0/0/0/0

System Console is on the Built-In Serial Interface
afinet_prelink: module installed
AF_INET socket/streams output daemon running, pid 43
Starting the STREAMS daemons-phase 1
ia64dsk: The disk appears to have grown since the partition table was written.
ia64dsk: The disk appears to have grown since the partition table was written.
ia64dsk: The disk appears to have grown since the partition table was written.
ia64dsk: The disk appears to have grown since the partition table was written.
ia64dsk: The disk appears to have grown since the partition table was written.
ia64dsk: The disk appears to have grown since the partition table was written.
ia64dsk: The disk appears to have grown since the partition table was written.
Swap device table: (start & size given in 512-byte blocks)
entry 0 - major is 64, minor is 0x2; ia64dsk: The disk appears to have grown since the partition table was written.
start = 0, size = 2727936
ia64dsk: The disk appears to have grown since the partition table was written.
Dump device table: (start & size given in 1-Kbyte blocks)
entry 0000000000000000 - major is 1, minor is 0x0; start = 2349920, size = 1363968
bad_kern_reference: 0xffff31.0x134, fault = 0x8

Message buffer contents after system crash:

panic: Fault when executing in kernel mode
Stack Trace:
IP Function Name
0xe000000001ee1f60 bad_kern_reference+0xa0
0xe0000000007574c0 $cold_vfault+0x470
0xe000000000c42930 vm_hndlr+0x4b0
0xe000000001b02780 bubbledown+0x0
0xe000000000c76a51 lv_readahead_info+0xd1
0xe000000000c206c0 ufs_rdwr+0x700
0xe000000000d70200 vn_rdwr+0xe0
0xe000000000d7a030 read_ex_data+0x170
0xe000000000b00690 execve+0xf00
0xe000000000be8070 syscall+0x590
End of Stack Trace

linkstamp: Tue Jul 13 16:28:42 EDT 2010
_release_version: @(#) $Revision: vmunix: B.11.31_LR FLAVOR=perf
Calling function e000000001568980 for Shutdown State 1 type 0x2

sync'ing disks (0 buffers to flush):
0 fcache pages still dirty
0 buffers not flushed
0 buffers still dirty
Calling function e000000127f9bc00 for Shutdown State 9 type 0x2
i 0 pfn 0x40 pages 0xb0
i 1 pfn 0x542 pages 0x7f7ec
i 2 pfn 0x7fd98 pages 0xa6
i 3 pfn 0x7fe7e pages 0x13c
*** Not enough CPUS for a compressed dump ***

*** A system crash has occurred. (See the above messages for details.)
*** The system is now preparing to dump physical memory to disk, for use
*** in debugging the crash.

*** The dump will be a SELECTIVE dump with
compression OFF and concurrency ON: 353 of 2043 megabytes.
*** To change this dump type, press any key within 10 seconds.
*** Proceeding with selective dump, with compression off and concurrency on.



Primary Dump Header Location :
Device details:
Major number: 31 Minor number:0x0
Offset: 2349920.
*** The dump may be aborted at any time by pressing ESC.
*** Dumping: 0% complete (1 of 353 MB)

ESC was detected. Press Y within 10 seconds to abort the dump,
or press any other key to continue.
y
1 dump unit(s) aborted the dumpC. *** Dumping: 30% complete (107 of 353 MB)
Dump Unit #0 failed

time: 23 seconds, Number of Dump units: 1

**** Dumping Guest Image ****

**** Done with dump (8660Kbytes) ****


*** VM restarting ***
IT Response
Esteemed Contributor

Re: vg00 extend on HP-ux

Torsten is correct when he mentions the partition table that will affect your ability to extend vg00. Luckily, the HP-UX 11.31 idisk command is smart enough to do the right thing.
NOTE: I did these steps on 11.31.1003
I won't guarantee they'll work on
earlier versions.

1. Increase the size of the disk
2. Reallocate partitions on disk:
#> idisk -w -G /dev/rdisk/
3. Reboot to lvm maintenance mode
(catch reboot and issue "hpux -lm"
4. In maintenance mode, use
#> vgmodify -o dev/vg00
5. Activate vg00 and confirm that
the space is available
#> vgchange -a y /dev/vg00
#> vgdisplay -v /dev/vg00
#> vgchange -a n /dev/vg00
6. reboot to get back to multi-user mode
#> reboot