Read a volume group on a Read-Only VMware shared data store
Hi,
I have to create a offline repository for RHEL7 clients on a closed network ( no Internet access). This process will happen at most quarterly.
I'll use an external server to run reposync/createrepo. The repos disc will be detached and physically moved to the closed network data centre and presented to the vmware cluster.
We don't want network traffic between the RHEL client VMs so the disc must be mounted on each VM. We'll have maybe thirty Linux VMs initially.
Is the following possible?
* The external download server disc will be on an LVM volume group. This will be deactivated ( vgchange -a n vgname )
* The disc will be copied into a Vmware shared data store, and mounted read-only on all Linux VM clients.
* autofs will be configured with a map of
/etc/auto.master
/autofs /etc/auto.repo--timeout=3,ro,nodev,nosuid,noexec,noatime
/etc/auto.repo
repo -fstype=auto UUID=2a2a2a2a-2a2a-2a2a-2a2a-2a2a2a2a2a2a
- Pitfalls
Will the O/S won't mount the volume group with out some changes.- I don't know if vgchange can activate a volume group on a read-only disc.
- Can i restrict autofs to only mount the disc if the calling process has a euid of 0, or if it's called through rpm/yum etc. Listing the dir as a unprivileged user should deny the request.
What pitfalls can people think off?
Thanks for any idea.
Regards, Sophie.