Sponsored Content
Full Discussion: Is my XIV device open?
Operating Systems AIX Is my XIV device open? Post 303043038 by trifo75 on Thursday 16th of January 2020 05:04:34 AM
Old 01-16-2020
Hi zxmaus,

Well, the problematic environement is some old AIX versiond (AIX 5.3) Any newer systems (from AIX6.1 and up) there is the
Code:
lsmpio

command, which can be asked to tell if a path is in open or closed state. Older systems do not have this. For MPIO, we used SDDPCM back then, but it did not support XIV storages, thus XIV LUNs needed theyr own driver.

The SDDPCM is able to report open/close states, as in the next example:
Code:
# pcmpath query device 15

DEV#:  15  DEVICE NAME: hdisk15  TYPE: 2107900  ALGORITHM:  Load Balance
SERIAL: 75AT241003F
===========================================================================
Path#      Adapter/Path Name          State     Mode     Select     Errors
    0           fscsi1/path1          CLOSE   NORMAL        141          0
    1           fscsi0/path0          CLOSE   NORMAL        131          0
# pcmpath query device 44

DEV#:  44  DEVICE NAME: hdisk44  TYPE: 2107900  ALGORITHM:  Load Balance
SERIAL: 75AT2410114
===========================================================================
Path#      Adapter/Path Name          State     Mode     Select     Errors
    0           fscsi0/path0           OPEN   NORMAL   14375551          0
    1           fscsi1/path1           OPEN   NORMAL   14377624          0

XIV tools do not provide this info.
Code:
xiv_devlist -o device,multipath

only tells if paths are in Available state, or not (defined, missing, failed...) But that info is not enough to tell if the hdisk can be removed or not.

Well, there are hundreds of LUN-s and I would need an automated way to report unused disks.

Now, let's see the above 2 hdisks in your way:

Code:
# lqueryvg -At -p hdisk15
0516-304 lqueryvg: Unable to find device id hdisk15 in the Device
        Configuration Database.
0516-066 lqueryvg: Physical volume is not a volume group member.
        Check the physical volume name specified.
#
# lqueryvg -At -p hdisk44
0516-304 lqueryvg: Unable to find device id hdisk44 in the Device
        Configuration Database.
0516-1339 lqueryvg: Physical volume contains some 3rd party volume group.

The latter is reporting that the disk is managed by a 3rd party VG - in this case GPFS. But there is no output if the disk is idle or is actually opened by GPFS daemons.

Let's see the readvgda version:
Code:
# readvgda /dev/hdisk15
WARNING, invalid LVM record (no _LVM tag)!
WARNING, invalid PV number (0) in the LVM record!
WARNING, invalid PP size (0) in the LVM record!
*****************************************
LVMREC at block 7
*****************************************
lvmid:       0 (0)
vgid:     00000000000000000000000000000000
lvmarea_len: 0
vgda_len:    0
vgda_psn[0]: 0
vgda_psn[1]: 0
reloc_psn:   0
pv_num:      0
pp_size:     0
vgsa_len:    0
vgsa_psn[0]: 0
vgsa_psn[1]: 0
version:     0
vg_type:     0
ltg_shift:   0(128K)

*=============== 1ST VGDA-VGSA: /dev/hdisk15 ===============*

*****************************************
VGSA at block 0
*****************************************
*****************************************
vgsa beg: timestamp 0 (0), 0 (0)
vgsa beg: timestamp Thu Jan  1 01:00:00 NFT:1970
vgsa.pv_missing:        0
vgsa.factor:    0
vgsa.pad2:      0 0 0
vgsa end: timestamp 0 (0), 0 (0)
vgsa end: timestamp Thu Jan  1 01:00:00 NFT:1970
*****************************************
VGDA at block 0
*****************************************
*****************************************
vgh.vg_id:    00000000000000000000000000000000
vgh.numlvs:      0
vgh.maxlvs:      0
vgh.pp_size:     0
vgh.numpvs:      0
vgh.total_vgdas: 0
vgh.vgda_size:   0
vgh.quorum:      0
vgh.auto_varyon: 0
vgh.check_sum:   0
vgh.snapshotvg:  0
vgh.snapshot_copy: 0
vgh.primary_vgid: 00000000000000000000000000000000
vgh.seconadary_vgid: 00000000000000000000000000000000
vgda hdr: timestamp 0 (0), 0 (0)
vgda hdr: timestamp Thu Jan  1 01:00:00 NFT:1970
vgda size read is from vgh is < 0 assuming vgda_size = SML_VGDA_LEN
*****************************************
vgt.concurrency:        0
vgda trl: timestamp 0 (0), 0 (0)
vgda trl: timestamp Thu Jan  1 01:00:00 NFT:1970


# readvgda /dev/hdisk43
WARNING, invalid PV number (0) in the LVM record!
WARNING, invalid PP size (0) in the LVM record!
*****************************************
LVMREC at block 7
*****************************************
lvmid:       1598838349 (5f4c564d)
vgid:     00007d0100007d0100007d0100007d01
lvmarea_len: 0
vgda_len:    0
vgda_psn[0]: 0
vgda_psn[1]: 0
reloc_psn:   0
pv_num:      0
pp_size:     0
vgsa_len:    0
vgsa_psn[0]: 0
vgsa_psn[1]: 0
version:     32001
vg_type:     0
ltg_shift:   0(128K)

