Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: DRBD: Users

DRBD NFS mount

 

 

DRBD users RSS feed   Index | Next | Previous | View Threaded


marcel at kraan

Apr 28, 2012, 2:54 AM

Post #1 of 4 (381 views)
Permalink
DRBD NFS mount

Hello All,

I'am marcel kraan
I lost all my users during a NFS mount?

i like to mount my /datastore /dev/drbd0 as NFS
/dev/drbd0 on /datastore type ext4 (rw)
my Primary/Secondary are working perfect.

So i created a NFS share on my Primary for now
/etc/exports
/datastore/main 192.168.123.0/255.255.255.0(rw,no_root_squash,no_all_squash,sync)


server1 (primary)
root [at] kvm datastore]# ls -al main/
total 258363156
drwxrwxrwx 2 root root 4096 Apr 28 10:41 .
drwxrwxrwx 5 root root 4096 Apr 26 23:37 ..
-rwxrwxrwx 1 root root 4423129088 Apr 27 01:17 CentOS-6.2-x86_64-bin-DVD1.iso
-rwxrwxrwx 1 root root 3125673984 Apr 27 01:20 CentOs6.img
-rwxrwxrwx 1 root root 21223178241 Apr 27 01:38 CentOS.disk.xm
-rwxrwxrwx 1 root root 220433590918 Apr 27 05:16 CentOSx64-Backup.img
-rwxrwxrwx 1 marcel users 15649734656 Apr 27 05:32 MyHostmon3.qcow
-rw-r--r-- 1 marcel users 0 Apr 28 10:41 test.marcel



server2
mount 192.168.123.61:/datastore/main /datastore

[root [at] kvm datastore]# ls -al
total 258363156
drwxrwxrwx 2 4294967294 4294967294 4096 Apr 28 10:41 .
dr-xr-xr-x. 26 root root 4096 Apr 28 11:33 ..
-rwxrwxrwx 1 4294967294 4294967294 4423129088 Apr 27 01:17 CentOS-6.2-x86_64-bin-DVD1.iso
-rwxrwxrwx 1 4294967294 4294967294 3125673984 Apr 27 01:20 CentOs6.img
-rwxrwxrwx 1 4294967294 4294967294 21223178241 Apr 27 01:38 CentOS.disk.xm
-rwxrwxrwx 1 4294967294 4294967294 220433590918 Apr 27 05:16 CentOSx64-Backup.img
-rwxrwxrwx 1 4294967294 4294967294 15649734656 Apr 27 05:32 MyHostmon3.qcow
-rw-r--r-- 1 4294967294 4294967294 0 Apr 28 10:41 test.marcel


anyone know why i can't mount it as NFS RW?
_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user


marcel at kraan

Apr 28, 2012, 11:19 AM

Post #2 of 4 (344 views)
Permalink
Re: DRBD NFS mount [In reply to]

i fixed the problem

there was an error in the settings
On 28 apr. 2012, at 11:54, Marcel Kraan wrote:

> Hello All,
>
> I'am marcel kraan
> I lost all my users during a NFS mount?
>
> i like to mount my /datastore /dev/drbd0 as NFS
> /dev/drbd0 on /datastore type ext4 (rw)
> my Primary/Secondary are working perfect.
>
> So i created a NFS share on my Primary for now
> /etc/exports
> /datastore/main 192.168.123.0/255.255.255.0(rw,no_root_squash,no_all_squash,sync)
>
>
> server1 (primary)
> root [at] kvm datastore]# ls -al main/
> total 258363156
> drwxrwxrwx 2 root root 4096 Apr 28 10:41 .
> drwxrwxrwx 5 root root 4096 Apr 26 23:37 ..
> -rwxrwxrwx 1 root root 4423129088 Apr 27 01:17 CentOS-6.2-x86_64-bin-DVD1.iso
> -rwxrwxrwx 1 root root 3125673984 Apr 27 01:20 CentOs6.img
> -rwxrwxrwx 1 root root 21223178241 Apr 27 01:38 CentOS.disk.xm
> -rwxrwxrwx 1 root root 220433590918 Apr 27 05:16 CentOSx64-Backup.img
> -rwxrwxrwx 1 marcel users 15649734656 Apr 27 05:32 MyHostmon3.qcow
> -rw-r--r-- 1 marcel users 0 Apr 28 10:41 test.marcel
>
>
>
> server2
> mount 192.168.123.61:/datastore/main /datastore
>
> [root [at] kvm datastore]# ls -al
> total 258363156
> drwxrwxrwx 2 4294967294 4294967294 4096 Apr 28 10:41 .
> dr-xr-xr-x. 26 root root 4096 Apr 28 11:33 ..
> -rwxrwxrwx 1 4294967294 4294967294 4423129088 Apr 27 01:17 CentOS-6.2-x86_64-bin-DVD1.iso
> -rwxrwxrwx 1 4294967294 4294967294 3125673984 Apr 27 01:20 CentOs6.img
> -rwxrwxrwx 1 4294967294 4294967294 21223178241 Apr 27 01:38 CentOS.disk.xm
> -rwxrwxrwx 1 4294967294 4294967294 220433590918 Apr 27 05:16 CentOSx64-Backup.img
> -rwxrwxrwx 1 4294967294 4294967294 15649734656 Apr 27 05:32 MyHostmon3.qcow
> -rw-r--r-- 1 4294967294 4294967294 0 Apr 28 10:41 test.marcel
>
>
> anyone know why i can't mount it as NFS RW?
> _______________________________________________
> drbd-user mailing list
> drbd-user [at] lists
> http://lists.linbit.com/mailman/listinfo/drbd-user

