[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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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).