[SOLVED] Multiple mounts under same parent directory
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have RHEL 5.4 server installed on a HP Proliant Server. Our security team asked me to go for a dedicated filesystems for the following directories.
I just created three logical volumes and mounted on respective directories as we do for usually. Once the server is rebooted, it couldnt log anything in /var/log.
As a workaround, i have unmounted all the above mount points and rebooted server which solved my issue. Now, Could someone tell me, is there any way to mount different logical volumes under a directory and its subdirectories.
You are Correct. I couldnt see the mount entries for /var/log and /var/log/audit. I am going to apply your suggestion soon and would come up with the output.
/dev/mapper/LV1-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/mapper/LV1-LogVol04 on /opt type ext3 (rw)
/dev/mapper/LV1-LogVol05 on /tmp type ext3 (rw,nosuid,nodev)
/dev/mapper/LV1-LogVol02 on /usr type ext3 (rw)
/dev/mapper/LV1-LogVol01 on /home type ext3 (rw,nodev)
/dev/mapper/LV1-LogVol03 on /var type ext3 (rw)
/dev/cciss/c0d0p1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw,noexec,nosuid,nodev)
/tmp on /var/tmp type none (rw,bind)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
Check ownership, permission, and security label of the given directory used for the mount point both before and after the mount.
One of the problems that can happen is that directories with some of those mounts (such as /var/log) have multiple subdirectories (such as audit) and they need to have proper ownership (user/group), access modes, and security labels or the system will be unable to start properly.
You might get the security label correct using a restorecon after all mounts (done manually at single user mode though).