_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user


david at davidcoulson

Apr 28, 2012, 11:38 AM

Post #3 of 4 (351 views)
Permalink
Re: DRBD NFS mount [In reply to]

can you give the specifics of the fix? Someone else may encounter the
same issue.

On 4/28/12 2:19 PM, Marcel Kraan wrote:
> i fixed the problem
>
> there was an error in the settings
> On 28 apr. 2012, at 11:54, Marcel Kraan wrote:
>
>> Hello All,
>>
>> I'am marcel kraan
>> I lost all my users during a NFS mount?
>>
>> i like to mount my /datastore /dev/drbd0 as NFS
>> /dev/drbd0 on /datastore type ext4 (rw)
>> my Primary/Secondary are working perfect.
>>
>> So i created a NFS share on my Primary for now
>> /etc/exports
>> /datastore/main 192.168.123.0/255.255.255.0(rw,no_root_squash,no_all_squash,sync)
>>
>>
>> server1 (primary)
>> root [at] kvm datastore]# ls -al main/
>> total 258363156
>> drwxrwxrwx 2 root root 4096 Apr 28 10:41 .
>> drwxrwxrwx 5 root root 4096 Apr 26 23:37 ..
>> -rwxrwxrwx 1 root root 4423129088 Apr 27 01:17 CentOS-6.2-x86_64-bin-DVD1.iso
>> -rwxrwxrwx 1 root root 3125673984 Apr 27 01:20 CentOs6.img
>> -rwxrwxrwx 1 root root 21223178241 Apr 27 01:38 CentOS.disk.xm
>> -rwxrwxrwx 1 root root 220433590918 Apr 27 05:16 CentOSx64-Backup.img
>> -rwxrwxrwx 1 marcel users 15649734656 Apr 27 05:32 MyHostmon3.qcow
>> -rw-r--r-- 1 marcel users 0 Apr 28 10:41 test.marcel
>>
>>
>>
>> server2
>> mount 192.168.123.61:/datastore/main /datastore
>>
>> [root [at] kvm datastore]# ls -al
>> total 258363156
>> drwxrwxrwx 2 4294967294 4294967294 4096 Apr 28 10:41 .
>> dr-xr-xr-x. 26 root root 4096 Apr 28 11:33 ..
>> -rwxrwxrwx 1 4294967294 4294967294 4423129088 Apr 27 01:17 CentOS-6.2-x86_64-bin-DVD1.iso
>> -rwxrwxrwx 1 4294967294 4294967294 3125673984 Apr 27 01:20 CentOs6.img
>> -rwxrwxrwx 1 4294967294 4294967294 21223178241 Apr 27 01:38 CentOS.disk.xm
>> -rwxrwxrwx 1 4294967294 4294967294 220433590918 Apr 27 05:16 CentOSx64-Backup.img
>> -rwxrwxrwx 1 4294967294 4294967294 15649734656 Apr 27 05:32 MyHostmon3.qcow
>> -rw-r--r-- 1 4294967294 4294967294 0 Apr 28 10:41 test.marcel
>>
>>
>> anyone know why i can't mount it as NFS RW?
>> _______________________________________________
>> drbd-user mailing list
>> drbd-user [at] lists
>> http://lists.linbit.com/mailman/listinfo/drbd-user
> _______________________________________________
> drbd-user mailing list
> drbd-user [at] lists
> http://lists.linbit.com/mailman/listinfo/drbd-user
_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user


