bcache 사용
페이지 정보
작성자 조희승 댓글 0건 조회 10,140회 작성일 14-08-12 21:42본문
https://wiki.archlinux.org/index.php/Bcache#Installation_to_a_bcache_device
http://evilpiepirate.org/git/linux-bcache.git/tree/Documentation/bcache.txt
bcache-tools 를 make install 하면 61-bcache.rules을 /lib/udev/rules.d/ 밑에 까는데 이게 flashcache를 방해할 수 있음.
자동으로 올릴 필요없으면 제거
-- bcacheset.sh
ssd=/dev/ssd/4g
hdd=/dev/hdd/temp
modprobe bcache
make-bcache -C --wipe-bcache $ssd
make-bcache -B --wipe-bcache $hdd
echo $ssd > /sys/fs/bcache/register
echo $hdd > /sys/fs/bcache/register
uuid=`ls -aF /sys/fs/bcache/ | awk -F / '{print $1}' | grep '-' `
echo $uuid
echo $uuid > /sys/block/bcache0/bcache/attach
echo writeback > /sys/block/bcache0/bcache/cache_mode
echo 0 > /sys/block/bcache0/bcache/sequential_cutoff
mkfs.ext4 /dev/bcache0
mount /dev/bcache0 /mnt
df
-- bcacheunset.sh
#ssd=/dev/ssd/4g
#hdd=/dev/hdd/temp
umount /mnt
# hdd stop
echo 1 > /sys/block/bcache0/bcache/stop
# ssd stop
uuid=`ls -aF /sys/fs/bcache/ | awk -F / '{print $1}' | grep '-' `
echo $uuid
echo 1 > /sys/fs/bcache/$uuid/stop
sleep 1
modprobe -r bcache
lsmod | grep bcache
df
http://evilpiepirate.org/git/linux-bcache.git/tree/Documentation/bcache.txt
bcache-tools 를 make install 하면 61-bcache.rules을 /lib/udev/rules.d/ 밑에 까는데 이게 flashcache를 방해할 수 있음.
자동으로 올릴 필요없으면 제거
-- bcacheset.sh
ssd=/dev/ssd/4g
hdd=/dev/hdd/temp
modprobe bcache
make-bcache -C --wipe-bcache $ssd
make-bcache -B --wipe-bcache $hdd
echo $ssd > /sys/fs/bcache/register
echo $hdd > /sys/fs/bcache/register
uuid=`ls -aF /sys/fs/bcache/ | awk -F / '{print $1}' | grep '-' `
echo $uuid
echo $uuid > /sys/block/bcache0/bcache/attach
echo writeback > /sys/block/bcache0/bcache/cache_mode
echo 0 > /sys/block/bcache0/bcache/sequential_cutoff
mkfs.ext4 /dev/bcache0
mount /dev/bcache0 /mnt
df
-- bcacheunset.sh
#ssd=/dev/ssd/4g
#hdd=/dev/hdd/temp
umount /mnt
# hdd stop
echo 1 > /sys/block/bcache0/bcache/stop
# ssd stop
uuid=`ls -aF /sys/fs/bcache/ | awk -F / '{print $1}' | grep '-' `
echo $uuid
echo 1 > /sys/fs/bcache/$uuid/stop
sleep 1
modprobe -r bcache
lsmod | grep bcache
df
댓글목록
등록된 댓글이 없습니다.