安裝 DazukoFS

來源:互聯網
上載者:User

 原文(繁體中文):http://don.7mix.net/archives/192

 

安裝 DazukoFS:

DasukoFS官網:http://dazuko.dnsalias.org/wiki/index.php/Main_Page

DazukoFS下載:http://dazuko.dnsalias.org/wiki/index.php/Downloads

# uname -a<br />#Linux localhost.localdomain 2.6.26.8-57.fc8 #1 SMP Thu Dec 18 19:19:45 EST 2008 i686 i686 i386 GNU/Linux<br />#tar -zxf dazukofs-3.0.0.tar.gz<br />#cd dazukofs-3.0.0<br />

安裝請參考README文檔,目前提供的 patch有如下幾個版本:

patch-linux-2.6.16 patch-linux-2.6.20 patch-linux-2.6.24 patch-linux-2.6.18 patch-linux-2.6.22 patch-linux-2.6.26 patch-opensuse-11.0 patch-opensuse-11.1 patch-ubuntu-8.10

 

按照uname的顯示,進行patch。如:

#patch -p1 < patches/patch-linux-2.6.26<br />#make<br />#make dazukofs_install<br />#/sbin/modprobe dazukofs<br />#dmesg | grep dazukofs<br />

應該顯示:dazukofs: loaded, version=3.0.0

 

測試:

 

#mkdir /tmp/dazukofs_test<br />#mount -t dazukofs /tmp/dazukofs_test /tmp/dazukofs_test<br />#cp /bin/a* /tmp/dazukofs_test<br />

 

建立測試程式:

 

#cd test<br />#make<br />#env LD_LIBRARY_PATH=lib ./showfiles<br />

開啟新的視窗:

#find /tmp/dazukofs_test -type f | xargs file

顯示:

/tmp/dazukofs_test/arch: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped
/tmp/dazukofs_test/alsaunmute: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped
/tmp/dazukofs_test/alsacard: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped
/tmp/dazukofs_test/awk: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped

出現類似上述資訊,表示載入成功

 

回前一個終端會看到如以下的列印:

pid:10173 file:/tmp/dazukofs_test
pid:10173 file:/tmp/dazukofs_test
pid:10175 file:/tmp/dazukofs_test/arch
pid:10175 file:/tmp/dazukofs_test/alsaunmute
pid:10175 file:/tmp/dazukofs_test/alsacard
pid:10175 file:/tmp/dazukofs_test/awk

按 Ctrl+C 結束測試進程

^C

Goodbye.

[root@fedora test]# umount /tmp/dazukofs_test

 

啟動自動掛載 DazukoFS 檔案系統:

最簡單的方法就是直接編輯 /etc/fstab,例如:

# vi /etc/fstab

/var/mysql  /var/mysql      dazukofs defaults      0 0
/usr     /usr        dazukofs  defaults       0 0

開機時自動掛載/var/mysql 及 /usr 目錄

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.