- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Remove alternate links
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
10-18-2001 05:30 AM
10-18-2001 05:30 AM
Remove alternate links
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 05:38 AM
10-18-2001 05:38 AM
Re: Remove alternate links
To remove an alternate (pv) link, simply 'vgreduce':
# vgreduce /dev/vgXX /dev/dsk/cXtYdZ
...where /dev/dsk/CXtYdZ is the device file listed as the pv-link you want to remove.
If you choose the primary link, then the alternate becomes the primary. If you want to swap primary and alternate links, 'vgreduce' the *primary* and then 'vgextend' the *primary* back in. It will then become the new alternate link.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 05:47 AM
10-18-2001 05:47 AM
Re: Remove alternate links
Just vgreduce the alternate device, eg;
vgdisplay -v
and for each device listed do;
vgreduce VGxx /dev/dsk/cxxxxxxx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 05:54 AM
10-18-2001 05:54 AM
Re: Remove alternate links
Take out the disks A and B from the VG.
vgreduce "/dev/vgXX /dev/dsk/disk-A" should remove disk A from the VG. Do same for the disk B.
Thanks.
Prashant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 06:03 AM
10-18-2001 06:03 AM
Re: Remove alternate links
When I typed lvremove /dev/vgX/lvolY I got the following respond:
Current path "/dev/dsk/disk A" is an alternate link, skip
Current path "/dev/dsk/disk B" is an alternate link, skip
Current path "/dev/dsk/disk C" is an alternate link, skip
Current path "/dev/dsk/disk D" is an alternate link, skip
Current path "/dev/dsk/disk E" is an alternate link, skip
Current path "/dev/dsk/disk F" is an alternate link, skip
(There is 6 disks in the VG, A-F)
The logical volume /dev/vgX/lvolY is not empty;
do you really want to delete the logical volume (y/n) ?
Why do I get all alternate links instead of used those for the disks (C-D) which belong to the current LV?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 06:05 AM
10-18-2001 06:05 AM
Re: Remove alternate links
There are still active LV?s on disks A,B so I can?t remove those disks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 06:13 AM
10-18-2001 06:13 AM
Re: Remove alternate links
Youre right, we didnt understand your question, now youve made your question clear;
When you remove a logical volume it has to scan all the devices in a volume group to check which ones will need to have extents removed, and that the disks are available so it can remove the extents, when it comes across alternate links it doesnt do a test on the physical device because it has already done that with the main (non-alternate link). This makes sense - why check the primary and alternate link when they point to the same device ? it will only slowdown the command. Its nothing to worry about, go ahead and remove your logical volume.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 06:16 AM
10-18-2001 06:16 AM
Re: Remove alternate links
Now I'm confused as to exactly what you want to achieve.
'pvmove' can be ussed to move extents from one physical volume to another.
'lvreduce' can be used to remove mirrored copies of logical volumes.
The message "Current path...is an alternate link, skip" is a general advisory from many LVM operations, and is meant just as that -- for your information.
You could post some verbose 'lvdisplay' output to help us if this offering doesn't.
Regards!
...JRF...
'vgreduce' and 'vgextend' can deal with alternate links as noted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 06:25 AM
10-18-2001 06:25 AM
Re: Remove alternate links
I wanted to move one mirrored LV to new PV?s to distribute the load over more disks.
Case closed!
Thanks!