[ale] Strange issue with CentOS 6 and Free NAS

Chuck Payne terrorpup at gmail.com
Wed Nov 14 12:12:13 EST 2012


On Tue, Nov 13, 2012 at 11:58 AM, Chuck Payne <terrorpup at gmail.com> wrote:
> On Tue, Nov 13, 2012 at 11:47 AM, Beddingfield, Allen <allen at ua.edu> wrote:
>> What happens if you change your setting on the BSD box to just
>> maproot=root, instead of maproot=root:wheel?
>>
>> --
>> Allen Beddingfield
>> Systems Engineer
>> The University of Alabama
>>
>>
>>
>>
>> On 11/13/12 10:35 AM, "Chuck Payne" <terrorpup at gmail.com> wrote:
>>
>>>On Tue, Nov 13, 2012 at 11:31 AM, Beddingfield, Allen <allen at ua.edu>
>>>wrote:
>>>> Very strange.  You didn't mention it in the message, but can you work
>>>>with
>>>> the files as a non root user from the 6.3 system?  (confirming that we
>>>>are
>>>> on the right track in assuming that it is a root_squash sort of
>>>>problem).
>>>> Allen B.
>>>> --
>>>> Allen Beddingfield
>>>> Systems Engineer
>>>> The University of Alabama
>>>>
>>>>
>>>>
>>>>
>>>> On 11/13/12 10:24 AM, "Chuck Payne" <terrorpup at gmail.com> wrote:
>>>>
>>>>>Guys,
>>>>>
>>>>>I am having an strange issue with a directory I have set on my
>>>>>iXsystems running FreeNAS. If I am on a CentOS 6.3 box, I can't do
>>>>>anything with the files as root.  But if I am on a box that running
>>>>>CentOS 6.2 I can.  SE Linux and Firewalls are off on both boxes.
>>>>>
>>>>>CentOS 6.2
>>>>>root at blackfoot/mnt/nas-sgd2/backup_db_tmp/prod_norwich/daily/norwich-201
>>>>>21
>>>>>109_0330
>>>>># uname -a
>>>>>Linux blackfoot 2.6.32-220.7.1.el6.x86_64 #1 SMP Wed Mar 7 00:52:02
>>>>>GMT 2012 x86_64 x86_64 x86_64 GNU/Linux
>>>>>root at blackfoot/mnt/nas-sgd2/backup_db_tmp/prod_norwich/daily/norwich-201
>>>>>21
>>>>>109_0330
>>>>># du -h | head
>>>>>21M    ./sql_scripts/tickets
>>>>>21M    ./sql_scripts/deploy
>>>>>43M    ./sql_scripts
>>>>>4.8M   ./export_files
>>>>>
>>>>>
>>>>>Cent6.3
>>>>>[root at prodCoreDB01 norwich-20121109_0330]# uname -a
>>>>>Linux prodCoreDB01.performancematters.com 2.6.32-279.14.1.el6.x86_64
>>>>>#1 SMP Tue Nov 6 23:43:09 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
>>>>>[root at prodCoreDB01 norwich-20121109_0330]# du -h | head
>>>>>du: cannot read directory `./sql_scripts': Permission denied
>>>>>19K    ./sql_scripts
>>>>>du: cannot read directory `./export_files': Permission denied
>>>>>17K    ./export_files
>>>>>
>>>>>
>>>>>I have a directory that I have set up  is as follows, keep in mind
>>>>>this is FreeNAS is FreeBSD so  nfs share options are not the same
>>>>>
>>>>>/mnt/ZVG0/backup_db/prod_norwich -alldirs -maproot=root:wheel -network
>>>>>10.1.0.0/24
>>>>>
>>>>>It is set up so that no_root_sqaush is there that the maproot=root:wheel
>>>>>
>>>>>Has anyone seen this? I almost looks like something changed in the
>>>>>kernel.  Anything I need to try?
>>>>>
>>>>>--
>>>>>Terror PUP a.k.a
>>>>>Chuck "PUP" Payne
>>>>>
>>>>>(678) 636-9678
>>>>>-----------------------------------------
>>>>>Discover it! Enjoy it! Share it! openSUSE Linux.
>>>>>-----------------------------------------
>>>>>openSUSE -- en.opensuse.org/User:Terrorpup
>>>>>openSUSE Ambassador/openSUSE Member
>>>>>Community Manager -- Southeast Linux Foundation (SELF)
>>>>>skype,twiiter,identica,friendfeed -- terrorpup
>>>>>freenode(irc) --terrorpup/lupinstein
>>>>>Register Linux Userid: 155363
>>>>>
>>>>>Have you tried SUSE Studio? Need to create a Live CD,  an app you want
>>>>>to package and distribute , or create your own linux distro. Give SUSE
>>>>>Studio a try. www.susestudio.com.
>>>>>See you at Southeast Linux Fest, June 8-10, 2012 in Charlotte, NC.
>>>>>www.southeastlinuxfest.org
>>>>>_______________________________________________
>>>>>Ale mailing list
>>>>>Ale at ale.org
>>>>>http://mail.ale.org/mailman/listinfo/ale
>>>>>See JOBS, ANNOUNCE and SCHOOLS lists at
>>>>>http://mail.ale.org/mailman/listinfo
>>>>
>>>>
>>>> _______________________________________________
>>>> Ale mailing list
>>>> Ale at ale.org
>>>> http://mail.ale.org/mailman/listinfo/ale
>>>> See JOBS, ANNOUNCE and SCHOOLS lists at
>>>> http://mail.ale.org/mailman/listinfo
>>>
>>>Yes, if I su as mysql the owner of the files I can work with them.  It
>>>just root that can't.
>>>
>>>--
>>>Terror PUP a.k.a
>>>Chuck "PUP" Payne
>>>
>>>(678) 636-9678
>>>-----------------------------------------
>>>Discover it! Enjoy it! Share it! openSUSE Linux.
>>>-----------------------------------------
>>>openSUSE -- en.opensuse.org/User:Terrorpup
>>>openSUSE Ambassador/openSUSE Member
>>>Community Manager -- Southeast Linux Foundation (SELF)
>>>skype,twiiter,identica,friendfeed -- terrorpup
>>>freenode(irc) --terrorpup/lupinstein
>>>Register Linux Userid: 155363
>>>
>>>Have you tried SUSE Studio? Need to create a Live CD,  an app you want
>>>to package and distribute , or create your own linux distro. Give SUSE
>>>Studio a try. www.susestudio.com.
>>>See you at Southeast Linux Fest, June 8-10, 2012 in Charlotte, NC.
>>>www.southeastlinuxfest.org
>>>_______________________________________________
>>>Ale mailing list
>>>Ale at ale.org
>>>http://mail.ale.org/mailman/listinfo/ale
>>>See JOBS, ANNOUNCE and SCHOOLS lists at
>>>http://mail.ale.org/mailman/listinfo
>>
>>
>> _______________________________________________
>> Ale mailing list
>> Ale at ale.org
>> http://mail.ale.org/mailman/listinfo/ale
>> See JOBS, ANNOUNCE and SCHOOLS lists at
>> http://mail.ale.org/mailman/listinfo
>
> Same thing.  Very stange.
>
> --
> Terror PUP a.k.a
> Chuck "PUP" Payne
>
> (678) 636-9678

