Re: [Gluster-users] gdeploy not starting all the daemons for NFS-ganesha :(
Hi hvjunk >From the logs it seems like the ganesha cluster is not yet created/running and >performing refresh config is failing.As the cluster is not running and volume >"ganesha" is not yet exported due to this performing refresh config on volume >will fail. For creating ganesha cluster,there are few pre-requisite of adding services like nlm,nfs,rpc-bind,high-availability,mountd,rquota to firewalld. After executing create-cluster block ,It will validate the HA Status of ganesha via gdeploy.If the ganesha cluster is up and running it will reflect HA status as "HEALTHY". After then performing refresh-config on nfs exported volume will succeed. Attaching the sample config file to create ganesha cluster and exporting ganesha volume to client - [hosts] dhcp37-102.lab.eng.blr.redhat.com dhcp37-92.lab.eng.blr.redhat.com dhcp37-119.lab.eng.blr.redhat.com dhcp37-122.lab.eng.blr.redhat.com [backend-setup] devices=/dev/sdb,/dev/sdc,/dev/sdd vgs=vg1,vg2,vg3 pools=pool1,pool2,pool3 lvs=lv1,lv2,lv3 mountpoints=/gluster/brick1,/gluster/brick2,/gluster/brick3 brick_dirs=/gluster/brick1/1,/gluster/brick2/1,/gluster/brick3/1 [yum] action=install repolist= gpgcheck=no update=no packages=glusterfs-ganesha [firewalld] action=add ports=111/tcp,2049/tcp,54321/tcp,5900/tcp,5900-6923/tcp,5666/tcp,16514/tcp services=glusterfs,nlm,nfs,rpc-bind,high-availability,mountd,rquota [volume] action=create volname=ganesha transport=tcp replica_count=2 force=yes [nfs-ganesha] action=create-cluster ha-name=ganesha-ha-360 cluster-nodes=dhcp37-102.lab.eng.blr.redhat.com,dhcp37-92.lab.eng.blr.redhat.com,dhcp37-119.lab.eng.blr.redhat.com,dhcp37-122.lab.eng.blr.redhat.com vip=10.70.36.217,10.70.36.218,10.70.36.219,10.70.36.220 volname=ganesha #This will export volume via nfs-ganesha [clients] action=mount volname=10.70.37.153:/ganesha #VIP from which the volume needs to be mounted to client hosts=10.70.46.30#Client IP client_mount_points=/mnt/ganesha fstype=nfs options=rw,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=10.70.44.153,local_lock=none,addr=10.70.46.30 Regards, Manisha Saini - Original Message - From: "Soumya Koduri" To: "hvjunk" , gluster-users@gluster.org, "Sachidananda URS" , "Manisha Saini" , "Arthy Loganathan" Sent: Wednesday, May 10, 2017 10:45:57 AM Subject: Re: [Gluster-users] gdeploy not starting all the daemons for NFS-ganesha :( CCin Sac, Manisha, Arthy who could help with troubleshooting. Thanks, Soumya On 05/09/2017 08:31 PM, hvjunk wrote: > Hi there, > > Given the following config file, what am I doing wrong causing the error at > the bottom & no mounted /gluster_shared_storage? > > Hendrik > > [root@linked-clone-of-centos-linux ~]# cat t.conf > [hosts] > 10.10.10.11 > 10.10.10.12 > 10.10.10.13 > > [backend-setup] > devices=/dev/sdb > mountpoints=/gluster/brick1 > brick_dirs=/gluster/brick1/one > pools=pool1 > > #Installing nfs-ganesha > [yum] > action=install > repolist= > gpgcheck=no > update=no > packages=glusterfs-ganesha > > [service] > action=start > service=glusterd > > [service] > action=enable > service=glusterd > > #This will create a volume. Skip this section if your volume already exists > [volume] > action=create > volname=ganesha > transport=tcp > replica_count=3 > arbiter_count=1 > force=yes > > [clients] > action=mount > volname=ganesha > hosts=10.10.10.11,10.10.10.12,10.10.10.13 > fstype=glusterfs > client_mount_points=/mnt/ganesha_mnt > > > #Creating a high availability cluster and exporting the volume > [nfs-ganesha] > action=create-cluster > ha-name=ganesha-ha-360 > cluster-nodes=10.10.10.11,10.10.10.12 > vip=10.10.10.31,10.10.10.41 > volname=ganesha > > > [nfs-ganesha] > action=export-volume > volname=ganesha > > [nfs-ganesha] > action=refresh-config > volname=ganesha > [root@linked-clone-of-centos-linux ~]# > > > [root@linked-clone-of-centos-linux ~]# gdeploy -c t.conf -k > > PLAY [gluster_servers] > * > > TASK [Clean up filesystem signature] > *** > skipping: [10.10.10.11] => (item=/dev/sdb) > skipping: [10.10.10.12] => (item=/dev/sdb) > skipping: [10.10.10.13] => (item=/dev/sdb) > > TASK [Create Physical Volume] > ** > changed: [10.10.10.13] => (item=/dev/sdb) > changed: [10.10.10.11] => (item=/dev/sdb) > changed: [10.10.10.12] => (item=/dev/sdb) > > PL
Re: [Gluster-users] gdeploy not starting all the daemons for NFS-ganesha :(
Hi hvjunk >From the logs it seems like the ganesha cluster is not yet created/running and >performing refresh config is failing.As the cluster is not running and volume >"ganesha" is not yet exported due to this performing refresh config on volume >will fail. For creating ganesha cluster,there are few pre-requisite of adding services like nlm,nfs,rpc-bind,high-availability,mountd,rquota to firewalld. After executing create-cluster block ,It will validate the HA Status of ganesha via gdeploy.If the ganesha cluster is up and running it will reflect HA status as "HEALTHY". After then performing refresh-config on nfs exported volume will succeed. Attaching the sample config file to create ganesha cluster and exporting ganesha volume to client - [hosts] dhcp37-102.lab.eng.blr.redhat.com dhcp37-92.lab.eng.blr.redhat.com dhcp37-119.lab.eng.blr.redhat.com dhcp37-122.lab.eng.blr.redhat.com [backend-setup] devices=/dev/sdb,/dev/sdc,/dev/sdd vgs=vg1,vg2,vg3 pools=pool1,pool2,pool3 lvs=lv1,lv2,lv3 mountpoints=/gluster/brick1,/gluster/brick2,/gluster/brick3 brick_dirs=/gluster/brick1/1,/gluster/brick2/1,/gluster/brick3/1 [yum] action=install repolist= gpgcheck=no update=no packages=glusterfs-ganesha [firewalld] action=add ports=111/tcp,2049/tcp,54321/tcp,5900/tcp,5900-6923/tcp,5666/tcp,16514/tcp services=glusterfs,nlm,nfs,rpc-bind,high-availability,mountd,rquota [volume] action=create volname=ganesha transport=tcp replica_count=2 force=yes [nfs-ganesha] action=create-cluster ha-name=ganesha-ha-360 cluster-nodes=dhcp37-102.lab.eng.blr.redhat.com,dhcp37-92.lab.eng.blr.redhat.com,dhcp37-119.lab.eng.blr.redhat.com,dhcp37-122.lab.eng.blr.redhat.com vip=10.70.36.217,10.70.36.218,10.70.36.219,10.70.36.220 volname=ganesha #This will export volume via nfs-ganesha [clients] action=mount volname=10.70.37.153:/ganesha #VIP from which the volume needs to be mounted to client hosts=10.70.46.30#Client IP client_mount_points=/mnt/ganesha fstype=nfs options=rw,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=10.70.44.153,local_lock=none,addr=10.70.46.30 Regards, Manisha Saini - Original Message - From: "Soumya Koduri" To: "hvjunk" , gluster-users@gluster.org, "Sachidananda URS" , "Manisha Saini" , "Arthy Loganathan" Sent: Wednesday, May 10, 2017 10:45:57 AM Subject: Re: [Gluster-users] gdeploy not starting all the daemons for NFS-ganesha :( CCin Sac, Manisha, Arthy who could help with troubleshooting. Thanks, Soumya On 05/09/2017 08:31 PM, hvjunk wrote: > Hi there, > > Given the following config file, what am I doing wrong causing the error at > the bottom & no mounted /gluster_shared_storage? > > Hendrik > > [root@linked-clone-of-centos-linux ~]# cat t.conf > [hosts] > 10.10.10.11 > 10.10.10.12 > 10.10.10.13 > > [backend-setup] > devices=/dev/sdb > mountpoints=/gluster/brick1 > brick_dirs=/gluster/brick1/one > pools=pool1 > > #Installing nfs-ganesha > [yum] > action=install > repolist= > gpgcheck=no > update=no > packages=glusterfs-ganesha > > [service] > action=start > service=glusterd > > [service] > action=enable > service=glusterd > > #This will create a volume. Skip this section if your volume already exists > [volume] > action=create > volname=ganesha > transport=tcp > replica_count=3 > arbiter_count=1 > force=yes > > [clients] > action=mount > volname=ganesha > hosts=10.10.10.11,10.10.10.12,10.10.10.13 > fstype=glusterfs > client_mount_points=/mnt/ganesha_mnt > > > #Creating a high availability cluster and exporting the volume > [nfs-ganesha] > action=create-cluster > ha-name=ganesha-ha-360 > cluster-nodes=10.10.10.11,10.10.10.12 > vip=10.10.10.31,10.10.10.41 > volname=ganesha > > > [nfs-ganesha] > action=export-volume > volname=ganesha > > [nfs-ganesha] > action=refresh-config > volname=ganesha > [root@linked-clone-of-centos-linux ~]# > > > [root@linked-clone-of-centos-linux ~]# gdeploy -c t.conf -k > > PLAY [gluster_servers] > * > > TASK [Clean up filesystem signature] > *** > skipping: [10.10.10.11] => (item=/dev/sdb) > skipping: [10.10.10.12] => (item=/dev/sdb) > skipping: [10.10.10.13] => (item=/dev/sdb) > > TASK [Create Physical Volume] > ** > changed: [10.10.10.13] => (item=/dev/sdb) > changed: [10.10.10.11] => (item=/dev/sdb) > changed: [10.10.10.12] => (item=/dev/sdb) > > PL