Introduction
News
Search
Documentation
License
Download
Contributors
Contact Us
|
Antiquity
Secure Log For Wide-Area Distributed Storage
|
Tutorials - MirrorFS
|
- To summarize, up to now we have the following applications compiled and running:
- MacFUSE
- Function:
- Implements a fully functional file system in a user space
- Antiquity admin & client scripts
- Function:
- Admin script:
- Starts up an administrator and some number of storage servers
- Client script:
- Starts a client that runs through a regression test testing the log api
- Uses Bamboo's operating system to run configuration files
- Bamboo
- Mirroring file system that uses FUSE:
- Summary of commands:
- Create the mount point and file system directories:
- mkdir -p /tmp/mirror/dst
- mkdir -p /tmp/mirror/src
- Navigate to the /fs/ directory
- cd ~/antiquity/src/moxie/fs/
- Run the mirror configuration file in the current directory
- ../../../bin/run-java bamboo.lss.DustDevil mirrorfs.cfg
- Place a file in the /src/ file system and view the mirror of /src/ in /dst/
- cp foo.txt /tmp/mirror/src/
- ls /tmp/mirror/dst/
- Detailed explanation
- First create directories (these directories are used by the mirroring configuration file we are going to provide):
- mkdir -p /tmp/mirror/dst
- The local directory on the machine known as the "mount point"
- mkdir -p /tmp/mirror/src
- The file system that will be mounted onto the mount point
- Change directories (in here we have the mirroring configuration file):
- cd ~/antiquity/src/moxie/fs/
- Run the mirror configuration file in the current directory
- ../../../bin/run-java bamboo.lss.DustDevil mirrorfs.cfg
- Note:
- mirrorfs.cfg DOES use FUSE to locally mount a file system
- With Bamboo running the mirroring configuration file, copy any file into /tmp/mirror/src
- i.e. cp foo.txt /tmp/mirror/src/
- If you do an ls command on the /tmp/mirror/dst/ (the mount point) you'll notice that the foo.txt file you placed in the file system /tmp/mirror/src/ has been mirrored onto our mount point /tmp/mirror/dst/ (along with any other files that might have been in the /tmp/mirror/src/ directory)
- This demonstrates that by using FUSE, our file system /src/ has been mounted onto the local directory /dst/ on the machine
- Note:
- The /tmp/mirror/dst/ file is a read-only directory
- To unmount the local file system just mounted use:
Last modified 2007/08/17.
|
|