- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Question: How do you determine the device file map...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 01:42 PM
03-14-2002 01:42 PM
jack...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 02:12 PM
03-14-2002 02:12 PM
SolutionWhen you mention active, I assume that you mean
MC/SG. You can do a vgexport -s -p -m mapfile vg that adds the array_id to the mapfile. Vgimport -s then looks for devices with that array id.
The bad new using that method is that you are going to cause you imported VG to use only the primary path. If you want to split I/O across both external paths then you need to do a little more work.
Bear in mind that on both hosts the SCSI ID and LUN will remain the same. Therefore, you already know the tYdZ part of the devive node. You need to know the cX part. Do an ioscan -fn to locate the SCSI controller with your 12H attached. Just above it, there should be an 'ext_bus' list under 'Class'; look for the matching Instance Number (the 'I' column) and that value becomes you controller part (the cX) of /dev/dsk/cXtYdZ or /dev/rdsk/cXtYdZ.
If you want to actually import to take advantage of both external path, the attached document explains it pretty well.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 02:12 PM
03-14-2002 02:12 PM
Re: Question: How do you determine the device file mappings with two systems share the same AUTORAID.
Hmmm, quite difficult! OK, run ioscan -fnCdisk on both systems, then arraydsp -a
Hope this helps a bit, CU
RGDS, Holger
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2002 09:26 AM
03-15-2002 09:26 AM
Re: Question: How do you determine the device file mappings with two systems share the same AUTORAID.
I would like to be able to query the array where traceability is provided by showing which device files are associated with which LUNs. Doing a arraydsp -d /dev/rdsk/
It may be real simple, such as LUN 0 will correspond to last digit of the device file name whereas c6t2d0 corresponds to LUN 0 and c6t2d1 corresponds to LUN 1.
My company decided not to go the Service Guard route. We do have, however, two production disk arrays connected to two hosts. One acts as the primary and the second as the failover. The failover server is actually used as the failover server for two production hosts so the failover server is connected to two prodution disk arrays for different hosts. The init level and variable settings determine which server is to activate the production volume groups. For example, the first two device files on one host are c0t1d0 and c2t0d1. On the other host, they are c0t1d0 and c5t0d1.
I may have made things more confusing than necessary... oh well..
jack...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2002 09:51 AM
03-15-2002 09:51 AM
Re: Question: How do you determine the device file mappings with two systems share the same AUTORAID.
There can be at most 8 LUN's (0 thru 7) on an AutoRAID. This is a total value and not a 'per attached host' value.
The device node scheme is simple as well. /dev/rdsk/cXtYdZ (or /dev/dsk/cXtYdZ for the block devices) is decoded as follows.
The LUN number becomes the 'Z' part so that LUN
3 is d3. The AutoRAID controller SCSI ID is the 'Y' part. Let's say that your 'X' AutoRAID controller is SCSI ID 1 and that your 'Y' AutoRAID controller is SCSI ID 2. We now know the 'Z' parts for LUN 3.
t1d3 (primary path) and then t2d3 (alternate path). Both of these are paths to the same LUN.
The tricky part is the 'X' part and that is specific to each host. I'll try to explain this once more. On each host, do an ioscan -fn | lp. That will give you a hard-copy listing.
Locate any of the 12H disks (you should see C5447A associated with them). Now, look above them until you come to the first 'ext_bus' in 'Class' column. The instance 'I' number associated with this is your 'X' part. You should find the 'ext_bus' associated with both 12H controllers. Let's say those were 8 for the 12H 'X' controller and 9 for the 'Y' controller.
Finally, for LUN 3, SCSI ID's 1 and 2, controllers 8 and 9 we know all the values.
c8t1d3 (primary) and c9t2d3 (alternate) and again both of these refer to the same LUN (3).
There is no magic bullet here; you have to work. By the way, everything I said in my previous attachment still applies except for the cluster stuff (e.g. vgchange -c y).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2002 11:44 AM
03-15-2002 11:44 AM
Re: Question: How do you determine the device file mappings with two systems share the same AUTORAID.
As stated the vgexport "-s" (which must be used with the m,p and v options) records the vgid (not arrayid) from the volume group into the map file that is created. The vgid is stored on each pv (physical volume) that belongs to the volume group in the volume group reserve area (vgra). This is a reserved area at the beginning of the physical volume. When the volume group is vgexported this information remains in tact on the pv in the vgra. You then take the map file to the other server and use it to vgimport with the "-s" option. The system will then go out and attempt to read the vgra on all of the attached disks the system has access to. Those disks that have the correct vgid stored in the vgra (that matches the map file vgid) will then be imported into the volume group and the lvmtab updated accordingly.
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2002 12:58 PM
03-15-2002 12:58 PM