- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: LVM: Making usre alternate links are present
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
Discussions
Discussions
Forums
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
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
тАО07-31-2003 05:37 AM
тАО07-31-2003 05:37 AM
We have HPUX11i servers attached to EMC symmetrix. All external luns in EMC have altenate hardware paths. I found that some disks did not have alternate paths.
Is there a way to find all the disks in the LVM that do not have alternate paths setup in LVM.
After finding these disk I would like to do
vgextend /dev/vgxx /dev/dsk/cxtydz
thank you,
chak
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2003 05:40 AM
тАО07-31-2003 05:40 AM
Re: LVM: Making usre alternate links are present
After that, you should be able to do all your vgextends to have alternate links to all your disks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2003 05:41 AM
тАО07-31-2003 05:41 AM
Re: LVM: Making usre alternate links are present
vgdisplay -v | grep 'PV Name'
should show you which disks have been added to a volumegroup with an alternate link ... and which haven't ...
Regards,
Tom Geudens
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2003 05:44 AM
тАО07-31-2003 05:44 AM
Solutionvgdisplay -v |grep 'PV Name'
PV Name........../dev/dsk/c1t6d0
PV Name........../dev/dsk/c2t6d0
PV Name ........./dev/dsk/c12t5d0
PV Name ........./dev/dsk/c18t0d0
PV Name........../dev/dsk/c16t0d0 Alternate Link
PV Name........../dev/dsk/c18t0d1
PV Name ........./dev/dsk/c16t0d1 Alternate Link
You still have to go through it manually, but you can see that /dev/dsk/c18t0d0 has an alternate link through /dev/dsk/c16t0d0, and you can see that /dev/dsk/c12t5d0 has no alternate link.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2003 06:26 AM
тАО07-31-2003 06:26 AM
Re: LVM: Making usre alternate links are present
vgdisplay -v | grep "PV Name" gave me the disks that did not have alternate paths quickly as indicated.
So could I run on the fly
vgextend /dev/vg02 /dev/dsk/cxtydz commands. or do
i need to need to do prep work.
sorry that I mentioned EMC, it is actually clariion disk
system.
regards,
chak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2003 06:38 AM
тАО07-31-2003 06:38 AM
Re: LVM: Making usre alternate links are present
You can do it your vgextend on live in a production time without any problem.
If you want to change your principal path you can use pvchange comand with the -s option, and you can do it online.
Regards,
Justo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2003 07:19 AM
тАО08-01-2003 07:19 AM
Re: LVM: Making usre alternate links are present
Try applying all devices to all volume groups. The alternates will get picked up properly by LVM, and the others that are already in a seperate volume group will be aborted by the LVM. If you do have unused ones, you can drop them from the list.
A quick and dirty (that generates lots of cannots);
for VG in `strings /etc/lvmtab | grep vg`
do
for DISK in `ls /dev/dsk/cX* | grep -v
do
vgextend /dev/$VG /dev/dsk/$DISK
done
done
It outputs a lot of error messages, but as long as your system is well patched, LVM keeps you pretty safe.
However, this is a quick an dirty, and has the potential (albeit very slim) to dork up your volume groups. Double check everything before trying something like this. Run it with an echo in front of the vgextend command first, to verify that you get the command entries you really want.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-02-2003 08:16 PM
тАО08-02-2003 08:16 PM
Re: LVM: Making usre alternate links are present
You should be using EMC Powerpath software which performs automatic load-balancing. If powerpath is installed, then setting up alternate paths is not necessary. Try the command powermt and see if you get back a usage message (powermt syntax)
If yes, then do the following:
powermt -display dev=all
This will give you a list of all disks by EMC serial number and show all the different paths for that disk.
Regards,
Arnold Rico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2003 11:52 AM
тАО08-04-2003 11:52 AM
Re: LVM: Making usre alternate links are present
We have our inq binary installed in /usr/local/bin. If you have it installed elsewhere, change the path in the script so it can find the inq binary.
Jerry