Operating System - HP-UX
1820215 Members
3700 Online
109620 Solutions
New Discussion юеВ

Re: pvdisplay -v /dev/dsk/c3t5d0-- error

 
jeevanandham
Frequent Advisor

pvdisplay -v /dev/dsk/c3t5d0-- error

Hi all i am trying to create a vg in hp ux 11i while doing ioscan -fnC disk
i am getting the following output..
disk 1 10/0/15/1.5.0 sdisk CLAIMED DEVICE QUANTUM ATLAS10KII-18LVD
/dev/rdsk/c3t5d0
disk 2 10/0/15/1.6.0 sdisk CLAIMED DEVICE SEAGATE ST118202LC
/dev/rdsk/c3t6d0
as i have two hdisk in my server the but /dev/dsk/c3t6d0 is not in cliamed state and pvdisplay -v /dev/dsk/c3t6d0 is also throwing error..
please help me to solve this ..

Thanks in advance
18 REPLIES 18
rariasn
Honored Contributor

Re: pvdisplay -v /dev/dsk/c3t5d0-- error

Hi,

Put "output" from next commands:

# lssf /dev/rdsk/c3t6d0

# diskinfo /dev/rdsk/c3t6d0

# pvdisplay /dev/dsk/c3t6d0

rgs,
jeevanandham
Frequent Advisor

Re: pvdisplay -v /dev/dsk/c3t5d0-- error

Please find the output for the followimgs


root@osshp13:/#lssf /dev/rdsk/c3t6d0
sdisk card instance 3 SCSI target 6 SCSI LUN 0 section 0 at address 10/0/15/1.6.0 /dev/rdsk/c3t6d0
root@osshp13:/#
root@osshp13:/#
root@osshp13:/#diskinfo /dev/rdsk/c3t6d0
SCSI describe of /dev/rdsk/c3t6d0:
vendor: SEAGATE
product id: ST118202LC
type: direct access
size: 17783240 Kbytes
bytes per sector: 512
root@osshp13:/#
root@osshp13:/#
root@osshp13:/#pvdisplay /dev/dsk/c3t6d0
pvdisplay: "/dev/dsk/c3t6d0": No such file or directory
Usage: pvdisplay
[-v]
[-b BlockList]
PhysicalVolumePath...

root@osshp13:/#










rariasn
Honored Contributor

Re: pvdisplay -v /dev/dsk/c3t5d0-- error

Hi,

# insf

# ll /dev/dsk/c3t6d0

rgs
jeevanandham
Frequent Advisor

Re: pvdisplay -v /dev/dsk/c3t5d0-- error

Hi ..


root@osshp13:/#
root@osshp13:/#insf
root@osshp13:/#
root@osshp13:/#
root@osshp13:/#ll /dev/dsk/c3t6d0
/dev/dsk/c3t6d0 not found
root@osshp13:/#
root@osshp13:/#
rariasn
Honored Contributor

Re: pvdisplay -v /dev/dsk/c3t5d0-- error

Hi,

# insf -e

# ll /dev/dsk/c3t6d0

rgs,
jeevanandham
Frequent Advisor

Re: pvdisplay -v /dev/dsk/c3t5d0-- error

Hi..
root@osshp13:/#
root@osshp13:/#insf -e
insf: Installing special files for btlan instance 0 address 10/0/12/0
insf: Installing special files for audio instance 0 address 10/0/13/0
insf: Installing special files for sdisk instance 0 address 10/0/14/0.0.0
insf: Installing special files for sctl instance 0 address 10/0/14/0.7.0
insf: Installing special files for asio0 instance 0 address 10/0/14/1/1
insf: Installing special files for asio0 instance 1 address 10/0/14/1/2
insf: Installing special files for SCentIf instance 1 address 10/0/14/1/3
insf: Installing special files for sioflop instance 0 address 10/0/14/1/4.1
insf: Installing special files for hub instance 0 address 10/0/14/2.1
insf: Installing special files for sctl instance 1 address 10/0/15/0.7.0
insf: Installing special files for sdisk instance 1 address 10/0/15/1.5.0
insf: Installing special files for sdisk instance 2 address 10/0/15/1.6.0
insf: Installing special files for sctl instance 2 address 10/0/15/1.7.0
insf: Installing special files for pseudo driver cn
insf: Installing special files for pseudo driver mm
insf: Installing special files for pseudo driver devkrs
insf: Installing special files for pseudo driver ptym
insf: Installing special files for pseudo driver ptys
insf: Installing special files for pseudo driver ip
insf: Installing special files for pseudo driver arp
insf: Installing special files for pseudo driver rawip
insf: Installing special files for pseudo driver tcp
insf: Installing special files for pseudo driver udp
insf: Installing special files for pseudo driver stcpmap
insf: Installing special files for pseudo driver nuls
insf: Installing special files for pseudo driver netqa
insf: Installing special files for pseudo driver dmem
insf: Installing special files for pseudo driver telm
insf: Installing special files for pseudo driver tels
insf: Installing special files for pseudo driver tlclts
insf: Installing special files for pseudo driver tlcots
insf: Installing special files for pseudo driver iomem
insf: Installing special files for pseudo driver tlcotsod
insf: Installing special files for pseudo driver dev_config
insf: Installing special files for pseudo driver strlog
insf: Installing special files for pseudo driver sad
insf: Installing special files for pseudo driver echo
insf: Installing special files for pseudo driver dlpi
insf: Installing special files for pseudo driver ptm
insf: Installing special files for pseudo driver pts
insf: Installing special files for pseudo driver beep
insf: Installing special files for pseudo driver framebuf
insf: Installing special files for pseudo driver diag1
insf: Installing special files for pseudo driver klog
insf: Installing special files for pseudo driver sy
insf: Installing special files for pseudo driver kepd
insf: Installing special files for pseudo driver diag2
insf: Installing special files for pseudo driver root
root@osshp13:/#ll /dev/dsk/c3t6d0
brw-r----- 1 bin sys 31 0x036000 Mar 11 15:32 /dev/dsk/c3t6d0
root@osshp13:/#
rariasn
Honored Contributor

