Configuring Secondary Storage Disk with Bind Mounts
When customers need to utilize a secondary storage disk but prefer not to resize their primary partition, bind mounts can be used to properly map directories. This guide explains how to set up bind mounts from a secondary volume for necessary directories for CloudSoda /soda and /run.
Prerequisites
- Secondary volume mounted at `/mnt/vol2`
- Root or sudo access
- Basic understanding of Linux file systems
Configuration Steps
1. First, ensure your secondary volume is properly mounted at `/mnt/vol2`:
df -h /mnt/vol2
2. Create the necessary directories on the secondary volume:
sudo mkdir -p /mnt/vol2/soda
sudo mkdir -p /mnt/vol2/run
3. Add the following lines to `/etc/fstab` to create the bind mounts:
/mnt/vol2/soda /soda none bind 0 0
/mnt/vol2/run /run none bind 0 0
4. Test the configuration:
sudo mount -a
5. Verify the bind mounts are working:
df -h /soda /run
Troubleshooting
- If mount -a fails, check the syntax in /etc/fstab
- Ensure the source directories exist on the secondary volume
- Verify permissions on both source and target directories
Comments
0 comments
Please sign in to leave a comment.