1. mogilefs-utils中的工具
mogtool --trackers=127.0.0.1:7001 --domain=myserver.com inject /tmp/demo.doc demo_doc
上传/tmp/demo.doc文件到mogilefs中,以demo_doc为key
mogtool --trackers=127.0.0.1:7001 --domain=myserver.com extract demo_doc /tmp/demo_2.doc
取出文件,从mogilefs中,以demo_doc为key
2. mogilefs重要特性
[b]Re-Replicating Files[/b]
If a drive dies, mogilefs will attempt to avoid the device, [color=red]but it will not automatically re-replicate files which were on the device. You must manually mark it as 'dead' via mogadm.[/color] As soon as you do so, mogilefs will start to remove files that were on the device and attempt to re-replicate them.
mogtool --trackers=127.0.0.1:7001 --domain=myserver.com inject /tmp/demo.doc demo_doc
上传/tmp/demo.doc文件到mogilefs中,以demo_doc为key
mogtool --trackers=127.0.0.1:7001 --domain=myserver.com extract demo_doc /tmp/demo_2.doc
取出文件,从mogilefs中,以demo_doc为key
2. mogilefs重要特性
[b]Re-Replicating Files[/b]
If a drive dies, mogilefs will attempt to avoid the device, [color=red]but it will not automatically re-replicate files which were on the device. You must manually mark it as 'dead' via mogadm.[/color] As soon as you do so, mogilefs will start to remove files that were on the device and attempt to re-replicate them.