GlusterFS : GlusterFS クライアントの設定2025/12/04 |
|
GlusterFS ボリュームを任意のクライアントからマウントします。 |
|
| [1] | GlusterFS Native でマウントする場合は、以下のように設定します。 例として [vol_distributed] ボリュームを [/mnt] にマウントします。 |
|
client:~ #
zypper -n install glusterfs hostname # 宛先はボリューム構成ノードであればどこでも可 # オプション [xlator-option=***] は glusterd が IPv4 のみをリスンしている場合に必要 # マウント時に表示される [grep: warning: stray \ before -] は無視で OK client:~ # mount -t glusterfs -o xlator-option="transport.address-family=inet" node01.srv.world:/vol_distributed /mnt
df -hT Filesystem Type Size Used Avail Use% Mounted on /dev/vda2 btrfs 28G 3.4G 25G 13% / devtmpfs devtmpfs 4.0M 0 4.0M 0% /dev tmpfs tmpfs 2.0G 0 2.0G 0% /dev/shm tmpfs tmpfs 784M 740K 783M 1% /run tmpfs tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-journald.service /dev/vda2 btrfs 28G 3.4G 25G 13% /boot/grub2/x86_64-efi /dev/vda2 btrfs 28G 3.4G 25G 13% /.snapshots /dev/vda2 btrfs 28G 3.4G 25G 13% /boot/grub2/i386-pc /dev/vda2 btrfs 28G 3.4G 25G 13% /home /dev/vda2 btrfs 28G 3.4G 25G 13% /opt /dev/vda2 btrfs 28G 3.4G 25G 13% /root tmpfs tmpfs 2.0G 0 2.0G 0% /tmp /dev/vda2 btrfs 28G 3.4G 25G 13% /srv /dev/vda2 btrfs 28G 3.4G 25G 13% /usr/local /dev/vda2 btrfs 28G 3.4G 25G 13% /var tmpfs tmpfs 1.0M 0 1.0M 0% /run/credentials/getty@tty1.service tmpfs tmpfs 1.0M 0 1.0M 0% /run/credentials/serial-getty@ttyS0.service tmpfs tmpfs 392M 4.0K 392M 1% /run/user/0 node01.srv.world:/vol_distributed fuse.glusterfs 56G 7.5G 49G 14% /mnt # 読み書き確認 client:~ # echo "Gluster write test" > /mnt/testfile.txt client:~ # cat /mnt/testfile.txt Gluster write test |
| Sponsored Link |
|
|