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
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
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
2. AIX
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
3. AIX
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
4. AIX
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
5. AIX
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
6. AIX
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
7. AIX
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
8. AIX
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
9. AIX
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
10. Shell Programming and Scripting
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
clone(7) Miscellaneous Information Manual clone(7)
NAME
clone - opens a major and minor device pair on a STREAMS driver
DESCRIPTION
The driver is a "pass through" device driver that allows other drivers to select unique minor device numbers on each In effect, the driver
passes an open operation through to the other driver. This mechanism allows for multiple instantiations of a driver, each with a different
minor number, through a single device file.
When the driver is opened, it is passed a major and minor device number by the operating system. The major number is the driver's major
number (72), and the minor number is the major number of the driver the user wishes to clone (referred to here as the target driver). The
driver calls the open routine of the target driver with the flag which specifies a clone open. The target driver's open routine allocates
an unused minor number. The target driver must use to make a new device number for the newly created device, and must set to the new
device number returned by The new device number is returned to the open through The open then returns to the user a file descriptor that
points to the new instantiation of the target driver.
The driver is an example of a clonable driver.
Notes
It is not possible to do multiple opens of a device with the same major and minor number using the driver. This is because the driver is
only given the major number of the driver to be cloned, and that driver will then select a minor number which has not been opened.
When called with a pathname which corresponds to the clonable driver, will return different results than when it is called on a file
descriptor returned from of the same clonable driver pathname.
RETURN VALUES
If the driver is given an invalid minor number, or if the driver indicated is not a clonable driver, the fails and is set to [ENXIO].
SEE ALSO
open(2), fstat(2).
clone(7)