*=============== 1ST VGDA-VGSA: /dev/hdisk43 ===============*

*****************************************
VGSA at block 0
*****************************************
*****************************************
vgsa beg: timestamp 0 (0), 0 (0)
vgsa beg: timestamp Thu Jan  1 01:00:00 NFT:1970
vgsa.pv_missing:        0
vgsa.factor:    0
vgsa.pad2:      0 0 0
vgsa end: timestamp 0 (0), 0 (0)
vgsa end: timestamp Thu Jan  1 01:00:00 NFT:1970
*****************************************
VGDA at block 0
*****************************************
*****************************************
vgh.vg_id:    00000000000000000000000000000000
vgh.numlvs:      0
vgh.maxlvs:      0
vgh.pp_size:     0
vgh.numpvs:      0
vgh.total_vgdas: 0
vgh.vgda_size:   0
vgh.quorum:      0
vgh.auto_varyon: 0
vgh.check_sum:   0
vgh.snapshotvg:  0
vgh.snapshot_copy: 0
vgh.primary_vgid: 00000000000000000000000000000000
vgh.seconadary_vgid: 00000000000000000000000000000000
vgda hdr: timestamp 0 (0), 0 (0)
vgda hdr: timestamp Thu Jan  1 01:00:00 NFT:1970
vgda size read is from vgh is < 0 assuming vgda_size = SML_VGDA_LEN
*****************************************
vgt.concurrency:        0
vgda trl: timestamp 0 (0), 0 (0)
vgda trl: timestamp Thu Jan  1 01:00:00 NFT:1970

It seems thad readvgda just tryed it's best to read what might be a VGDA block on the disks, but there is obviously no relevant info. I can not see relevant difference between the outputs from 'in use' and 'not in use' disks. Am I correct this way?

--Trifo
 

9 More Discussions You Might Find Interesting

1. Solaris

ERROR: Can't open boot-device

Hi i need help pls ... Server type sun fire 3800 I need to install solaris 9 . When i boot the system i recieve the following : System Controller 'sunfire3800': Type 0 for Platform Shell Type 1 for domain A console Type 2 for domain B console Type 3 for... (5 Replies)
Discussion started by: tt155
5 Replies

2. Solaris

Can't open boot device

I have a real emergency. I have a Sun Fire V240 UltraSparc server and am connected via the Serial Mgmnt Port with a Laptop. I have been building an Oracle database on it for the past couple months, not getting very far along with it , when suddenly, the system had a fatal crash. I've lost the... (2 Replies)
Discussion started by: mayewil
2 Replies

3. Solaris

"Can't open boot device" error !!

I've a Sun V440 machine, and it's running solaris 10 .. for some reason i need to install a fresh copy of solaris 10. for that i've prepared solaris 10 dvd but surprisingly i found there is no any dvd rom on this machine, so i've took a dvd rom from a V240 machine and inserted on V440. after... (3 Replies)
Discussion started by: Anti_Evil
3 Replies

4. Solaris

Solaris with Soft Errors in XIV

Hi guys, I had a solaris box, with veritas controled disk. 1 disc is showing soft errors, how can I repair the soft errors? Please help. Cheers; (4 Replies)
Discussion started by: Mujakol
4 Replies

5. Red Hat

Unable To Activate Ethernet Network Device in RHEL 5.5 - e100 device eth0 does not seem to be presen

Hi All, Could anyone please help to resolve the below problem. I installed RHEL5.5 in my desktop.But when i try to activate the ethernet connection then it gives me the error. I spent 2 days for the above and go through with several suggestion found by googling. But no luck. ... (0 Replies)
Discussion started by: Tanmoy
0 Replies

6. AIX

Unable to varyonvg after copy vg from XIV

Hi all, I am not sure whether anyone of you using XIV to copy vg from one host to another. After I managed to copy all the respective vg over to destination vg, and map all vg to destination and when come to varyonvg, I got the following error 0516-510 varyonvg: Physical volume not found for... (2 Replies)
Discussion started by: ckwan
2 Replies

7. Solaris

Can't open boot device

I installed a new hard drive completely blank. sun blade 150 openboot 4.10.6 message: Boot device: disk:a File and args: Bad magic number in disk label Can't open label package Evaluating: Can't open boot device (15 Replies)
Discussion started by: janiper
15 Replies

8. Solaris

Can't open boot device..

Hello Forum, I'm really in a fix now, I'm getting this error message now, seems like the boot block is damaged? When I do probe-all the system freezes... Can any one guide me as what to do next? System is Solaris 8 running Open Boot PROM 4 System also does not have a cd/dvd rom drive... ... (17 Replies)
Discussion started by: br1an
17 Replies

9. HP-UX

Failed to open tape device /dev/rmt/0mn:Device busy (errno = 16)

Hi, Unable to make tape backup, please help. /opt/ignite/bin/make_tape_recovery -a /dev/rmt/?mn -I -v -m tar -x inc_entire=vg00 * Creating local directories for configuration files and archive. ======= 04/25/16 16:28:08 IST Started /opt/ignite/bin/make_tape_recovery. (Mon... (4 Replies)
Discussion started by: anuragr
4 Replies
All times are GMT -4. The time now is 09:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy