How can I map hdisk# to rhdisk#?


 
Thread Tools Search this Thread
Operating Systems AIX How can I map hdisk# to rhdisk#?
# 1  
Old 10-01-2016
How can I map hdisk# to rhdisk#?

Some storage/disks have been added to an existing AIX 6.1 server. The admin sent me the list of hdisk#'s for the new disks, but I need the corresponding rhdisk# for the same hdisk. (I know from past experience that the rhdisk that maps to an hdisk is not always the same number. For instance, there is an hdisk14 and an rhdisk14, but they are not the same).
I am installing Oracle Grid software and it requires the specific rhdisk#'s in order to create the disk groups.
# 2  
Old 10-03-2016
You might find what you want with a combination of lscfg -vl hdisk14 & lsattr -El hdisk14 and comparing them to the output for the rhdisk device. There will be a serial number to confirm which it is, but sadly I do not have access to any AIX servers any more.


Can you post some output? I think the value you want from lscfg will be marked as Z1, but it's only a vague memory.



I hope that this helps,
Robin
# 3  
Old 10-03-2016
No output for rhdisk

Thanks for the reply Robin. I get plenty of output when I run the commands for hdisk14 but none for rhdisk14.
Code:
hostname[]:/dev> ls -l *disk14
brw-------    1 oracle   dba          13, 13 Sep 21 14:24 hdisk14
crw-------    1 oracle   dba          13, 13 Sep 21 14:24 rhdisk14

hostname[]:/dev> lscfg -vl hdisk14
  hdisk14          U8408.E8E.215A4DW-V9-C25-T1-W500507680110C327-LC000000000000  MPIO FC 2145

        Manufacturer................IBM
        Machine Type and Model......2145
        ROS Level and ID............0000
        Device Specific.(Z0)........0000063268181002
        Device Specific.(Z1)........0200602
        Serial Number...............60050768018085F2880000000000098F

hostname[]:/dev> lsattr -El hdisk14
PCM             PCM/friend/sddpcm                                   PCM                                     True
PR_key_value    none                                                Reserve Key                             True
algorithm       load_balance                                        Algorithm                               True
clr_q           no                                                  Device CLEARS its Queue on error        True
dist_err_pcnt   0                                                   Distributed Error Percentage            True
dist_tw_width   50                                                  Distributed Error Sample Time           True
flashcpy_tgtvol no                                                  Flashcopy Target Lun                    False
hcheck_interval 60                                                  Health Check Interval                   True
hcheck_mode     nonactive                                           Health Check Mode                       True
location                                                            Location Label                          True
lun_id          0xc000000000000                                     Logical Unit Number ID                  False
lun_reset_spt   yes                                                 Support SCSI LUN reset                  True
max_coalesce    0x40000                                             Maximum COALESCE size                   True
max_transfer    0x40000                                             Maximum TRANSFER Size                   True
node_name       0x500507680100c327                                  FC Node Name                            False
pvid            none                                                Physical volume identifier              False
q_err           yes                                                 Use QERR bit                            True
q_type          simple                                              Queuing TYPE                            True
qfull_dly       2                                                   delay in seconds for SCSI TASK SET FULL True
queue_depth     20                                                  Queue DEPTH                             True
recoverDEDpath  no                                                  Recover DED Failed Path                 True
reserve_policy  no_reserve                                          Reserve Policy                          True
retry_timeout   120                                                 Retry Timeout                           True
rw_timeout      60                                                  READ/WRITE time out value               True
scbsy_dly       20                                                  delay in seconds for SCSI BUSY          True
scsi_id         0x26c00                                             SCSI ID                                 False
start_timeout   180                                                 START unit time out value               True
timeout_policy  fail_path                                           Timeout Policy                          True
unique_id       3321360050768018085F2880000000000098F04214503IBMfcp Device Unique Identification            False
ww_name         0x500507680110c327                                  FC World Wide Name                      False

hostname[]:/dev> lscfg -vl rhdisk14
lscfg: device rhdisk14 not found.
hostname[]:/dev> lsattr -El rhdisk14
lsattr: 0514-519 The following device was not found in the customized
        device configuration database:
        rhdisk14




Moderator's Comments:
Mod Comment Please use CODE tags as required by forum rules!

Last edited by RudiC; 10-03-2016 at 11:39 AM.. Reason: Added CODE tags.
# 4  
Old 10-04-2016
Then you also have the directory listing that you show us above. The device major & minor node match in your display (major=13, minor=13) and these should be unique to your device.