marcel at kraan

May 1, 2012, 8:34 AM

Post #4 of 4 (327 views)
Permalink
Re: DRBD NFS mount [In reply to]

The NFS fix was easy.

i started the rpcidmap on all the clients that uses the nfs mount.

This is what i did on the clients machine (not on the ifs server)

chkconfig rpcidmapd on
service rpcidmapd start
service nfs restart

umount /datastore
mount storage:/datastore /datastore
( could also do mount -a when you have it in your fstab )

Now it works again.

Marcel Kraan




On 28 apr. 2012, at 20:38, David Coulson wrote:

> can you give the specifics of the fix? Someone else may encounter the same issue.
>
> On 4/28/12 2:19 PM, Marcel Kraan wrote:
>> i fixed the problem
>>
>> there was an error in the settings
>> On 28 apr. 2012, at 11:54, Marcel Kraan wrote:
>>
>>> Hello All,
>>>
>>> I'am marcel kraan
>>> I lost all my users during a NFS mount?
>>>
>>> i like to mount my /datastore /dev/drbd0 as NFS
>>> /dev/drbd0 on /datastore type ext4 (rw)
>>> my Primary/Secondary are working perfect.
>>>
>>> So i created a NFS share on my Primary for now
>>> /etc/exports
>>> /datastore/main 192.168.123.0/255.255.255.0(rw,no_root_squash,no_all_squash,sync)
>>>
>>>
>>> server1 (primary)
>>> root [at] kvm datastore]# ls -al main/
>>> total 258363156
>>> drwxrwxrwx 2 root root 4096 Apr 28 10:41 .
>>> drwxrwxrwx 5 root root 4096 Apr 26 23:37 ..
>>> -rwxrwxrwx 1 root root 4423129088 Apr 27 01:17 CentOS-6.2-x86_64-bin-DVD1.iso
>>> -rwxrwxrwx 1 root root 3125673984 Apr 27 01:20 CentOs6.img
>>> -rwxrwxrwx 1 root root 21223178241 Apr 27 01:38 CentOS.disk.xm
>>> -rwxrwxrwx 1 root root 220433590918 Apr 27 05:16 CentOSx64-Backup.img
>>> -rwxrwxrwx 1 marcel users 15649734656 Apr 27 05:32 MyHostmon3.qcow
>>> -rw-r--r-- 1 marcel users 0 Apr 28 10:41 test.marcel
>>>
>>>
>>>
>>> server2
>>> mount 192.168.123.61:/datastore/main /datastore
>>>
>>> [root [at] kvm datastore]# ls -al
>>> total 258363156
>>> drwxrwxrwx 2 4294967294 4294967294 4096 Apr 28 10:41 .
>>> dr-xr-xr-x. 26 root root 4096 Apr 28 11:33 ..
>>> -rwxrwxrwx 1 4294967294 4294967294 4423129088 Apr 27 01:17 CentOS-6.2-x86_64-bin-DVD1.iso
>>> -rwxrwxrwx 1 4294967294 4294967294 3125673984 Apr 27 01:20 CentOs6.img
>>> -rwxrwxrwx 1 4294967294 4294967294 21223178241 Apr 27 01:38 CentOS.disk.xm
>>> -rwxrwxrwx 1 4294967294 4294967294 220433590918 Apr 27 05:16 CentOSx64-Backup.img
>>> -rwxrwxrwx 1 4294967294 4294967294 15649734656 Apr 27 05:32 MyHostmon3.qcow
>>> -rw-r--r-- 1 4294967294 4294967294 0 Apr 28 10:41 test.marcel
>>>
>>>
>>> anyone know why i can't mount it as NFS RW?
>>> _______________________________________________
>>> drbd-user mailing list
>>> drbd-user [at] lists
>>> http://lists.linbit.com/mailman/listinfo/drbd-user
>> _______________________________________________
>> drbd-user mailing list
>> drbd-user [at] lists
>> http://lists.linbit.com/mailman/listinfo/drbd-user

_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user

DRBD users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.