Ok, I have done more trouble shooting and it appears to be a FreeNAS
issue . So anyone that has worked with FreeNAS and can help me fix
this...

 I think that error in the logs is part of it. When I try to see what
is be exported I am see thing

showmount -e
Exports list on localhost:
/mnt/ZVG0/archive/creek 10.1.0.16 10.1.0.0
/mnt/ZVG0/Storage 10.1.0.0
/mnt/ZVG0/OS_Installs 10.1.0.0
/mnt/ZVG0/Backup 10.1.0.0
/mnt/ZVG0/backup_db/nakota 10.1.0.0 10.0.0.0 10.0.0.123 10.1.0.123
10.1.0.27 10.1.0.25 10.0.0.22 10.1.0.22 10.1.0.79 10.1.0.5


but my export is this....
cat /etc/exports
/mnt/ZVG0/backup_db/nakota -alldirs -network 10.1.0.0/24
/mnt/ZVG0/backup_db/prodopsdb01 -alldirs -network 10.1.0.0/24
/mnt/ZVG0/backup_db/prod_norwich -alldirs -network 10.1.0.0/24
/mnt/ZVG0/backup_db -alldirs -network 10.1.0.0/24
/mnt/ZVG0/archive/creek -alldirs -maproot=root:wheel 10.1.0.16

/mnt/ZVG0/AdminScripts -alldirs -maproot=root:wheel -network 10.1.0.0/24
/mnt/ZVG0/home -alldirs -maproot=root:wheel -network 10.0.0.0/24
/mnt/ZVG0/backup_scandb01 -alldirs -maproot=root:wheel 10.0.0.123 10.1.0.123

