XtreemFSをFreeBSDで動かす(2)

続き。あっさり動いてがっかりした。

まず作成。FreeBSDでmkfsはないな……。newfs_xtreemfsにしたい。

# mkfs.xtreemfs pbrpc://localhost/test
Trying to create the volume: pbrpc://localhost/test

Using options:
  Owner:                        root
  Owning group:                 wheel
  Mode:                         777
  Access Control Policy:        POSIX
  Quota:                        0

  Default striping policy:              RAID0
  Default stripe size (object size):    128
  Default stripe width (# OSDs):        1

Successfully created volume "test" at MRC: pbrpc://localhost/test

マウント。こっちもmount.xtreemfsじゃなくてmount_xtreemfs

# mkdir /mnt/xtfstest
# mount.xtreemfs pbrpc://localhost/test /mnt/xtfstest
# ls -al /mnt/xtfstest
total 9
drwxrwxrwx   1 root  wheel   0 Jan  1  1970 .
drwxr-xr-x  17 root  wheel  23 May  9 02:49 ..

mountfstabでやりたいなら、mount -t xtreemfs -o mountprog=mount.xtreemfs pbrpc://localhost/test /mnt/xtfstestのように書ける。(-tは完全に飾り)

書き込みテスト。遅いのは仮想マシンのVMDKがSMB/CIFS越しだから。きっと。

# dd if=/dev/urandom of=/mnt/xtfstest/test.dat bs=65536 count=1024
1024+0 records in
1024+0 records out
67108864 bytes transferred in 39.693073 secs (1690695 bytes/sec)

OSDのWeb画面表示。どこにもFreeBSDって出ないから少し寂しい。
20160509_xtreemfs_osd

最後にxtfsutil。
これは失敗。mountの出力がどうのと言ってるから、きっとmountコマンドの結果を分析しているところがあるのだろう。

# xtfsutil test.dat
xtfsutil failed: No matching mounted XtreemFS volume found in 'mount' output for path: /mnt/xtfstest/test.dat

また明日。