[pca] 119788-09

Don O'Malley Don.Omalley at Sun.COM
Thu Dec 18 12:54:56 CET 2008


Hi Jamen,

Relating symlinks for something that is a directory in a patch pkgmap 
will cause a failure in patchadd.

As Martin suggested loopback mounts will workaround this problem.

Best,
-Don

Martin Paul wrote:
> Jamen,
>
>> I'm really confused. I cannot even get smpatch to work. It keeps looking
>> for /var/sadm/pkg or /var/sadm/patch, and neither directory exists on
>> this server. All of our patches are in the /apps directory -
>> /apps/sadm/pkg and /apps/sadm/patch.
>
> So that's your problem. I assume that the pkg/patch directory were 
> moved out of /var/sadm at some time in the past, maybe due to space 
> restrictions in /var or / ?
>
> As you found out, a soft link won't help here. You need a 
> loopback-mount, try:
>
>   mount -F lofs /apps/sadm/pkg /var/sadm/pkg
>   mount -F lofs /apps/sadm/patch /var/sadm/patch
>
> See if this makes "patchadd -p" (and everything else) work again.
>
> The mounts aren't permanent - you will need to add them to /etc/vfstab.
>
> I can only guess, but maybe that's the cause of the problem. The 
> directories were moved out of /var at some time, the above mount 
> commands were used but no changes to /etc/vfstab were made. At the 
> next reboot the mounts were gone and patching started to fail.
>
> Martin.
>



More information about the pca mailing list