- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- hpux 11.31/ia64: is vgchange a soft link?
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
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
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-21-2012 07:32 AM
07-21-2012 07:32 AM
hpux 11.31/ia64: is vgchange a soft link?
Hi,
I suspect my client's done something very silly; however, I don't have any other HPUX systems to compare it against. Can anyone tell me, on a vanilla OS install, is vgchange a soft link?
# gsh all ls -ld /usr/sbin/vgchange
prdap1: lrwxr-xr-x 1 root sys 10 Jun 7 2007 /usr/sbin/vgchange -> ./lvchange
prdap2: lrwxr-xr-x 1 root sys 10 Jun 12 2007 /usr/sbin/vgchange -> ./lvchange
prdap3: lrwxr-xr-x 1 root sys 10 Nov 20 2007 /usr/sbin/vgchange -> ./lvchange
prddb1: lrwxr-xr-x 1 root sys 10 May 18 2007 /usr/sbin/vgchange -> ./lvchange
prddb2: lrwx------ 1 root sys 13 Dec 4 2011 /usr/sbin/vgchange -> ./lvm_wrapper
sapdev: lrwxr-xr-x 1 root sys 13 Jun 2 2009 /usr/sbin/vgchange -> ./lvm_wrapper
sapq07: lrwxr-xr-x 1 root sys 13 May 26 2009 /usr/sbin/vgchange -> ./lvm_wrapper
sapbck: lrwxr-xr-x 1 root sys 10 Aug 1 2011 /usr/sbin/vgchange -> ./lvchange
Some of these things don't look like the others and I'm not sure *any* of them are supposed to look like that!
Thanks for any info confirming/refuting this.
Doug
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2012 08:00 AM
07-21-2012 08:00 AM
Re: hpux 11.31/ia64: is vgchange a soft link?
Hey
It looks like they're supposed to be soft links.
How I got onto this is I'm attempting a MCSG package failover. The vgs wouldn't activate on the adoptive node. The error was:
# vgchange -a e vgsapPRD
vgchange: Unable to execute the command: /usr/sbin/lvmcmd. Errno: 2.
# ls -ld /usr/sbin/lvmcmd
/usr/sbin/lvmcmd not found
A long listing of vgchange shows it a softlink and a scan of all of the client's HPs show all the vgchange commands as listed above. Hence my question.
The lvmcmd that lvm_wrapper is apparently looking for only exists on two recently patched systems. On all other HPUX systems, all lvm commands are soft linked to lvchange. Curiously, on the two recently patched boxes, lvchange is also linked to lvm_wrapper...
Not sure how the client's system got into this state; but, it's fixed now...
I believe I know how/why these links are there; however, if anyone has a link to some hard documentation on it, I'd appreciate seeing it.
Thanks.
Doug O'Leary
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2012 10:56 AM
07-21-2012 10:56 AM
Re: HP-UX 11.31/ia64: is vgchange a soft link?
>if anyone has a link to some hard documentation on it
You could always try swverify to check the file's properties.
- Tags:
- swverify
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2012 06:19 AM
07-23-2012 06:19 AM
Re: HP-UX 11.31/ia64: is vgchange a soft link?
On a couple of 11.31 servers:
11.31 root /root # ls -l /usr/sbin/vgchange
lrwxrwxrwx 1 root sys 13 Jul 19 15:34 /usr/sbin/vgchange -> ./lvm_wrapper
11.31 root /root # uname -a
HP-UX abcd B.11.31 U 9000/800 atl5 unlimited-user license
11.31 root /root # ls -l /usr/sbin/vgchange
lrwxrwxrwx 1 root sys 13 Jul 13 12:07 /usr/sbin/vgchange -> ./lvm_wrapper
11.31 root /root # uname -a
HP-UX abce B.11.31 U ia64 2815418294 unlimited-user license
It looks like 11.31 uses the lvm_wrapper script.
On prior version it looks like vgchange is its own executable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2012 08:54 PM
07-23-2012 08:54 PM
Re: HP-UX 11.31/ia64: is vgchange a soft link?
This is a recent change for the lvm commands.
All versions of 11.23, 11.11, 11.00 and 10.20 have a single executable for all LVM commands and they are all hard linked together, 24 links for 10.20 up to 33 links for 11.23. I imagine that the design is to have one big program with 30+ different names. That way, a change such as LVM layout 2.x requires changes to one program. The program invokes the appropriate code depending the name used to start the program.
It would seem that the lvm_wrapper is doing te same thing.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2012 04:54 AM
07-24-2012 04:54 AM
Re: HP-UX 11.31/ia64: is vgchange a soft link?
>they are all hard linked together
One advantage of softlinks vs hardlinks is that when patching, you only have to deliver one file, not 1 file and N-1 hardlinks.