1819504 Members
3208 Online
109603 Solutions
New Discussion юеВ

hpmodify -ERROR

 
Musa123
Advisor

hpmodify -ERROR

Friends,

Am allocating 100g lun to my guest but am facing below error.
Kindly advice how to solve the issue..

# hpvmstatus
[Virtual Machines]
Virtual Machine Name VM # OS Type State #VCPUs #Devs #Nets Memory Runsysid
==================== ===== ======= ========= ====== ===== ===== ======= ========
vm01 1 HPUX On (OS) 4 12 1 11 GB 0
vm02 2 HPUX Off 2 12 1 6 GB 0
#
# hpvmmodify -p1 -a disk:avio_stor::disk:/dev/rdisk/disk113
hpvmmodify: Unable to dynamically create device disk:avio_stor:0,4,0:disk:/dev/rdisk/disk113 - Protocol error.
hpvmmodify: Guest needs to be restarted (using hpvmstop followed by hpvmstart) for all changes to take effect.
hpvmmodify: WARNING (host): Device /dev/rdsk/c3t0d0 took 14 seconds to open.

1)Its required reboot for alocating LUN.
2)Purpose of creating new file system
3)How to add the storage to excisting F/S.

Thanks in Advance.....
2 REPLIES 2
Bhadresh
Trusted Contributor

Re: hpmodify -ERROR

Hi,

You need to stop and start guest after adding any new device. Execute following commands:
# hpvmstop -p 1
# hpvmstart -p 1

Regards,
Bhadresh
INH
Regular Advisor

Re: hpmodify -ERROR

Hello,
You may refer this forum

http://h30499.www3.hp.com/t5/Virtualization/Integrity-Virtual-Machines-v4-0-unable-to-dynamically-add-disk/m-p/5132322#M3575


2)Purpose of creating new file system

As per your requirement in your environment

3)How to add the storage to excisting F/S

1) Present a LUN ( or use existing free LUN ) and find out it's details on your HPVM guest server
# ioscan -fnkCdisk
# ioscan em dsf

o/p looks some thing like below format

/dev/rdisk/disk533 /dev/rdsk/c17t0d7
/dev/rdsk/c21t0d7
/dev/rdsk/c19t0d7
/dev/rdsk/c23t0d7


disk 533 64000/0xfa00/0xd4 esdisk CLAIMED DEVICE online HITACHI DF600F
0/0/4/0/0/0/0.0x50060e8000c3f1b2.0x4007000000000000
0/0/4/0/0/0/1.0x50060e8000c3f1b4.0x4007000000000000
0/0/14/0/0/0/0.0x50060e8000c3f1b2.0x4007000000000000
0/0/14/0/0/0/1.0x50060e8000c3f1b4.0x4007000000000000
/dev/disk/disk533 /dev/rdisk/disk533 /dev/rdisk/disk_name


Lun H/W Path Lunpath H/W Path Legacy H/W Path
====================================================================
64000/0xfa00/0xd4
0/0/4/0/0/0/0.0x50060e8000c3f1b2.0x4007000000000000 0/0/4/0/0/0/0.6.25.0.0.0.7
0/0/4/0/0/0/1.0x50060e8000c3f1b4.0x4007000000000000 0/0/4/0/0/0/1.1.28.0.0.0.7
0/0/14/0/0/0/0.0x50060e8000c3f1b2.0x4007000000000000 0/0/14/0/0/0/0.6.25.0.0.0.7
0/0/14/0/0/0/1.0x50060e8000c3f1b4.0x4007000000000000 0/0/14/0/0/0/1.1.28.0.0.0.7

2) execute follwoing commands on your sysstem using new lun details

# scsimgr get_info -H 64000/0xfa00/0xd4

# scsimgr save_attr -a load_bal_policy=preferred_path -H 64000/0xfa00/0xd4

# scsimgr save_attr -a preferred_path=0/0/14/0/0/0/0.0x50060e8000c3f1b2.0x4007000000000000 -H 64000/0xfa00/0xd4

Check
# scsimgr get_info -H 64000/0xfa00/0xd4


3. Check the size of disk

for e.g

# diskinfo /dev/rdisk/disk533
SCSI describe of /dev/rdisk/disk533:
vendor: HITACHI
product id: DF600F
type: direct access
size: 10486784 Kbytes
bytes per sector: 512


4. Map the device file for easy identification of data LUN of your HPVM host, it is better and easy to identyfy respective HPVMs data luns

# ll /dev/rdisk/disk533
crw-r----- 1 bin sys 23 0x0000d4 Nov 25 16:40 /dev/rdisk/disk533

# mknod /dev/rdisk/HPVM_shortname_dataNN c 23 0x0000d4 ( NN- data lun number, for e.g host=marvin & datalun 2 => marvin_data2)
# ioscan -m lun |grep disk533
/dev/disk/disk533 /dev/rdisk/disk533 /dev/rdisk/HPVM_shortname_dataNN



5. Add the disk to HPVM

HPVMguest # hpvmmodify -P HPVM_name -a disk:avio_stor::disk:/dev/rdisk/disk533 ( HPVMgues=your guest server, HPVM= your HPVM host)


====================
Logon to your HPVM
====================

6. Login to HPVM_name and run ioscan again and identify the new disk

# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
disk 1 0/0/0/0.0.0 sdisk CLAIMED DEVICE HP Virtual Disk
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 4 0/0/0/0.1.0 sdisk CLAIMED DEVICE HP Virtual Disk
/dev/dsk/c0t1d0 /dev/rdsk/c0t1d0
.............



6. Take a backup of existing LVM config:

# bdf
Filesystem kbytes used avail %used Mounted on
............


7) backup configuration files

#cp -p /etc/lvmtab /etc/lvmtab.old_date

# vgexport -pvs -m /etc/lvmconf/vg_name.map.old_date /dev/vg_name


8. Create the LVM sturcture on the new disk and add it to the vg on HPVM

# pvcreate /dev/rdisk/disk17

# vgextend /dev/vg_name /dev/disk/disk17

9 ) Extend the filesystem size as required. I assume you have online jfs

# lvextend -l 478 /dev/vg_name/lvol_number

# fsadm -F vxfs -b size M mount point

# bdf mount point
Filesystem kbytes used avail %used Mounted on
..........



Note: I assume that you are extending existing VG on HPVM or else you may need to follow steps to create new VG as well.

I have atatched these steps for your reference

HTH

good luck

Regards,
INH

Knowledge is power