export nfs share on gpfs with no authentication
Hi, I have gpfs with 2 Nodes (redhat). I am trying to create NFS share - So I would be able to mount and access it from another linux machine. I receive error: Current authentication: none is invalid. What do i need to configure ? PLEASE NOTE: I dont have the SMB package at the moment, I dont want authentication on the NFS export.. While trying to create NFS (I execute the following): [root@LH20-GPFS1 ~]# mmnfs export add /fs_gpfs01 -c "* Access_Type=RW,Protocols=3:4,Squash=no_root_squash)" I receive the following error: [root@LH20-GPFS1 ~]# mmnfs export add /fs_gpfs01 -c "*(Access_Type=RW,Protocols=3:4,Squash=no_root_squash)" mmcesfuncs.sh: Current authentication: none is invalid. This operation can not be completed without correct Authentication configuration. Configure authentication using: mmuserauth mmnfs export add: Command failed. Examine previous error messages to determine cause. [root@LH20-GPFS1 ~]# mmuserauth service list FILE access not configured PARAMETERS VALUES ------------------------------------------------- OBJECT access not configured PARAMETERS VALUES ------------------------------------------------- [root@LH20-GPFS1 ~]# Some additional information on cluster: ============================== [root@LH20-GPFS1 ~]# mmlsmgr file system manager node ---------------- ------------------ fs_gpfs01 10.10.158.61 (LH20-GPFS1) Cluster manager node: 10.10.158.61 (LH20-GPFS1) [root@LH20-GPFS1 ~]# mmgetstate -a Node number Node name GPFS state ------------------------------------------ 1 LH20-GPFS1 active 3 LH20-GPFS2 active [root@LH20-GPFS1 ~]# mmlscluster GPFS cluster information ======================== GPFS cluster name: LH20-GPFS1 GPFS cluster id: 10777108240438931454 GPFS UID domain: LH20-GPFS1 Remote shell command: /usr/bin/ssh Remote file copy command: /usr/bin/scp Repository type: CCR Node Daemon node name IP address Admin node name Designation -------------------------------------------------------------------- 1 LH20-GPFS1 10.10.158.61 LH20-GPFS1 quorum-manager 3 LH20-GPFS2 10.10.158.62 LH20-GPFS2 quorum
Ilan, you must create some type of authentication mechanism for CES to work properly first. If you want a quick and dirty way that would just use your local /etc/passwd try this. /usr/lpp/mmfs/bin/mmuserauth service create --data-access-method file --type userdefined Mark -----Original Message----- From: Ilan Schwarts [mailto:ilan84@gmail.com] Sent: Monday, July 24, 2017 5:37 AM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: [gpfsug-discuss] export nfs share on gpfs with no authentication Hi, I have gpfs with 2 Nodes (redhat). I am trying to create NFS share - So I would be able to mount and access it from another linux machine. I receive error: Current authentication: none is invalid. What do i need to configure ? PLEASE NOTE: I dont have the SMB package at the moment, I dont want authentication on the NFS export.. While trying to create NFS (I execute the following): [root@LH20-GPFS1 ~]# mmnfs export add /fs_gpfs01 -c "* Access_Type=RW,Protocols=3:4,Squash=no_root_squash)" I receive the following error: [root@LH20-GPFS1 ~]# mmnfs export add /fs_gpfs01 -c "*(Access_Type=RW,Protocols=3:4,Squash=no_root_squash)" mmcesfuncs.sh: Current authentication: none is invalid. This operation can not be completed without correct Authentication configuration. Configure authentication using: mmuserauth mmnfs export add: Command failed. Examine previous error messages to determine cause. [root@LH20-GPFS1 ~]# mmuserauth service list FILE access not configured PARAMETERS VALUES ------------------------------------------------- OBJECT access not configured PARAMETERS VALUES ------------------------------------------------- [root@LH20-GPFS1 ~]# Some additional information on cluster: ============================== [root@LH20-GPFS1 ~]# mmlsmgr file system manager node ---------------- ------------------ fs_gpfs01 10.10.158.61 (LH20-GPFS1) Cluster manager node: 10.10.158.61 (LH20-GPFS1) [root@LH20-GPFS1 ~]# mmgetstate -a Node number Node name GPFS state ------------------------------------------ 1 LH20-GPFS1 active 3 LH20-GPFS2 active [root@LH20-GPFS1 ~]# mmlscluster GPFS cluster information ======================== GPFS cluster name: LH20-GPFS1 GPFS cluster id: 10777108240438931454 GPFS UID domain: LH20-GPFS1 Remote shell command: /usr/bin/ssh Remote file copy command: /usr/bin/scp Repository type: CCR Node Daemon node name IP address Admin node name Designation -------------------------------------------------------------------- 1 LH20-GPFS1 10.10.158.61 LH20-GPFS1 quorum-manager 3 LH20-GPFS2 10.10.158.62 LH20-GPFS2 quorum _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss This message (including any attachments) is intended only for the use of the individual or entity to which it is addressed and may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any use, dissemination, distribution, or copying of this communication is strictly prohibited. This message may be viewed by parties at Sirius Computer Solutions other than those named in the message header. This message does not contain an official representation of Sirius Computer Solutions. If you have received this communication in error, notify Sirius Computer Solutions immediately and (i) destroy this message if a facsimile or (ii) delete this message immediately if this is an electronic communication. Thank you. Sirius Computer Solutions<http://www.siriuscom.com>
On Mon, 24 Jul 2017 13:36:41 +0300, Ilan Schwarts said:
Hi, I have gpfs with 2 Nodes (redhat). I am trying to create NFS share - So I would be able to mount and access it from another linux machine.
While trying to create NFS (I execute the following): [root@LH20-GPFS1 ~]# mmnfs export add /fs_gpfs01 -c "* Access_Type=RW,Protocols=3:4,Squash=no_root_squash)"
You can get away with little to no authentication for NFSv3, but not for NFSv4. Try with Protocols=3 only and mmuserauth service create --type userdefined that should get you Unix-y NFSv3 UID/GID support and "trust what the NFS client tells you". This of course only works sanely if each NFS export is only to a set of machines in the same administrative domain that manages their UID/GIDs. Exporting to two sets of machines that don't coordinate their UID/GID space is, of course, where hilarity and hijinks ensue....
Hi, While trying to add the userdefined auth, I receive error that SMB service not enabled. I am currently working on a spectrum scale cluster, and i dont have the SMB package, I am waiting for it.. is there a way to export NFSv3 using the spectrum scale tools without SMB package ? [root@LH20-GPFS1 ~]# mmuserauth service create --type userdefined : SMB service not enabled. Enable SMB service first. mmcesuserauthcrservice: Command failed. Examine previous error messages to determine cause. I exported the NFS via /etc/exports and than ./exportfs -a .. It works fine, I was able to mount the gpfs export from another machine.. this was my work-around since the spectrum scale tools failed to export NFSv3 On Mon, Jul 24, 2017 at 7:35 PM, <valdis.kletnieks@vt.edu> wrote:
On Mon, 24 Jul 2017 13:36:41 +0300, Ilan Schwarts said:
Hi, I have gpfs with 2 Nodes (redhat). I am trying to create NFS share - So I would be able to mount and access it from another linux machine.
While trying to create NFS (I execute the following): [root@LH20-GPFS1 ~]# mmnfs export add /fs_gpfs01 -c "* Access_Type=RW,Protocols=3:4,Squash=no_root_squash)"
You can get away with little to no authentication for NFSv3, but not for NFSv4. Try with Protocols=3 only and
mmuserauth service create --type userdefined
that should get you Unix-y NFSv3 UID/GID support and "trust what the NFS client tells you". This of course only works sanely if each NFS export is only to a set of machines in the same administrative domain that manages their UID/GIDs. Exporting to two sets of machines that don't coordinate their UID/GID space is, of course, where hilarity and hijinks ensue....
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- - Ilan Schwarts
Hi Did you try to run this command from a CES designated node ? If no, then try executing the command from a CES node: mmuserauth service create --data-access-type file --type userdefined Best regards, Varun Mittal Cloud/Object Scrum @ Spectrum Scale ETZ, Pune From: Ilan Schwarts <ilan84@gmail.com> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 25/07/2017 10:22 AM Subject: Re: [gpfsug-discuss] export nfs share on gpfs with no authentication Sent by: gpfsug-discuss-bounces@spectrumscale.org Hi, While trying to add the userdefined auth, I receive error that SMB service not enabled. I am currently working on a spectrum scale cluster, and i dont have the SMB package, I am waiting for it.. is there a way to export NFSv3 using the spectrum scale tools without SMB package ? [root@LH20-GPFS1 ~]# mmuserauth service create --type userdefined : SMB service not enabled. Enable SMB service first. mmcesuserauthcrservice: Command failed. Examine previous error messages to determine cause. I exported the NFS via /etc/exports and than ./exportfs -a .. It works fine, I was able to mount the gpfs export from another machine.. this was my work-around since the spectrum scale tools failed to export NFSv3 On Mon, Jul 24, 2017 at 7:35 PM, <valdis.kletnieks@vt.edu> wrote:
On Mon, 24 Jul 2017 13:36:41 +0300, Ilan Schwarts said:
Hi, I have gpfs with 2 Nodes (redhat). I am trying to create NFS share - So I would be able to mount and access it from another linux machine.
While trying to create NFS (I execute the following): [root@LH20-GPFS1 ~]# mmnfs export add /fs_gpfs01 -c "* Access_Type=RW,Protocols=3:4,Squash=no_root_squash)"
You can get away with little to no authentication for NFSv3, but not for NFSv4. Try with Protocols=3 only and
mmuserauth service create --type userdefined
that should get you Unix-y NFSv3 UID/GID support and "trust what the NFS client tells you". This of course only works sanely if each NFS export is only to a set of machines in the same administrative domain that manages their UID/GIDs. Exporting to two sets of machines that don't coordinate their UID/GID space is, of course, where hilarity and hijinks ensue....
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- - Ilan Schwarts _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
participants (4)
-
Ilan Schwarts -
Mark Bush -
valdis.kletnieks@vt.edu -
Varun Mittal3