Have you got a longer listing of /dev/*hdisk* that we can work through?



Robin
# 5  
Old 10-04-2016
I think it is much easier than that: simply compare the major and minor numbers, because these will match for device files pointing to the same (quasi-physical) device.

I hope this helps.

bakunin
# 6  
Old 10-06-2016
Check for the "rdisk" with same "Major, Minor" number in "/dev" directory using "ls -l

Sent from my Le X507 using Tapatalk
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Fetching hdisk sequence

Hi, Planning to implement script to fetch whether the hdisks are in proper sequence. Need output for incorrect sequence Correct #lspv hdisk0 hdisk1 hdisk2 :::::::::::: hdisk5 Incorrect sequence #lspv hdisk0 hdisk6 hdisk7 hdisk10 Any idea pls share (2 Replies)
Discussion started by: ksgnathan
2 Replies

2. AIX

Quorum and hdisk issue

Hi. I found an issue with my appvg present in my server.my server is a single node and not part of hacmp. pmut3# lspv hdisk0 00c5c9cf92ebb96a rootvg active hdisk1 00c5c9cfcf30eee9 appvg hdisk2 00c5c9cfcf30ef98 ... (5 Replies)
Discussion started by: newtoaixos
5 Replies

3. AIX

Difference between /dev/hdisk and /dev/rhdisk

Hi, How can i check that i am using RAW devices for storage in my AIX machine... Also after adding a LUN from storage to a aix host, when i check /dev in the host, i can see both rhdisk and hdisk with same number eg: dcback1(root):/dev>ls -lrt | grep disk12 crw------- 1 root ... (4 Replies)
Discussion started by: jibujacob
4 Replies

4. AIX

Find hdisk# based on LV name

I know the lv name (i.e. dprod_0000017). #lslv dprod_0000017 LOGICAL VOLUME: dprod_0000017 VOLUME GROUP: prod01vg LV IDENTIFIER: 00cb337d00004c0000000111d8566a5a.69 PERMISSION: read/write VG STATE: active/complete LV STATE: opened/syncd TYPE: ... (2 Replies)
Discussion started by: Daniel Gate
2 Replies

5. AIX

Flashcopy, ghost hdisk ??

Hi all, I'm getting some errors on AIX regarding Flashcopy and volume group hard disks. The script that activates flashcopy showed this errors: Recreating Flashcopy for lun01_A1 Performing syntax check... Syntax check complete. Executing script... Script execution complete. SMcli... (1 Reply)
Discussion started by: enux
1 Replies

6. AIX

Dummy hdisk in AIX 6.1

How do you create a dummy hdisk with AIX 6.1? In previous versions, I've used this and works, but now I get this error. hostname:/:# mkdev -l hdisk57 -c disk -t osdisk -s scsi -p fscsi0 -w 0,10 -d Method error (/etc/methods/define): 0514-022 The specified connection is not valid. Any... (2 Replies)
Discussion started by: kah00na
2 Replies

7. AIX

load_balance or round_robin on hdisk

Hi, in an environment with svc's and ds8xxx wat disk algorithm should be used and what is the difference here: I can set the algorithm to Load_balance and to Round_robin (see output below). some info: hdisk3 ******** MPIO FC 2145 devices.sddpcm.53.rte 2.2.0.0 COMMITTED ... (1 Reply)
Discussion started by: raba
1 Replies

8. AIX

VPATHS and HDisk/not able to add to NR-VG

When I list the PV's using lspv i see both vpath and hdisk names being listed. I got the info that each vpath is configured for 4 hdisks. Problem is I am not able to add either the hard disks in vpath to the existing non-rootvg. ? need to know the basics of vpath .. (4 Replies)
Discussion started by: nivaspIND
4 Replies

9. AIX

vpath to an hdisk

Is there a simply way for me to map a vpath to an hdisk on AIX 5.2? (5 Replies)
Discussion started by: 2dumb
5 Replies

10. UNIX for Advanced & Expert Users

AIX hdisk error

Does anyone have an idea what this means? hdisk10 is part of vg1. (vg1 has 11 hdisks) I get this msg every morning @ 5:04 CST This is the orignal message: A PROBLEM WAS DETECTED ON Fri Aug 17 03:02:09 PDT 2001 801014 The Service Request Number(s)/Probable Cause or... (2 Replies)
Discussion started by: Optimus_P
2 Replies
Login or Register to Ask a Question