Operating System - HP-UX
1748165 Members
4197 Online
108758 Solutions
New Discussion юеВ

mount: No such device or address

 
SOLVED
Go to solution
LawrenceLow
Advisor

mount: No such device or address

In HP-UX 11i, I have two vg /dev/vgdb1 and /dev/vgdb2
Now I lost /dev/vgdb1
# vgdisplay -v /dev/vgdb1
vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "/dev/vgdb1".
# vgchange -a y vg01
vgchange: Volume group "/dev/vg01" does not exist in the "/etc/lvmtab" file.
# vgchange -a y vgdb1
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c20t0d0":
The path of the physical volume refers to a device that does not
exist, or is not configured into the kernel.
vgchange: Warning: couldn't query physical volume "/dev/dsk/c20t0d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query all of the physical volumes.
vgchange: Couldn't activate volume group "vgdb1":
Quorum not present, or some physical volume(s) are missing.

#


Please assist.

Thank you!!!
17 REPLIES 17
Michal Kapalka (mikap)
Honored Contributor

Re: mount: No such device or address

hi,

what exactly mean "Now I lost /dev/vgdb1"

you could send vgdisplay -v output.

mikap
R.K. #
Honored Contributor

Re: mount: No such device or address

HI ..

# vgchange -a y -q n /dev/vgdb1
then try..
# vgdisplay -v /dev/vgdb1

Some disks are not responding it seems.
Don't fix what ain't broke
Basheer_2
Trusted Contributor

Re: mount: No such device or address

Hey Lawrence,

what does strings /etc/lvmtab return
(do you see vgs listed there)

if it has pvs for that vg, do
pvdisplay -v pv-name.

is it a serviceguard cluster.
Bill Hassell
Honored Contributor

Re: mount: No such device or address

> vgchange: Warning: couldn't query physical volume "/dev/dsk/c20t0d0"

This is a typical error for a disk failure. The vgchange command tries to read the LVM information from the beginning of the disk but the disk does not respond. It looks like a disk failure. You can try to read the disk with dd but I suspect you'll get a similar error:

dd if=/dev/rdskc20t0d0 of=/dev/null bs=1024 count=10

If dd works, then the LVM information may have been erased. You can try vgcfgrestore to put the LVM information back on the disk. However, more than just the LVM data may have been destroyed so the disk may be joined into the VG but rest of the data is not usable.

Also check /var/adm/syslog/syslog.log for disk error messages.


Bill Hassell, sysadmin
LawrenceLow
Advisor

Re: mount: No such device or address

Hi Mikap,

I mean /dev/vgdb1 is missing.

# vgdisplay -v
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 16
Open LV 16
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4350
VGDA 4
PE Size (Mbytes) 8
Total PE 8680
Alloc PE 8670
Free PE 10
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 304
Current LE 38
Allocated PE 76
Used PV 2

LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 6144
Current LE 768
Allocated PE 1536
Used PV 2

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

LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 304
Current LE 38
Allocated PE 76
Used PV 2

LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 3000
Current LE 375
Allocated PE 750
Used PV 2

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

LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 3000
Current LE 375
Allocated PE 750
Used PV 2

LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 6000
Current LE 750
Allocated PE 1500
Used PV 2

LV Name /dev/vg00/lvol9
LV Status available/syncd
LV Size (Mbytes) 2000
Current LE 250
Allocated PE 500
Used PV 2

LV Name /dev/vg00/lvol10
LV Status available/syncd
LV Size (Mbytes) 2904
Current LE 363
Allocated PE 726
Used PV 2

LV Name /dev/vg00/lvol11
LV Status available/syncd
LV Size (Mbytes) 2000
Current LE 250
Allocated PE 500
Used PV 2

LV Name /dev/vg00/lvol12
LV Status available/syncd
LV Size (Mbytes) 2000
Current LE 250
Allocated PE 500
Used PV 2

LV Name /dev/vg00/lvol13
LV Status available/syncd
LV Size (Mbytes) 2000
Current LE 250
Allocated PE 500
Used PV 2

LV Name /dev/vg00/lvol14
LV Status available/syncd
LV Size (Mbytes) 1000
Current LE 125
Allocated PE 250
Used PV 2

LV Name /dev/vg00/lvol15
LV Status available/syncd
LV Size (Mbytes) 1000
Current LE 125
Allocated PE 250
Used PV 2

LV Name /dev/vg00/lvol16
LV Status available/syncd
LV Size (Mbytes) 2000
Current LE 250
Allocated PE 500
Used PV 2


--- Physical volumes ---
PV Name /dev/dsk/c0t6d0
PV Status available
Total PE 4340
Free PE 5
Autoswitch On
Proactive Polling On

PV Name /dev/dsk/c3t6d0
PV Status available
Total PE 4340
Free PE 5
Autoswitch On
Proactive Polling On

#
LawrenceLow
Advisor

Re: mount: No such device or address

Hi R.K,

Output as below:-

# vgchange -a y -q n /dev/vgdb1
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c20t0d0":
The path of the physical volume refers to a device that does not
exist, or is not configured into the kernel.
vgchange: Warning: couldn't query physical volume "/dev/dsk/c20t0d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query all of the physical volumes.
vgchange: Couldn't activate volume group "/dev/vgdb1":
Quorum not present, or some physical volume(s) are missing.

