1833749 Members
2811 Online
110063 Solutions
New Discussion

storage

 
SOLVED
Go to solution
Nath_3
Frequent Advisor

storage

Hi All,

I would like to know if there is a command to check that a lun in particular frame is not being used (not PVcreated).

Thanks


6 REPLIES 6
Hasan  Atasoy
Honored Contributor
Solution

Re: storage

hi nath ,

it is very hard to know a disk is being used or not since thee is a lot of way of using the disk in the system

a.) lvm ; pvdisplay /dev/rdsk/cxtydz or strings /etc/lvmtab
b.) vxvm ; vxdisk list
c.) direct disk usage without lsm or vxvm ; bdf
d.) asm ; you have to look from oracle side.

Hasan
Nath_3
Frequent Advisor

Re: storage

Thanks
Johnson Punniyalingam
Honored Contributor

Re: storage

run following commands.


ioscan -funCdisk|grep dsk|awk '{print $1}'|xargs -i pvdisplay {}


if there is any PV which is not associated with any VG it give error for that PV ptherwise shows information like :

--- Physical volumes ---
PV Name /dev/dsk/c3t15d0
VG Name /dev/vg01
PV Status available
Allocatable yes
VGDA 2
Cur LV 2
PE Size (Mbytes) 4
Total PE 8681
Free PE 0
Allocated PE 8681
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
Jeeshan
Honored Contributor

Re: storage

not pvdisplay to rdsk files

check with this command

#pvdisplay /dev/dsk/cxtydz
a warrior never quits
Emil Velez
Honored Contributor

Re: storage

vxdisk -o alldgs list

will show you disks that are used by vxvm and LVM

VK2COT
Honored Contributor

Re: storage

Hello,

You already got some responses with
useful information.

As you can see, there is no simple
way to do it with standard HP-UX.

However, there is a nice internal HP tool
called dskinfo (current version 1.03).

I am not sure if it will be released as
part of HP-UX in t he future. Currently,
it is one of support tools for HP staff.

Here is part of its report on HP-UX 11.31
server:

Disk check summary (dir "/dev/rdisk"):

device type model lba EFI FAT LIF LVM HFS VxVM VxFS
disk3 DISK ST373454LC 71687369 X _ _ _ _ _ _
disk3_p1 DISK ST373454LC 511968 _ X _ _ _ _ _
disk3_p2 DISK ST373454LC 70765568 _ _ X X _ _ _
disk3_p3 DISK ST373454LC 409600 _ X _ _ _ _ _
disk4 CDROM DVD+RW ND-2100A 0 _ _ _ _ _ _ _
disk5 DISK ST373454LC 71687369 _ _ _ X _ _ _
disk8 DISK ST373454LC 71687369 _ _ _ X _ _ _
disk9 DISK ST373454LC 71687369 X _ _ _ _ _ _
disk9_p1 DISK ST373454LC 511968 _ X _ _ _ _ _
disk9_p2 DISK ST373454LC 70765568 _ _ X X _ _ _
disk9_p3 DISK ST373454LC 409600 _ X _ _ _ _ _

Cheers,

VK2COT
VK2COT - Dusan Baljevic