Skip to content

Instantly share code, notes, and snippets.

@umuro
Created July 14, 2011 15:54
Show Gist options
  • Save umuro/1082722 to your computer and use it in GitHub Desktop.
Save umuro/1082722 to your computer and use it in GitHub Desktop.
Making a normal big normal linux volume spanning many NFS and/or SAMBA mounts. Simply create a gigantic volume across available shares over the network.
#### 1. Mount WD ShareSpace over NFS and cache it. Note the mount options, they are must.
#$ sudo apt-get install cachefsd
#### 2. Create 2 ext4 files systems
## e.g.
#$ dd if=/dev/zero of=/mnt/wd/book1.img bs=1 count=0 seek=2045G
#$ mkfs.ext4 -Lbook1 /mnt/wd/book1.img
#### 3. Merge them and enjoy big normal linux file system
#$ nano /etc/fstab
192.168.1.99:/DataVolume/umur /mnt/wd nfs rw,soft,intr,nfsvers=3,fsc 0 0
/dev/vg/tank-cache /var/cache/fscache ext4 defaults,user_xattr 0 0
/mnt/wd/book1.img /mnt/book1 ext4 loop 0 0
/mnt/wd/book2.img /mnt/book1 ext4 loop 0 0
mhddfs#/mnt/book1,/mnt/book2 /mnt/library fuse defaults,allow_other 0 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment