On Mon, Sep 09 2013, Canek Peláez Valdés wrote:
> On Mon, Sep 9, 2013 at 1:51 PM, <[email protected]> wrote:
>> In fstab I have
>> /dev/vg/var /mnt/var ext4 defaults 0 2
>> I also have
>> lrwxrwxrwx 1 root root 7 Aug 31 16:13 /var -> mnt/var
>>
>> This has worked ok but revdep-rebuild is not happy
>
> I think it's the symlink the thing that is making revdep-rebuild
> unhappy. Have you tried to bind mount /mnt/var into /var?
>
> mount -o bind /mnt/var /var
Works great. Thanks. To make it permanent I put
/mnt/var /var ext4 bind 0 0
right under
/dev/vg/var /mnt/var ext4 defaults 0 2
in /etc/fstab
>> Should I also mount directly onto /tmp and /opt?
>
> I don't think so, although /tmp is preferred to be a tmpfs now, I
> believe (in both systemd and OpenRC, if I'm not mistaken).
To use tmpfs I will first have to teach myself not to put things in /tmp
that I expect to need for only a few days (I have wipe_tmp="NO"; and use
30 days for tmpwatch).
thanks again,
allan