Operating System - HP-UX
1849261 Members
5662 Online
104042 Solutions
New Discussion

qustion:#xd /dev/dsk/c2t6d0 and #xd /dev/rdsk/c2t6d0 the two outputs are different??

 
小马哥_1
Contributor

qustion:#xd /dev/dsk/c2t6d0 and #xd /dev/rdsk/c2t6d0 the two outputs are different??

qustion:#xd /dev/dsk/c2t6d0 and #xd /dev/rdsk/c2t6d0 the two outputs are different??


hp-ux b11.23

#xd /dev/dsk/c2t6d0 and #xd /dev/rdsk/c2t6d0

I find the two outputs are different

So I don't know why different?
3 REPLIES 3
Pete Randall
Outstanding Contributor

Re: qustion:#xd /dev/dsk/c2t6d0 and #xd /dev/rdsk/c2t6d0 the two outputs are different??

Because you're looking at buffered and un-buffered devices, though I have no idea why you would want to do a "xd" on a disk.


Pete

Pete
小马哥_1
Contributor

Re: qustion:#xd /dev/dsk/c2t6d0 and #xd /dev/rdsk/c2t6d0 the two outputs are different??

I hope to view vgid and pvid directly
VK2COT
Honored Contributor

Re: qustion:#xd /dev/dsk/c2t6d0 and #xd /dev/rdsk/c2t6d0 the two outputs are different??

Hello,

Yes, it can be done easily. In fact, I run
six different checks via xd(1) in my script:

http://www.circlingcycle.com.au/Unix-sources/HP-UX-check-OAT.pl.txt

Here is an example for a disk on a SuperDome
(SD32A) running HP-UX 11.23:

INFO PV /dev/dsk/c2t8d0 has LVM header
PASS PV /dev/dsk/c2t8d0 available
INFO PV /dev/dsk/c2t8d0 queue depth
immediate_report = 0; queue_depth = 8
PASS PV /dev/dsk/c2t8d0 defined in LVM (/etc/lvmtab)
INFO PV /dev/dsk/c2t8d0 has PVID 1cfeac9346d39d4e
INFO PV /dev/dsk/c2t8d0 is in volume group VGID 1cfeac9346d39d4e
INFO PV /dev/dsk/c2t8d0 key
0000000 0
0000002

And here is an example for a disk on
RX2620 running HP-UX 11.31:

INFO PV /dev/dsk/c2t1d0 has EFI GUID partition table header
INFO PV /dev/dsk/c2t1d0s1 has EFI FAT32 header
INFO PV /dev/dsk/c2t1d0s2 has LVM header
INFO PV /dev/dsk/c2t1d0s3 has EFI FAT32 header
PASS PV /dev/disk/disk4_p2 defined in LVM (/etc/lvmtab)
INFO PV /dev/disk/disk4_p2 has PVID 9e2b97f7473079f9
INFO PV /dev/disk/disk4_p2 is in volume group VGID 9e2b97f7473079f9
INFO PV /dev/disk/disk4_p2 key
0000000 0
0000002

Cheers,

VK2COT
VK2COT - Dusan Baljevic