Re: pvdisplay -v /dev/dsk/c3t5d0-- error

He,

man insf (option -e):

Reinstall the special files for pseudo-drivers and existing devices. This is useful for restoring special files if one or more have been removed.

# ioscan -fnC disk

Yoy can create the vg.

rgs,
jeevanandham
Frequent Advisor

Re: pvdisplay -v /dev/dsk/c3t5d0-- error

many thanks for your help but i getting some error still while creating vg , after creating vg also iam not able to view the vg details

please find the output

root@osshp13:/#vgcreate /dev/vg01 /dev/dsk/c3t6d0
Increased the number of physical extents per physical volume to 4341.
vgcreate: The physical volume "/dev/dsk/c3t6d0" is already recorded in the "/etc/lvmtab"
root@osshp13:/#
root@osshp13:/#
root@osshp13:/#
root@osshp13:/#vgdisplay -v
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4350
VGDA 2
PE Size (Mbytes) 4
Total PE 4340
Alloc PE 3196
Free PE 1144
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) 100
Current LE 25
Allocated PE 25
Used PV 1

LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 1280
Current LE 320
Allocated PE 320
Used PV 1

LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 200
Current LE 50
Allocated PE 50
Used PV 1

LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 752
Current LE 188
Allocated PE 188
Used PV 1

LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 200
Current LE 50
Allocated PE 50
Used PV 1

LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 1500
Current LE 375
Allocated PE 375
Used PV 1

LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 752
Current LE 188
Allocated PE 188
Used PV 1

LV Name /dev/vg00/sachin
LV Status available/syncd
LV Size (Mbytes) 8000
Current LE 2000
Allocated PE 2000
Used PV 1


--- Physical volumes ---
PV Name /dev/dsk/c3t5d0
PV Status available
Total PE 4340
Free PE 1144
Autoswitch On


vgdisplay: Illegal path "/dev".
vgdisplay: Cannot display volume group "/dev".
rariasn
Honored Contributor

Re: pvdisplay -v /dev/dsk/c3t5d0-- error

ok,

# vgdisplay -v vg00

jeevanandham
Frequent Advisor

Re: pvdisplay -v /dev/dsk/c3t5d0-- error

in lvmtab...

root@osshp13:/#strings /etc/lvmtab
/dev/vg00
/dev/dsk/c3t5d0
/dev ----?
/dev/dsk/c3t6d0----?
root@osshp13:/#
-----------------------------------------
root@osshp13:/#vgdisplay -v vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4350
VGDA 2
PE Size (Mbytes) 4
Total PE 4340
Alloc PE 3196
Free PE 1144
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) 100
Current LE 25
Allocated PE 25
Used PV 1

LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 1280
Current LE 320
Allocated PE 320
Used PV 1

LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 200
Current LE 50
Allocated PE 50
Used PV 1

LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 752
Current LE 188
Allocated PE 188
Used PV 1

LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 200
Current LE 50
Allocated PE 50
Used PV 1

LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 1500
Current LE 375
Allocated PE 375
Used PV 1

LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 752
Current LE 188
Allocated PE 188
Used PV 1

LV Name /dev/vg00/sachin
LV Status available/syncd
LV Size (Mbytes) 8000
Current LE 2000
Allocated PE 2000
Used PV 1


--- Physical volumes ---
PV Name /dev/dsk/c3t5d0
PV Status available
Total PE 4340
Free PE 1144
Autoswitch On


