- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Finding Alternate paths
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-28-2007 07:37 AM
03-28-2007 07:37 AM
Finding Alternate paths
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2007 07:42 AM
03-28-2007 07:42 AM
Re: Finding Alternate paths
c35t1d0
c38t1d0
You need to do an "ioscan -funC disk" and find the two hardware paths that connect to the same disk array, and then look at the device files. once you find your other device file you can vgextend. then you could use "vgdisplay -v" to show the alternate path.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2007 08:05 AM
03-28-2007 08:05 AM
Re: Finding Alternate paths
c35t0d4 = LUN 4
c35t1d2 = LUN 10
c35t5d2 = LUN 42
You get this by multiplying 8 by the t number and then adding the d number.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2007 08:09 AM
03-28-2007 08:09 AM
Re: Finding Alternate paths
Next ls -l /dev/vg03/group and note the minor device number (e.g. 0x030000) using /dev/vg03 as an example.
vgexport -s -m /tmp/vg03.map -v /dev/vg03.
Next recreate your /dev/vg03 direcory and group file.
mkdir /dev/vg03
mknod /dev/vg03/group c 64 0x030000
vgimport -m /tmp/vg03.map -s -v /dev/vg03
This should pick up all your primary and alternate links.
You then vgchange -a y /dev/vg03 and mount your filesystems and restart your applications.
The only downside to this method is that if you wish to intentionally alternate primary and alternate links of the various PV's that comprise your VG's to better spread i/o, then you should use vgreduce to remove a primary path (making an alternate the primary) and using vgextend to add the path back as an alternate. This can safely be done "on the fly" while your applications are running.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2007 03:31 PM
03-28-2007 03:31 PM
Re: Finding Alternate paths
For quick and dirty use only;
I would put the command into a set of for statements.
for DISK in `ls /dev/rdsk/c* | grep -v
do
for GROUP in `ls /dev/vg* | grep -v
do
vgextend /dev/${GROUP} /dev/rdsk/${DISK}
done
done 2>&1 > /var/tmp/output.all
This will run through the entire list of disks and volume groups adding any disks you don't specifically exclude. When you are done, you can go about cleaning up.
This works pretty well, when you don't leave a lot of un-used disks on your system. If you do have them, you should exclude them in the beginning, or look for those devices that have no LV extents associated and remove them from their respective VG.
You can then vgreduce the primaries and re-vgextend them, in order to shift the IO between paths (somewhat).
Note: It generates errors for every disk it cannot successfully add to a volume group, so I try to re-direct them to a file.
I am not saying this is a good practice, but it does generally work pretty well.