- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Hardware driver paths switching (Fiber Channel)
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
06-25-2002 03:46 AM
06-25-2002 03:46 AM
I need to know following
1. If there are two FC paths (like c3t0d1 and c4t0d1) between disk enclosure and server, one will be primary and other will be alternate link. How can I switch between these two paths.
2. How can I know which is the primary link and which is alternative link
3. How can I know link is working fine or not
I am using N-Class server with F10 disk enclosure connected with FC.
Thanks in advance.
Venki
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 03:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 03:56 AM
06-25-2002 03:56 AM
Re: Hardware driver paths switching (Fiber Channel)
1. To switch a LVM pvlink (alternate link). simply 'vgreduce' the primary link. The secondard link will be promoted to the primary (and only link). Then 'vgextend' the original primary link (device) making it the new secondary link.
2. The primary link will be the first device file in /etc/lvmtab whereas the secondary link will be listed after it. Another, easier way to deduce the primary and alternate links is to do:
# vgdisplay -v /dev/vgXX
In the listing of physical volumes, the alternate (secondary) link will be clearly designated.
3. LVM does not load balance I/O between primary and alternate links. You can test the viability of the alternate link by swithing the primary to the alternate.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 04:04 AM
06-25-2002 04:04 AM
Re: Hardware driver paths switching (Fiber Channel)
# vgreduce
# vgextend
or possible
pvchange -S y /dev/dsk/cXtYdZ, sets disk as primary
2 # pvdisplay /dev/dsk/CXtYdZ --shows if it is a primary of secondary OR
# vgdisplay -v
3 LVM does this for you. But
# ioscan -fnCdisk -- Check disk status & make sure it is CLAIMED
# pvdisplay /dev/dsk/CxTYdZ -- This checks if LVM sees disk
# diskinfo /dev/rdsk/cXtYdZ -- This shows if OS likes disk
# dd if=/dev/rdsk/cXtYdZ bs=64k count=16 of=/dev/null -- check if you can read 1MB of data from disk
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 04:06 AM
06-25-2002 04:06 AM
Re: Hardware driver paths switching (Fiber Channel)
pvchange -s c4t0d1
It knows from the lvmtab and VG info that c4t0d1 is the alternate path for c3t0d1 so it makes the switch automatically.
If your VG does not already have the alternate path configured then you have to add it using vgextend /dev/vgNN /dev/dsk/cXtYdZ before you pvchange.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 04:10 AM
06-25-2002 04:10 AM
Re: Hardware driver paths switching (Fiber Channel)
JRF is correct the alternate link does not take IO throughput, it is effectively a hot standby (as far as LVM is concerned). But you can use my suggestions to check if alternale link is still operationl or use JRF's suggestion of vgreduce...
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 04:14 AM
06-25-2002 04:14 AM
Re: Hardware driver paths switching (Fiber Channel)
pvchange -s /dev/dsk/cXtYdZ NOT pvchange -S y ...
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 04:17 AM
06-25-2002 04:17 AM
Re: Hardware driver paths switching (Fiber Channel)
As noted, there are two ways to switch the primary and alternate links. The first is to use 'vgreduce'/'vgextend' as described in my earlier post. The second method, as noted, is to use 'pvchange -s /dev/dsk/cXtYdZ'.
The essential difference is that 'vgreduce'/'vgextend' changes the order of the device files in '/etc/lvmtab' while 'pvchange' does not. It is this order that determines which device file is the primary (first) and which device file is the alternate (second) link. Hence, to permanently swap primary and alternate links, use 'vgreduce'/'vgextend'. This is useful when balancing I/O configurations between two controllers.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2002 11:53 AM
06-26-2002 11:53 AM
Re: Hardware driver paths switching (Fiber Channel)
I would like to add this that whenever making any changes to Primary or Secondary paths, always check Disk Time out values. You can see the Time out value through "pvdisplay -v /dev/dsk/xxx " command. You can change the timeout valuse by using "pvchange -t
Regards.
Shujaat