[Gluster-users] HA File System
Thomaz Luiz Santos
thomaz.santos at gmail.com
Fri Aug 15 19:41:46 UTC 2014
I trying to make a High Availability file system with glusterfs 3.4 on
ubuntu 14.04
I configured the peers work fine, the replicate volume work good.
but I disconnect the network cable on the node-01( for make a test )
the volume glusterfs on the node-02 not keep mounted in the host node-02.
I need to make some configuration, or I´ma make something wrong ?
---------------------------------------- node-01
----------------------------------
root at node-01:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/server--jerry--vg-root 58G 1.7G 54G 3% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 487M 4.0K 487M 1% /dev
tmpfs 100M 856K 99M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 498M 55M 443M 11% /run/shm
none 100M 0 100M 0% /run/user
/dev/mapper/vg--files1-lv--files1 20G 99M 20G 1% /mnt/files1
/dev/mapper/vg--files2-lv--files2 20G 415M 20G 3% /mnt/files2
/dev/sda1 236M 37M 188M 17% /boot
node-01:/files1 20G 99M 20G 1% /files1
node-01:/files2 20G 415M 20G 3% /files2
root at node-01:~# cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/mapper/server--jerry--vg-root / ext4
errors=remount-ro 0 1
# /boot was on /dev/sda1 during installation
UUID=ca818c89-e08f-48d4-8331-88596ce0ba85 /boot ext2
defaults 0 2
/dev/mapper/server--jerry--vg-swap_1 none swap
sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
/dev/vg-files1/lv-files1 /mnt/files1 xfs rw,user 1 2
/dev/vg-files2/lv-files2 /mnt/files2 xfs rw,user 1 2
node-01:/files1 /files1 glusterfs defaults,_netdev
0 0
node-01:/files2 /files2 glusterfs defaults,_netdev 0 0
root at node-01:~# gluster volume info
Volume Name: files2
Type: Replicate
Volume ID: bd0e1a87-935d-48ab-9b5b-c7724b1d011f
Status: Started
Number of Bricks: 1 x 2 = 2
Transport-type: tcp
Bricks:
Brick1: node-01:/mnt/files1/
Brick2: node-02:/mnt/files2/
Volume Name: files1
Type: Replicate
Volume ID: 7239993c-a2c4-41fe-a4c8-204a0320d996
Status: Started
Number of Bricks: 1 x 2 = 2
Transport-type: tcp
Bricks:
Brick1: node-01:/mnt/files1/
Brick2: node-02:/mnt/files2/
root at node-01:~# gluster peer status
Number of Peers: 1
Hostname: node-02
Uuid: 701aa629-3993-4a92-bfa2-aef60db09855
State: Peer in Cluster (Connected)
---------------------------------------- node-02
----------------------------------
root at node-02:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/node--02--vg-root 19G 1.4G 16G 8% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 487M 4.0K 487M 1% /dev
tmpfs 100M 1.2M 99M 2% /run
none 5.0M 0 5.0M 0% /run/lock
none 498M 8.1M 490M 2% /run/shm
none 100M 0 100M 0% /run/user
/dev/mapper/vg--files1-lv--files1 20G 33M 20G 1% /mnt/files1
/dev/mapper/vg--files2-lv--files2 20G 33M 20G 1% /mnt/files1
/dev/sda1 236M 37M 188M 17% /boot
node-02:/files1 20G 99M 20G 1% /files1
node-02:/files2 20G 415M 20G 3% /files2
root at node-02:~# cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/mapper/node--02--vg-root / ext4 errors=remount-ro
0 1
# /boot was on /dev/sda1 during installation
UUID=0b050494-7646-4a19-b60c-45ab8a0bc6d1 /boot ext2
defaults 0 2
/dev/mapper/node--02--vg-swap_1 none swap sw
0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
/dev/vg-files1/lv-files1 /mnt/files1 xfs rw,user 1 2
/dev/vg-files2/lv-files2 /mnt/files2 xfs rw,user 1 2
node-02:/files1 /files1 glusterfs
defaults,_netdev 0 0
node-02:/files2 /files2 glusterfs defaults,_netdev 0
0
root at node-02:~# gluster volume info
Volume Name: files1
Type: Replicate
Volume ID: 7239993c-a2c4-41fe-a4c8-204a0320d996
Status: Started
Number of Bricks: 1 x 2 = 2
Transport-type: tcp
Bricks:
Brick1: node-01:/mnt/files1/
Brick2: node-02:/mnt/files1/
Volume Name: files2
Type: Replicate
Volume ID: bd0e1a87-935d-48ab-9b5b-c7724b1d011f
Status: Started
Number of Bricks: 1 x 2 = 2
Transport-type: tcp
Bricks:
Brick1: node-01:/mnt/files2/
Brick2: node-02:/mnt/files2/
root at node-02:~# gluster peer status
Number of Peers: 1
Hostname: node-01
Uuid: 875cdf95-17ad-4366-9296-109eece9cb41
State: Peer in Cluster (Connected)
--
------------------------------
Thomaz Luiz Santos
Linux User: #359356
http://thomaz.santos.googlepages.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20140815/30dc63e2/attachment.html>
More information about the Gluster-users
mailing list