/mnt/ZVG0/backup_amsterdam -alldirs -maproot=root:wheel 10.1.0.27

/mnt/ZVG0/backup_helsinki -alldirs -maproot=root:wheel 10.1.0.25

/mnt/ZVG0/backup_nagano -alldirs -maproot=root:wheel 10.0.0.22 10.1.0.22

/mnt/ZVG0/backup_norwich -alldirs -maproot=root:wheel -network 10.1.0.0/24
/mnt/ZVG0/backup_cambridge -alldirs -maproot=root:wheel 10.1.0.79

/mnt/ZVG0/home -alldirs -maproot=root:wheel -network 10.1.0.0/24
/mnt/ZVG0/ftp-uploads -alldirs -network 10.0.0.0/24
/mnt/ZVG0/backup_blackfoot -alldirs -maproot=root:wheel 10.1.0.5

/mnt/ZVG0/OS_Installs -alldirs -network 10.1.0.0/24
/mnt/ZVG0/Backup -alldirs -network 10.1.0.0/24
/mnt/ZVG0/Storage -alldirs -network 10.1.0.0/24
/mnt/ZVG0/archive -alldirs -maproot=root:wheel -network 10.1.0.0/24


when I turn off nfs and back on message log is show these nfs shares as bad

Nov 14 12:02:22 sgd-lnx-nas-prd-02 mountd[35378]: can't change
attributes for /mnt/ZVG0/backup_db/prodopsdb01
Nov 14 12:02:22 sgd-lnx-nas-prd-02 mountd[35378]: bad exports list
line /mnt/ZVG0/backup_db/prodopsdb01 -alldirs -network 10.1.0.0/24
Nov 14 12:02:22 sgd-lnx-nas-prd-02 mountd[35378]: can't change
attributes for /mnt/ZVG0/backup_db/prod_norwich
Nov 14 12:02:22 sgd-lnx-nas-prd-02 mountd[35378]: bad exports list
line /mnt/ZVG0/backup_db/prod_norwich -alldirs -network 10.1.0.0/24
Nov 14 12:02:22 sgd-lnx-nas-prd-02 mountd[35378]: can't change
attributes for /mnt/ZVG0/backup_db
Nov 14 12:02:22 sgd-lnx-nas-prd-02 mountd[35378]: bad exports list
line /mnt/ZVG0/backup_db -alldirs -network 10.1.0.0/24
Nov 14 12:02:22 sgd-lnx-nas-prd-02 mountd[35378]: can't change
attributes for /mnt/ZVG0/AdminScripts
Nov 14 12:02:22 sgd-lnx-nas-prd-02 mountd[35378]: bad exports list
line /mnt/ZVG0/AdminScripts -alldirs -maproot
Nov 14 12:02:22 sgd-lnx-nas-prd-02 mountd[35378]: can't change
attributes for /mnt/ZVG0/backup_norwich
Nov 14 12:02:22 sgd-lnx-nas-prd-02 mountd[35378]: bad exports list
line /mnt/ZVG0/backup_norwich -alldirs -maproot
Nov 14 12:02:22 sgd-lnx-nas-prd-02 mountd[35378]: can't change
attributes for /mnt/ZVG0/home
Nov 14 12:02:22 sgd-lnx-nas-prd-02 mountd[35378]: bad exports list
line /mnt/ZVG0/home -alldirs -maproot
Nov 14 12:02:22 sgd-lnx-nas-prd-02 mountd[35378]: can't change
attributes for /mnt/ZVG0/ftp-uploads
Nov 14 12:02:22 sgd-lnx-nas-prd-02 mountd[35378]: bad exports list
line /mnt/ZVG0/ftp-uploads -alldirs -network 10.0.0.0/24



-- 
Terror PUP a.k.a
Chuck "PUP" Payne

(678) 636-9678
-----------------------------------------
Discover it! Enjoy it! Share it! openSUSE Linux.
-----------------------------------------
openSUSE -- en.opensuse.org/User:Terrorpup
openSUSE Ambassador/openSUSE Member
Community Manager -- Southeast Linux Foundation (SELF)
skype,twiiter,identica,friendfeed -- terrorpup
freenode(irc) --terrorpup/lupinstein
Register Linux Userid: 155363

Have you tried SUSE Studio? Need to create a Live CD,  an app you want
to package and distribute , or create your own linux distro. Give SUSE
Studio a try. www.susestudio.com.
See you at Southeast Linux Fest, June 8-10, 2012 in Charlotte, NC.
www.southeastlinuxfest.org


More information about the Ale mailing list