Last active
February 7, 2018 03:42
-
-
Save ilude/4bedec72f5699c22a39ab6e58024c426 to your computer and use it in GitHub Desktop.
GlusterFS notes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 sudo service glusterfs-server status | |
5 sudo gluster peer status | |
6 cat /vagrant/tmp/cluster_nodes | |
7 ifconfig | |
8 sudo gluster peer probe 192.168.2.107 | |
9 sudo gluster peer probe 192.168.2.123 | |
10 sudo gluster peer status | |
11 cat /vagrant/tmp/cluster_nodes | |
12 sudo gluster volume create glustertest replica 3 transport tcp 192.168.2.145:/brick 192.168.2.107:/brick 192.168.2.123:/brick force | |
13 sudo gluster volume start glustertest | |
14 df | |
15 mount | |
16 mount | sort | |
17 cd / | |
18 l | |
19 cd brick | |
20 l | |
21 ls -lha | |
22 touch file.txt | |
23 cd .. | |
24 ls -l | |
25 sudo -i | |
26 sudo mount -t glusterfs localhost:/brick /mnt | |
27 sudo mount -t glusterfs 192.168.2.145:/brick /mnt | |
28 ls -lha /mnt | |
29 sudo mount -t glusterfs 192.168.2.145:/brick /mnt | |
30 ls -lha /mnt | |
31 sudo mount -t glusterfs 192.168.2.145:/glustertest /mnt | |
32 df -h | |
33 echo hello | sudo tee /mnt/glusterfs/f.txt | |
34 umount /mnt | |
35 sudo umount /mnt | |
36 sudo mount -t glusterfs 192.168.2.145:/glustertest /mnt/glusterfs | |
37 echo hello | sudo tee /mnt/glusterfs/f.txt | |
38 sudo umount /mnt | |
39 sudo umount /mnt/glusterfs | |
40 sudo mount -t glusterfs localhost:/glustertest /mnt/glusterfs | |
41 df -h | |
42 cat /mnt/glusterfs/f.txt | |
43 history |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment