- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: pvlinks
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
08-28-2001 02:33 PM
08-28-2001 02:33 PM
pvlinks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2001 02:57 PM
08-28-2001 02:57 PM
Re: pvlinks
Use 'vgextend' to add the PV (alternate) links.
The example in the man page states this rather well:
/begin_quote/
Add a PV link to one of the physical volumes in the volume group. Where /dev/dsk/c0t4d0 and /dev/dsk/c1t4d0 refer to the same physical
volume (referenced via different controllers), and the volume group already contains /dev/dsk/c0t4d0. /dev/dsk/c0t4d0 remains the primary link (in use)and /dev/dsk/c1t4d0 becomes an alternate link.
# vgextend /dev/vg03 /dev/dsk/c1t4d0
/end_quote/
You can swap primary and alternate links by doing a 'vgreduce' of the the secondary link followed by a 'vgextend' of the original primary link. In this fashion, the secondary link becomes the (only) primary link, and then the 'vgextend' adds a secondary path that once was the primary.
Remember that pv-links (alternate paths) do *not* load balance in LVM configurations. Should the primary link fail, LVM switches access to the secondary to maintain a path to the physical volume.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2001 03:43 PM
08-28-2001 03:43 PM
Re: pvlinks
Let's say that your volume group (VG - /dev/vgshared) contains the c0t0d1 (primary) and c1t1d1(alternate) disks.
vgdisplay -v /dev/vgshared |grep "PV Name"
(shows)
PV Name /dev/dsk/c0t0d1
PV Name /dev/dsk/c1t1d1 Alternate Link
You would vgreduce c0t0d1 out
vgreduce /dev/vgshared /dev/dsk/c0t0d1
and allow its pvlink (alternate link) to become the primary mirror link.
Now vgdisplay -v /dev/vgshared |grep "PV Name"
(....)
PV Name /dev/dsk/c1t1d1
You would then vgextend c0t0d1 back in as the alternate link to the mirror.
vgextend /dev/vgshared /dev/dsk/c0t0d1
Now vgdisplay -v /dev/vgshared |grep "PV Name"
(...)
PV Name /dev/dsk/c1t1d1
PV Name /dev/dsk/c0t0d1 Alternate Link
-HTH
Ramesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2001 06:42 PM
08-28-2001 06:42 PM
Re: pvlinks
for eg. your vg is /dev/vgshared
primary link is c0t0d1
say alt link is c1t1d1
you already see the pv path in vgdisplay -v /dev/vgshared
just do
vgextend /dev/vgshared /dev/dsk/c1t1d0
vgdisplay -v /dev/vgshared
This will show you the alternate link in the PV names. Remember don't do pvcreate on the alternate link.
Hope this helps.
Thanks
Sanjay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2001 07:00 PM
08-28-2001 07:00 PM
Re: pvlinks
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2001 04:29 AM
08-29-2001 04:29 AM
Re: pvlinks
You do not need to specify if a disk is on an alternate path, LVM knows this! There is some reserved areas in the disk where LVM writes a some ID's. You create this area when you do pvcreate. If LVM sees two disk devices with the same ID's (say disk & volume group ID). It assumes they are the same disk and the second is an alternate link.
Taking this question the other way 'round this is why you do not need to pvcreate the alternate path disks as they have already been created when you pvcreate the original. In fact doing a pvcreate -f will DESTROY the original (if any data exists on it)!
Tim