1748136 Members
3259 Online
108758 Solutions
New Discussion юеВ

Add new disk

 
SOLVED
Go to solution
tonyG_2
Advisor

Add new disk

Having an issue trying to add a new disk. Created a new 20Gb disk via Command view eva and presented to my server hp-ux 11.23 OS.

#ioscan -kfC disk //no new disks appear
#sam //new disk is visable in disks and filesystems

I attempt to initialize it via LVM and SAM and it returns an error: The physical volume "/dev/dsk/c0t0d2" is already recorded in the "/etc/lvmtab" file.

In fact it is recorded in the /etc/lvmtab because it is the same name as another disk already on the system:

#strings /etc/lvmtab

/dev/vg00
/dev/dsk/c0t0d0

/dev/vg01
/dev/dsk/c0t0d2
/dev/dsk/c0t0d4
/dev/dsk/c0t0d6
/dev/dsk/c0t0d8

I am at a complete loss as to why this is happening.

3 REPLIES 3
Torsten.
Acclaimed Contributor
Solution

Re: Add new disk

Somehow I doubt if LUN 2 is the latest added LUN ...

What LUN did you present?

Make sure to present it to the correct host and check if the host mode is hp-ux.

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!   
tonyG_2
Advisor

Re: Add new disk

Ok assigning a new LUN fixed the issue. I now understand why as well. There is additional disk information in the lvmtab that I did not mention since my original post was based off of memory. Here is the whole lvmtab:

# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c2t1d0s2
/dev/vg01_eva
/dev/dsk/c4t0d1
/dev/dsk/c6t0d1
/dev/dsk/c8t0d1
/dev/vg09
/dev/dsk/c4t0d2
/dev/dsk/c6t0d2
/dev/dsk/c8t0d2
/dev/dsk/c10t0d2
/dev/vg02
/dev/dsk/c4t0d3
/dev/dsk/c6t0d3
/dev/dsk/c8t0d3
/dev/dsk/c10t0d3

(/dev/vg02 is the new disk and lun)

CVA auto assined LUN number 2 and because /dev/vg09 already has it, it was returning an error. This appears to be an error because vg09 does not exist. I recreated lvmtab with with vgscan -a. All appears to be well.

Thanks for the help.
tonyG_2
Advisor

Re: Add new disk

The issue was an incorrect entry in the /etc/lvmtab that was showing a volume group with disks in it that did not actually exist. I moved the lvmtab file to lvmtab.old and ran vgscan -a to recreate it. After this in CVA I was able to assign LUN 2 to the newly created vdisk. After that initializing the disk was not a problem.