Operating System - HP-UX
1821188 Members
3597 Online
109631 Solutions
New Discussion юеВ

Re: VxVM basic question - how to add a disk

 
David Freer_1
Advisor

VxVM basic question - how to add a disk

Fresh HPUX install on this system after several disk crashes and we're now ready to configure VxVM. Only problem is, it can't see two of the newly replaced disks. ioscan & diskinfo see them OK but:

# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c4t0d0 auto:hpdisk rootdisk01 rootdg online
c4t1d0 auto:cdsdisk - - online
c4t2d0 auto:cdsdisk - - online
c4t3d0 auto:cdsdisk - - online
c4t5d0 auto:cdsdisk - - online
c4t6d0 auto:cdsdisk - - online
c5t8d0 auto:cdsdisk - - online
c5t9d0 auto:cdsdisk - - online
c6t1d0 auto:cdsdisk - - online
c6t2d0 auto:cdsdisk - - online
c6t3d0 auto:cdsdisk - - online
c6t4d0 auto:cdsdisk - - online
c6t5d0 auto:cdsdisk - - online
c6t6d0 auto:cdsdisk - - online
c7t8d0 auto:cdsdisk - - online
c7t9d0 auto:cdsdisk - - online
c7t10d0 auto:none - - online invalid

No sign of c4t4d0 or c6t0d0. There are no /etc/vx/*.exclude files and vxdctl enable doesn't seem to find the disks as I was led to believe.

/etc/vx/disk.info doesn't include the disks which I believe is the underlying fault but if this file has to be manually edited then I will need guidance as to how to get the appropriate information.

Cheers,

David.
16 REPLIES 16
Robert-Jan Goossens_1
Honored Contributor

Re: VxVM basic question - how to add a disk

Hi Davis,

did you try vxdiskadm , replace a disk option?

Robert-Jan

David Freer_1
Advisor

Re: VxVM basic question - how to add a disk

Sorry, no good:

VxVM INFO V-5-2-396
There are currently no devices that are failed or removed.
Robert-Jan Goossens_1
Honored Contributor

Re: VxVM basic question - how to add a disk

ok,

Try this.

# mv /etc/vx/disk.info /etc/vx/disk.info.old
# vxconfigd -k

To create a new info file.

Robert-Jan
David Freer_1
Advisor

Re: VxVM basic question - how to add a disk

Already tried that...sorry, still no good.
Siju Vadakkan
Trusted Contributor

Re: VxVM basic question - how to add a disk

try following steps

1. vxdisk scandisks
2. vxdisk list

if still the problem persists do the following steps.

mv /etc/vx/disk.info /etc/vx/disk.info.old
vxconfigd -k -m enable
ioscan -fnC disk
vxdisk list
David Freer_1
Advisor

Re: VxVM basic question - how to add a disk

Further information:

It looks like 3 disks are unavailable, I had forgotten about c5t10d0. All three were recently replaced and all 3 are the same type, i.e. FUJITSU MAW3073NC

# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
disk 0 0/0/2/1.2.0 sdisk CLAIMED DEVICE HP DVD-ROM 305
/dev/dsk/c3t2d0 /dev/dvd-rom /dev/rdsk/c3t2d0
disk 1 0/10/0/0.0.0 sdisk CLAIMED DEVICE HP 36.4GST336607LC
/dev/dsk/c4t0d0 /dev/rdsk/c4t0d0
disk 2 0/10/0/0.1.0 sdisk CLAIMED DEVICE HP 36.4GST336607LC
/dev/dsk/c4t1d0 /dev/rdsk/c4t1d0
disk 3 0/10/0/0.2.0 sdisk CLAIMED DEVICE HP 36.4GST336607LC
/dev/dsk/c4t2d0 /dev/rdsk/c4t2d0
disk 4 0/10/0/0.3.0 sdisk CLAIMED DEVICE FUJITSU MAW3073NC
/dev/dsk/c4t3d0 /dev/rdsk/c4t3d0
disk 5 0/10/0/0.4.0 sdisk CLAIMED DEVICE FUJITSU MAW3073NC
/dev/dsk/c4t4d0 /dev/rdsk/c4t4d0
disk 6 0/10/0/0.5.0 sdisk CLAIMED DEVICE HP 36.4GMAP3367NC
/dev/dsk/c4t5d0 /dev/rdsk/c4t5d0
disk 7 0/10/0/0.6.0 sdisk CLAIMED DEVICE HP 36.4GST336607LC
/dev/dsk/c4t6d0 /dev/rdsk/c4t6d0
disk 15 0/10/0/1.8.0 sdisk CLAIMED DEVICE HP 36.4GST336607LC
/dev/dsk/c5t8d0 /dev/rdsk/c5t8d0
disk 16 0/10/0/1.9.0 sdisk CLAIMED DEVICE HP 36.4GST336607LC
/dev/dsk/c5t9d0 /dev/rdsk/c5t9d0
disk 17 0/10/0/1.10.0 sdisk CLAIMED DEVICE FUJITSU MAW3073NC
/dev/dsk/c5t10d0 /dev/rdsk/c5t10d0
disk 8 0/12/0/0.0.0 sdisk CLAIMED DEVICE FUJITSU MAW3073NC
/dev/dsk/c6t0d0 /dev/rdsk/c6t0d0
disk 9 0/12/0/0.1.0 sdisk CLAIMED DEVICE HP 36.4GST336607LC
/dev/dsk/c6t1d0 /dev/rdsk/c6t1d0
disk 10 0/12/0/0.2.0 sdisk CLAIMED DEVICE HP 36.4GST336607LC
/dev/dsk/c6t2d0 /dev/rdsk/c6t2d0
disk 11 0/12/0/0.3.0 sdisk CLAIMED DEVICE HP 36.4GST336607LC
/dev/dsk/c6t3d0 /dev/rdsk/c6t3d0
disk 12 0/12/0/0.4.0 sdisk CLAIMED DEVICE HP 36.4GST336607LC
/dev/dsk/c6t4d0 /dev/rdsk/c6t4d0
disk 13 0/12/0/0.5.0 sdisk CLAIMED DEVICE HP 36.4GST336607LC
/dev/dsk/c6t5d0 /dev/rdsk/c6t5d0
disk 14 0/12/0/0.6.0 sdisk CLAIMED DEVICE HP 36.4GST336607LC
/dev/dsk/c6t6d0 /dev/rdsk/c6t6d0
disk 18 0/12/0/1.8.0 sdisk CLAIMED DEVICE HP 36.4GST336607LC
/dev/dsk/c7t8d0 /dev/rdsk/c7t8d0
disk 19 0/12/0/1.9.0 sdisk CLAIMED DEVICE HP 36.4GST336607LC
/dev/dsk/c7t9d0 /dev/rdsk/c7t9d0
disk 20 0/12/0/1.10.0 sdisk CLAIMED DEVICE HP 36.4GST336607LC
/dev/dsk/c7t10d0 /dev/rdsk/c7t10d0
Robert-Jan Goossens_1
Honored Contributor

Re: VxVM basic question - how to add a disk

and if you add them with

# /etc/vx/bin/vxdisksetup -i c4t4d0

Robert-Jan
David Freer_1
Advisor

Re: VxVM basic question - how to add a disk

# /etc/vx/bin/vxdisksetup -i c4t4d0
VxVM vxdisksetup ERROR V-5-2-43 c4t4d0: Invalid disk device for vxdisksetup
David Freer_1
Advisor

Re: VxVM basic question - how to add a disk

Found the problem...now how do we fix it?
Veritas sees c4t3d0 as ALL of the replaced disks...

# vxdisk list c4t3d0
Device: c4t3d0
devicetag: c4t3d0
type: auto
hostid:
disk: name= id=1203411685.113.loopback
group: name= id=1203410389.103.loopback
info: format=cdsdisk,privoffset=128
flags: online ready private autoconfig
pubpaths: block=/dev/vx/dmp/c4t3d0 char=/dev/vx/rdmp/c4t3d0
version: 3.1
iosize: min=512 (bytes) max=256 (blocks)
public: slice=0 offset=1152 len=71815272 disk_offset=0
private: slice=0 offset=128 len=1024 disk_offset=0
update: time=1203943437 seqno=0.14
ssb: actual_seqno=0.1
headers: 0 120
configs: count=1 len=640
logs: count=1 len=96
Defined regions:
config priv 000024-000119[000096]: copy=01 offset=000000 enabled
config priv 000128-000671[000544]: copy=01 offset=000096 enabled
log priv 000672-000767[000096]: copy=01 offset=000000 enabled
lockrgn priv 000768-000839[000072]: part=00 offset=000000
Multipathing information:
numpaths: 4
c4t3d0 state=enabled
c4t4d0 state=enabled
c5t10d0 state=enabled
c6t0d0 state=enabled
Siju Vadakkan
Trusted Contributor

Re: VxVM basic question - how to add a disk

try following steps

1. vxdisk scandisks
2. vxdisk list

if still the problem persists do the following steps.

mv /etc/vx/disk.info /etc/vx/disk.info.old
vxconfigd -k -m enable
ioscan -fnC disk
vxdisk list
Siju Vadakkan
Trusted Contributor

Re: VxVM basic question - how to add a disk

Hope Following steps will solve ur issue
try following steps

1. vxdisk scandisks
2. vxdisk list

if still the problem persists do the following steps.

mv /etc/vx/disk.info /etc/vx/disk.info.old
vxconfigd -k -m enable
ioscan -fnC disk
vxdisk list
David Freer_1
Advisor

Re: VxVM basic question - how to add a disk

As previously mentioned in this thread, these steps do not work.
Darrel Louis
Honored Contributor

Re: VxVM basic question - how to add a disk

David,

Check if your VxVm is Licensed
vxlicense -t VxVM
vxlicense -p

ioscan -fn
insf -e
vxdctl enable

vxdg free
vxdg list
vxdisk -o alldgs list
vxdisk -s list c4t4d0
/etc/vx/bin/vxdisksetup -i c4t4d0

Run vxconfig in debug mode:
vxconfigd ├в k ├в m enable ├в x9 ├в x log >/var/tmp/vxconfigd.log 2>&1

See also http://www.docs.hp.com/hpux/onlinedocs/5187-1374/5187-1374.html

GoodLuck
Darrel
David Freer_1
Advisor

Re: VxVM basic question - how to add a disk

Issue is now sorted, thanks to all those who replied. The problem was that vxddladm listjbod showed the system was looking at the first 10 characters of the serial ID for Fujitsu disks, not the full 12 and in our case the first 10 characters were all the same so it was being seen as multiple paths to the same disk.

# vxddladm rmjbod vid=FUJITSU
# vxddladm addjbod vid=FUJITSU length=12
# rm /etc/vx/disk.info

and a reboot solved the problem.
David Freer_1
Advisor

Re: VxVM basic question - how to add a disk

See above for solution.
Steve Post
Trusted Contributor

Re: VxVM basic question - how to add a disk

I am speaking out of ignorance here. I haven't used VXVM.

From your question, it looks a lot harder to use than traditional logical volume managment (LVM).

Are the commands really so goofy?

steve