1833776 Members
2187 Online
110063 Solutions
New Discussion

vgchange

 
SOLVED
Go to solution

vgchange

what is the difference between the /sbin/vgchange and /usr/sbin/vgchange .
Sundar
1 REPLY 1
Roger Baptiste
Honored Contributor
Solution

Re: vgchange

Hi,

As you can see from the output below, the one in the /sbin is a static exe file
and the one in /usr/sbin is the dynamically linked file.

The binary which is run by default is the one under /usr/sbin.

The /sbin is useful when the system is in boot stage i.e it has not mounted /usr filesystem. Otherwise for normal operations /usr/sbin vgchange is used.

Why two versions?? I think, it is because the dynamic version using libraries affords more flexibility for change/upgrade of its binary.

**
>ll /sbin/vgchange
-r-sr-xr-x 31 root sys 835584 Nov 24 21:53 /sbin/vgchange
>ll /usr/sbin/vgchange
-r-sr-xr-x 31 root sys 557056 Nov 24 21:53 /usr/sbin/vgchange
>file /sbin/vgchange
/sbin/vgchange: PA-RISC1.1 shared executable
>file /usr/sbin/vgchange
/usr/sbin/vgchange: PA-RISC1.1 shared executable dynamically linked
******

HTH
raj
Take it easy.