Soldato
- Joined
- 27 Oct 2006
- Posts
- 7,572
- Location
- London
Inspired by this thread (http://forums.overclockers.co.uk/showthread.php?t=17702884) I am happily using unionfs.
Only snag is that the kernel panics when trying to unmount it.
Anyone know whats the procedure for shutting it down ?
I've got this script to create the unionfs :
echo "Mounting gw disks in read-write mode"
echo "..."
mount 10.0.0.10:/disk2 /mnt/gw-disk2/
mount 10.0.0.10:/disk3 /mnt/gw-disk3/
mount 10.0.0.10:/disk4 /mnt/gw-disk4/
mount 10.0.0.10:/disk5 /mnt/gw-disk5/
mount 10.0.0.10:/disk7 /mnt/gw-disk7/
mount 10.0.0.10:/disk8-ultra-install/STORAGE /mnt/gw-disk8/
echo "Done."
echo ""
echo "Mounting b2 disks in read-write mode"
echo "..."
mount 10.0.0.233:/disk1/Storage /mnt/b2-disk1/
mount 10.0.0.233:/disk2 /mnt/b2-disk2/
echo "Creating unionfs"
echo ""
mount -t unionfs -o rw,dirs=/mnt/gw-disk2=rw null /mnt/gw-union
unionctl /mnt/gw-union --add --mode rw /mnt/gw-disk3
unionctl /mnt/gw-union --add --mode rw /mnt/gw-disk4
unionctl /mnt/gw-union --add --mode rw /mnt/gw-disk5
unionctl /mnt/gw-union --add --mode rw /mnt/gw-disk7
unionctl /mnt/gw-union --add --mode rw /mnt/gw-disk8
unionctl /mnt/gw-union --add --mode rw /mnt/b2-disk1
unionctl /mnt/gw-union --add --mode rw /mnt/b2-disk2
Am I doing something wrong ?
Only snag is that the kernel panics when trying to unmount it.
Anyone know whats the procedure for shutting it down ?
I've got this script to create the unionfs :
echo "Mounting gw disks in read-write mode"
echo "..."
mount 10.0.0.10:/disk2 /mnt/gw-disk2/
mount 10.0.0.10:/disk3 /mnt/gw-disk3/
mount 10.0.0.10:/disk4 /mnt/gw-disk4/
mount 10.0.0.10:/disk5 /mnt/gw-disk5/
mount 10.0.0.10:/disk7 /mnt/gw-disk7/
mount 10.0.0.10:/disk8-ultra-install/STORAGE /mnt/gw-disk8/
echo "Done."
echo ""
echo "Mounting b2 disks in read-write mode"
echo "..."
mount 10.0.0.233:/disk1/Storage /mnt/b2-disk1/
mount 10.0.0.233:/disk2 /mnt/b2-disk2/
echo "Creating unionfs"
echo ""
mount -t unionfs -o rw,dirs=/mnt/gw-disk2=rw null /mnt/gw-union
unionctl /mnt/gw-union --add --mode rw /mnt/gw-disk3
unionctl /mnt/gw-union --add --mode rw /mnt/gw-disk4
unionctl /mnt/gw-union --add --mode rw /mnt/gw-disk5
unionctl /mnt/gw-union --add --mode rw /mnt/gw-disk7
unionctl /mnt/gw-union --add --mode rw /mnt/gw-disk8
unionctl /mnt/gw-union --add --mode rw /mnt/b2-disk1
unionctl /mnt/gw-union --add --mode rw /mnt/b2-disk2
Am I doing something wrong ?