root@osshp13:/#

pls find the output above for pvdispaly -v vg00
rariasn
Honored Contributor

Re: pvdisplay -v /dev/dsk/c3t5d0-- error

Hi,



# pvcreate /dev/rdsk/c3t6d0

# mkdir /dev/vg01

# mknod /dev/vg01/group c 64 0x010000

# vgcreate /dev/vg01 /dev/dsk/c3t6d0

(man vgcreate)

rgs,

jeevanandham
Frequent Advisor

Re: pvdisplay -v /dev/dsk/c3t5d0-- error

Hi plesae find the steps what i have done

after PVcreate /dev/rdsk/c3t6d0

cd /dev
mkdir vg01

root@osshp13:/dev#cd vg01
root@osshp13:/dev/vg01#ll
total 0
root@osshp13:/dev/vg01#
root@osshp13:/dev/vg01#
root@osshp13:/dev/vg01#
root@osshp13:/dev/vg01#mknod group c 64 0x010000
root@osshp13:/dev/vg01#
root@osshp13:/dev/vg01#
root@osshp13:/dev/vg01#ll
total 0
crw-rw-rw- 1 root sys 64 0x010000 Mar 11 15:42 group
root@osshp13:/dev/vg01#
root@osshp13:/dev/vg01#
root@osshp13:/dev/vg01#cd
root@osshp13:/#
root@osshp13:/#
root@osshp13:/#
root@osshp13:/#vgcreate /dev/vg01 /dev/dsk/c3t6d0
Increased the number of physical extents per physical volume to 4341.
vgcreate: The physical volume "/dev/dsk/c3t6d0" is already recorded in the "/etc/lvmtab" file.
root@osshp13:/#

the /etc/lvmtab entry occurs before creating the vg01.. i need to delete the entry in lvmtab
jeevanandham
Frequent Advisor

Re: pvdisplay -v /dev/dsk/c3t5d0-- error

Hi thanks for your guideness and help
rariasn
Honored Contributor

Re: pvdisplay -v /dev/dsk/c3t5d0-- error

Use "vgscan" utility

man vgscan

# mv /etc/lvmtab /etc/lvmtab.org

# vgscan -a

rgs
jeevanandham
Frequent Advisor

Re: pvdisplay -v /dev/dsk/c3t5d0-- error

Hi pls find the output


root@osshp13:/dev#mv /etc/lvmtab /etc/lvmtab.org
root@osshp13:/dev#vgscan -a
Creating "/etc/lvmtab".

Pid 3765 received a SIGSEGV for stack growth failure.
Possible causes: insufficient memory or swap space,
or stack size exceeded maxssiz.

Pid 3765 received a SIGSEGV for stack growth failure.
Possible causes: insufficient memory or swap space,
or stack size exceeded maxssiz.
Couldn't stat physical volume "/dev/dsk/c0t0d0":
Invalid argument
Physical Volume "/dev/dsk/c3t6d0" is not part of a Volume Group


The Volume Group /dev was not matched with any Physical Volumes.
root@osshp13:/dev#

ya i have done its working


rariasn
Honored Contributor

Re: pvdisplay -v /dev/dsk/c3t5d0-- error

Sorry,

Call HP software support.

Thanks
jeevanandham
Frequent Advisor

Re: pvdisplay -v /dev/dsk/c3t5d0-- error

Hai rariasn,

you are great!

its done working fine created new vg
see the followings....


root@osshp13:/#
root@osshp13:/#pvcreate /dev/rdsk/c3t6d0
Physical volume "/dev/rdsk/c3t6d0" has been successfully created.
root@osshp13:/#
root@osshp13:/#
root@osshp13:/#cd /dev
root@osshp13:/dev#mkdir vg01
root@osshp13:/dev#cd vg01
root@osshp13:/dev/vg01#mknod group c 64 0x010000
root@osshp13:/dev/vg01#cd
root@osshp13:/#vgcreate /dev/vg01 /dev/dsk/c3t6d0
Increased the number of physical extents per physical volume to 4341.
Volume group "/dev/vg01" has been successfully created.
Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf
root@osshp13:/#vgdisplay
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4350
VGDA 2
PE Size (Mbytes) 4
Total PE 4340
Alloc PE 3196
Free PE 1144
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

VG Name /dev/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 0
Open LV 0
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4341
VGDA 2
PE Size (Mbytes) 4
Total PE 4340
Alloc PE 0
Free PE 4340
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

root@osshp13:/#


Thanks & Thanks a lot......


the issue has resolved...

everything is fine,... many thanks
jeevanandham
Frequent Advisor

Re: pvdisplay -v /dev/dsk/c3t5d0-- error

really great work by rariasn