# vgdisplay -v /dev/vgdb1
vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "/dev/vgdb1".
#
SoorajCleris
Honored Contributor

Re: mount: No such device or address

Hi

Please post the below

1. #strings /etc/lvmtab
2. #ioscan -funC disk
3. #ioscan -fnC disk
4. #diskinfo dev/rdsk/c20t0d0

Regards,
Sooraj

"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
R.K. #
Honored Contributor

Re: mount: No such device or address

Hi Lawrence,

Was there any changes made to the server after which this issue started?
Is this the only VG that is affected or any other VG facing similar issue (eg. vg01)?

Run vgscan in preview mode and compare it with existing lvmtab.
# vgscan -pav

Also,
# pvdisplay -v dev/dsk/c20t0d0
and see what VG and lvols are part of this disk. It should have vgdb1.

Don't fix what ain't broke
LawrenceLow
Advisor

Re: mount: No such device or address

Hi Sooraj,

Output as below:-

# strings /etc/lvmtab
/dev/vg00
7|9+@k
/dev/dsk/c0t6d0
/dev/dsk/c3t6d0
/dev/vgdb1
7|9+C
/dev/dsk/c20t0d0
/dev/vgdb2
7|9+C
/dev/dsk/c20t0d1
/dev/vgdb3
7|9+C
/dev/dsk/c20t0d2
/dev/vgdb4
7|9+C
/dev/dsk/c20t0d3
/dev/vgdb6
7|9+J
/dev/dsk/c21t0d2
/dev/vgdb7
7|9+J
/dev/dsk/c21t0d3
/dev/vgdb8
7|9+J
/dev/dsk/c21t0d4
/dev/vgdb5
7|9+J
/dev/dsk/c21t0d1


# ioscan -funC disk
Class I H/W Path Driver S/W State H/W Type Description
===========================================================================
disk 0 1/0/0/3/0.6.0 sdisk CLAIMED DEVICE HP 36.4GST336753LC
/dev/dsk/c0t6d0 /dev/rdsk/c0t6d0
disk 1 1/0/0/3/1.2.0 sdisk CLAIMED DEVICE HP DVD-ROM 305
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
disk 2 1/0/1/0/0/1/1.6.0 sdisk CLAIMED DEVICE HP 36.4GST336753LC
/dev/dsk/c3t6d0 /dev/rdsk/c3t6d0
disk 9 1/0/14/0/0.1.0.0.0.0.1 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c21t0d1 /dev/rdsk/c21t0d1
disk 11 1/0/14/0/0.1.0.0.0.0.2 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c21t0d2 /dev/rdsk/c21t0d2
disk 13 1/0/14/0/0.1.0.0.0.0.3 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c21t0d3 /dev/rdsk/c21t0d3
disk 15 1/0/14/0/0.1.0.0.0.0.4 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c21t0d4 /dev/rdsk/c21t0d4
disk 8 1/0/14/0/0.1.11.0.0.0.1 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c23t0d1 /dev/rdsk/c23t0d1
disk 10 1/0/14/0/0.1.11.0.0.0.2 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c23t0d2 /dev/rdsk/c23t0d2
disk 12 1/0/14/0/0.1.11.0.0.0.3 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c23t0d3 /dev/rdsk/c23t0d3
disk 14 1/0/14/0/0.1.11.0.0.0.4 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c23t0d4 /dev/rdsk/c23t0d4


# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
===========================================================================
disk 0 1/0/0/3/0.6.0 sdisk CLAIMED DEVICE HP 36.4GST336753LC
/dev/dsk/c0t6d0 /dev/rdsk/c0t6d0
disk 1 1/0/0/3/1.2.0 sdisk CLAIMED DEVICE HP DVD-ROM 305
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
disk 2 1/0/1/0/0/1/1.6.0 sdisk CLAIMED DEVICE HP 36.4GST336753LC
/dev/dsk/c3t6d0 /dev/rdsk/c3t6d0
disk 9 1/0/14/0/0.1.0.0.0.0.1 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c21t0d1 /dev/rdsk/c21t0d1
disk 11 1/0/14/0/0.1.0.0.0.0.2 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c21t0d2 /dev/rdsk/c21t0d2
disk 13 1/0/14/0/0.1.0.0.0.0.3 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c21t0d3 /dev/rdsk/c21t0d3
disk 15 1/0/14/0/0.1.0.0.0.0.4 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c21t0d4 /dev/rdsk/c21t0d4
disk 8 1/0/14/0/0.1.11.0.0.0.1 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c23t0d1 /dev/rdsk/c23t0d1
disk 10 1/0/14/0/0.1.11.0.0.0.2 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c23t0d2 /dev/rdsk/c23t0d2
disk 12 1/0/14/0/0.1.11.0.0.0.3 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c23t0d3 /dev/rdsk/c23t0d3
disk 14 1/0/14/0/0.1.11.0.0.0.4 sdisk CLAIMED DEVICE HP HSV300
/dev/dsk/c23t0d4 /dev/rdsk/c23t0d4



# diskinfo dev/rdsk/c20t0d0
diskinfo: can't open dev/rdsk/c20t0d0: No such device or address
#