Advertisement
METAJIJI

ramcache

Apr 5th, 2016
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.29 KB | None | 0 0
  1. mkdir /mnt/tmpfs
  2. mount -t tmpfs -o size=4G none /mnt/tmpfs
  3. dd if=/dev/zero of=/mnt/tmpfs/disk4G.img bs=1 count=0 seek=4G
  4. losetup loop0 /mnt/tmpfs/disk4G.img
  5. mdadm  --create /dev/md0 --run --level=linear --raid-devices=2 /dev/loop0 /dev/sdX
  6. mkdir /mnt/ramcache
  7. mount /dev/md0 /mnt/ramcache
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement