Re: How to enable shared_storage?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have disabled shared_storage then removed that folder (/var/run/gluster/shared_storage). Then I have enabled shared_storage again.

Here is the execution of the commands after that:

# gluster volume info

Volume Name: gv0
Type: Replicate
Volume ID: ddff3200-ff93-429f-990f-648b6d9ec237
Status: Started
Snapshot Count: 0
Number of Bricks: 1 x 3 = 3
Transport-type: tcp
Bricks:
Brick1: 192.168.0.124:/data/brick1/gv0
Brick2: 192.168.0.125:/data/brick1/gv0
Brick3: 192.168.0.126:/data/brick1/gv0
Options Reconfigured:
nfs.disable: on
performance.readdir-ahead: on
transport.address-family: inet
cluster.enable-shared-storage: enable

# gluster peer status
Number of Peers: 2

Hostname: 192.168.0.125
Uuid: 465ad5ce-6ef3-4fc1-8736-c4c4417c4ba4
State: Peer in Cluster (Connected)

Hostname: 192.168.0.126
Uuid: 7457e0a9-77be-4bbe-9ffa-ea55f094157f
State: Peer in Cluster (Connected)

# ls /var/run/gluster/
1991de3ae2026613377e9506522a33f8.socket          de576a1eac6b8be6ddb954ae9bb2af4a.socket
changelog-430af6dc2d4f6e41e4786764428f83dd.sock  snaps


If I manually create a folder /var/run/gluster/shared_storage to all nodes it still doesn't work. What I am doing wrong?

On Sat, Nov 19, 2016 at 12:43 PM, Alexandr Porunov <alexandr.porunov@xxxxxxxxx> wrote:
It still doesn't work..

I have created that dir:
# mkdir -p /var/run/gluster/shared_storage

and then:
# mount -t glusterfs 127.0.0.1:gluster_shared_storage /var/run/gluster/shared_storage
Mount failed. Please check the log file for more details.

Where to find a proper file to read logs? Because "/var/log/glusterfs/" has a lot of log files.

Sincerely,
Alexandr

On Sat, Nov 19, 2016 at 11:16 AM, Saravanakumar Arumugam <sarumuga@xxxxxxxxxx> wrote:

On 11/19/2016 01:39 AM, Alexandr Porunov wrote:
Hello,

I try to enable shared storage for Geo-Replication but I am not sure that I do it properly.

Here is what I do:
# gluster volume set all cluster.enable-shared-storage enable
volume set: success

# mount -t glusterfs 127.0.0.1:gluster_shared_storage /var/run/gluster/shared_storage
ERROR: Mount point does not exist
Please specify a mount point
Usage:
man 8 /sbin/mount.glusterfs


This error means /var/run/gluster/shared_storage directory does NOT exists.

But, running the  command (gluster volume set all cluster.enable-shared-storage enable)
should carry out the mounting automatically. (so, there is no need to manually mount).

Check after running "gluster volume set all cluster.enable-shared-storage enable"
    1. gluster volume info
     2. glusterfs process started with volfile-id as gluster_shared_storage.

Thanks,
Saravana



_______________________________________________
Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
http://www.gluster.org/mailman/listinfo/gluster-users

[Index of Archives]     [Gluster Development]     [Linux Filesytems Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux