====== AUFS ======
===== Fekcsatolása =====
* Kernel támogatással:
apt-get install aufs-tools
mount -t aufs -o cow,max_files=32768 -o allow_other,use_ino,suid,dev,nonempty ${PRIVATE_PATH}=RW:${TEMPLATE_PATH}=RO ${IMAGE_PATH}
* Fuse-os megfelelője:
apt-get install unionfs-fuse
unionfs-fuse -o cow,max_files=32768 -o allow_other,use_ino,suid,dev,nonempty ${PRIVATE_PATH}=RW:${TEMPLATE_PATH}=RO ${IMAGE_PATH}
===== Paraméterek listázása =====
* Kernel támogatott AUFS:
mount | grep aufs | while read mount_line
do
echo "${mount_line}"
si="$(echo "${mount_line}" | sed -E 's>.*si=([^,)]*)[,)].*>\1>')"
ls "/sys/fs/aufs/si_${si}" | while read file
do
printf " %-10s : %s\n" "${file}" "$(cat "/sys/fs/aufs/si_${si}/${file}")"
done
echo
done
Példa kimenet:
none on / type aufs (rw,relatime,si=a4b833b2ae9dd3bc)
br0 : /initrd/mnt/private=rw
br1 : /initrd/mnt/root-ro=rr
brid0 : 64
brid1 : 65
xi_path : /initrd/mnt/private/.aufs.xino
none on /mnt/firmware type aufs (rw,relatime,si=a4b833b2a23563bc)
br0 : /mnt/drbd/private/root=rw
br1 : /mnt/firmware=rr
brid0 : 64
brid1 : 65
xi_path : /mnt/drbd/private/root/.aufs.xino
* UnionFS - Fuse:
ps -C unionfs-fuse -o command=
Példa kimenet:
unionfs-fuse -o allow_other /mnt/81061142054995481601e7/local=RO /var/archives/20996373924899c4736c584
unionfs-fuse -o allow_other /mnt/56145475615464564874a4/local=RO /var/archives/464684546ab984646874b6a