System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Sharing a disk between HP-VM's on a single host

SOLVED
Go to solution
Jayaprakash Subramanian
Frequent Advisor

Sharing a disk between HP-VM's on a single host

Hello All,

I have to create a 3 node cluster with SLVM. Those three nodes are resides on a single Host. I have created a lock lun on the EVA and presented the disk to the host.

Then i tried to assign the disk to all the 3 VM's on the host. For that i change that disk as shared disk. But still i'm unable to mount the disk.

Here are some of the details.

Disk : /dev/rdsk/c24t1d4

guests : sapvm1, sapvm2, sapvm3

command to share the disk -
# hpvmdevmgmt -m gdev:/dev/rdsk/c24t1d4:attr:SHARE=YES

devmgmt output -

hpvmdevmgmt -l gdev
localnet:CONFIG=gdev,EXIST=YES,DEVTYPE=SWITCH,SHARE=YES::WWID_NULL
lan0:CONFIG=gdev,EXIST=YES,DEVTYPE=NIC,SHARE=NO:vswitch1:WWID_NULL
vswitch1:CONFIG=gdev,EXIST=YES,DEVTYPE=SWITCH,SHARE=YES:sd2vm4,sapvm3,sapvm2,sapvm1:WWID_NULL
/dev/rdisk/disk7,/dev/rdsk/c26t0d3:CONFIG=gdev,EXIST=YES,DEVTYPE=DISK,SHARE=NO:sapvm2:0x01.0x00.0x03.0x600508b40006eed10001100000940000
/dev/rdisk/disk10,/dev/rdsk/c26t0d4:CONFIG=gdev,EXIST=YES,DEVTYPE=DISK,SHARE=NO:sapvm3:0x01.0x00.0x03.0x600508b40006eed100011000009e0000
/dev/rdisk/disk13,/dev/rdsk/c26t0d5:CONFIG=gdev,EXIST=YES,DEVTYPE=DISK,SHARE=NO:sd2vm4:0x01.0x00.0x03.0x600508b40006eed10001100000a40000
/dev/slvm_dsk1:CONFIG=gdev,EXIST=YES,DEVTYPE=DIRECTORY,SHARE=NO,VIRTPTYPE=container_volume_SLVM,PRESERVE=YES::HPVM_DIR_STATID_2411_1073741827
/dev/slvm_dsk2:CONFIG=gdev,EXIST=YES,DEVTYPE=DIRECTORY,SHARE=NO,VIRTPTYPE=container_volume_SLVM,PRESERVE=YES::HPVM_DIR_STATID_2443_1073741827
/dev/slvm_dsk3:CONFIG=gdev,EXIST=YES,DEVTYPE=DIRECTORY,SHARE=NO,VIRTPTYPE=container_volume_SLVM,PRESERVE=YES::HPVM_DIR_STATID_2442_1073741827
/dev/slvm_dsk4:CONFIG=gdev,EXIST=YES,DEVTYPE=DIRECTORY,SHARE=NO,VIRTPTYPE=container_volume_SLVM,PRESERVE=YES::HPVM_DIR_STATID_2468_1073741827
/dev/rdsk/c26t0d2,/dev/rdisk/disk4:CONFIG=gdev,EXIST=YES,DEVTYPE=DISK,SHARE=NO:sapvm1:0x01.0x00.0x03.0x600508b40006eed100011000008e0000
/dev/rdsk/c24t1d4,/dev/rdisk/disk56:CONFIG=gdev,EXIST=YES,DEVTYPE=DISK,SHARE=YES:sapvm2,sapvm3:0x01.0x00.0x03.0x600508b40006eed10001100002280000

Error :
root@vmhost# hpvmmodify -p 2 -a disk:scsi::disk:/dev/rdsk/c24t1d4
root@vmhost# hpvmmodify -p 3 -a disk:scsi::disk:/dev/rdsk/c24t1d4
hpvmmodify: ERROR (sapvm2): Duplicate backing device '/dev/rdsk/c24t1d4'.
hpvmmodify: ERROR (sapvm2): Unable to add device '/dev/rdsk/c24t1d4'.
hpvmmodify: Unable to create device disk:scsi::disk:/dev/rdsk/c24t1d4.
hpvmmodify: Unable to modify the guest.

Please advise here to create the cluster between the VM's on a single host.

Thanks,
Jayaprakash S
3 REPLIES
Noé
Valued Contributor
Solution

Re: Sharing a disk between HP-VM's on a single host

SAPVM2
Please, can you send me the output of this commands (only the [Storage Interface Details]):

# hpvmstatus -P sapvm2
# hpvmstatus -P sapvm2 -D

Regards
maslo64
Advisor

Re: Sharing a disk between HP-VM's on a single host

Hi
Looks that you've already added this disk to VM.
But I encourage you, to use avio driver instead scsi.

You may need to restart VMs. To be able activate new configuration for Guest.

Laco
Jayaprakash Subramanian
Frequent Advisor

Re: Sharing a disk between HP-VM's on a single host

Hello All,

I have added the disk to the host and configured that disk as a shared disk using hpvmdevmgmt. I accidentally assign the same disk twice to that vm. thats the cause for this error.

Reg AVIO, Yes, I should change the disks from SCSI to AVIO. Will analyze this and implement.

Thanks,
Jayaprakash S