[lustre-discuss] lustre-discuss Digest, Vol 134, Issue 27

Ms. Megan Larko dobsonunit at gmail.com
Thu May 11 09:48:48 PDT 2017


On the Subject of "ost doesn't mount", the Lustre community version 2.8.0
had a documented issue in that the SELinux context was appended at each
mount so the resulting behavior is that subsequent mounts would fail
because of multiple contexts which is an invalid configuration as noted
by  Strikwerda, Ger  in the "tunefs.lustre --print <dev>" command:

Persistent mount opts:
,errors=remount-ro,context=unconfined_u:object_r:user_
tmp_t:s0,context=unconfined_u:object_r:tmp_t:s0

A Solution:
The disabling of SELinux does certainly work, but my own solution was to
write a small script which ran on boot pror to the lustre file system mount
to re-write the parameters (saved from my initial printout from the
tunefs.lustre command) omitting the "context=......" section in the
'tunefs-lustre --mountfsoptions="...." '  This action allowed me to
continue to use Lustre 2.8.0 with SELinux in "targeted" mode.

FYI, this is LU-7002 and was patched 14 March 2016 in newer versions of
Lustre.

Cheers,
megan

On Thu, May 11, 2017 at 5:19 AM, <lustre-discuss-request at lists.lustre.org>
wrote:

> Send lustre-discuss mailing list submissions to
>         lustre-discuss at lists.lustre.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org
> or, via email, send a message with subject or body 'help' to
>         lustre-discuss-request at lists.lustre.org
>
> You can reach the person managing the list at
>         lustre-discuss-owner at lists.lustre.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of lustre-discuss digest..."
>
>
> Today's Topics:
>
>    1. Re: ost doesn't mount (Strikwerda, Ger)
>    2. Re: ost doesn't mount (Strikwerda, Ger)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 11 May 2017 10:34:28 +0200
> From: "Strikwerda, Ger" <g.j.c.strikwerda at rug.nl>
> To: Colin Faber <colin.faber at seagate.com>
> Cc: Lustre discussion <lustre-discuss at lists.lustre.org>
> Subject: Re: [lustre-discuss] ost doesn't mount
> Message-ID:
>         <CAC-SFsA=0DfFLopu2KHsU7WkxOc2x7LU7hWZDqL=
> FFRqH5_BEg at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Colin,
>
> [root at umcg-storage03 ~]# tunefs.lustre --print /dev/dm-2
> checking for existing Lustre data: found
> Reading CONFIGS/mountdata
>
>    Read previous values:
> Target:     umcgst08-OST0002
> Index:      2
> Lustre FS:  umcgst08
> Mount type: ldiskfs
> Flags:      0x2
>               (OST )
> Persistent mount opts:
> ,errors=remount-ro,context=unconfined_u:object_r:user_
> tmp_t:s0,context=unconfined_u:object_r:tmp_t:s0
> Parameters:  mgsnode=172.23.34.214 at tcp:172.23.34.213 at tcp
>
>
>
>
>    Permanent disk
> data:
>
> Target:
> umcgst08-OST0002
>
> Index:
> 2
>
> Lustre FS:
> umcgst08
>
> Mount type:
> ldiskfs
>
> Flags:
> 0x2
>
>               (OST
> )
>
> Persistent mount opts:
> ,errors=remount-ro,context=unconfined_u:object_r:user_
> tmp_t:s0,context=unconfined_u:object_r:tmp_t:s0
>
> Parameters:  mgsnode=172.23.34.214 at tcp:172.23.34.213 at tcp
>
>
>
> exiting before disk write.
>
> So it looks like the mount options are inside the filesystem? How do we get
> rid of those SELinux options? We have no mountoptions for this filesystem
> set in /etc/fstab
>
>
>
>
>
> On Wed, May 10, 2017 at 5:59 PM, Colin Faber <colin.faber at seagate.com>
> wrote:
>
> > 22 == invalid argument.
> >
> > Unrecognized mount option "context=unconfined_u:object_r:user_tmp_t:s0"
> > or missing value
> >
> > tunefs.lustre --print <ost>
> >
> > Do you have this option set within your mount options list?
> >
> > -cf
> >
> >
> > On Wed, May 10, 2017 at 7:19 AM, Strikwerda, Ger <
> g.j.c.strikwerda at rug.nl>
> > wrote:
> >
> >> Hi all,
> >>
> >> On a OSS with SElinux disabled we get a strange probably selinux related
> >> error when we want to mount the OST:
> >>
> >> [root at umcg-storage03 /]# cat /etc/selinux/config
> >> SELINUX=disabled
> >>
> >> # mount -t lustre /dev/dm-3 /mnt/umcgst08-01
> >>
> >> dmesg log:
> >>
> >> Lustre: Lustre: Build Version: 2.8.0-RC5--PRISTINE-2.6.32-573
> >> .12.1.el6_lustre.x86_64
> >>
> >> LDISKFS-fs (dm-3): Unrecognized mount option
> >> "context=unconfined_u:object_r:user_tmp_t:s0" or missing value
> >> LustreError: 3266:0:(osd_handler.c:6305:osd_mount())
> >> umcgst08-OST0001-osd: can't mount /dev/mapper/
> 360080e50002d4076000003ca52240901:
> >> -22
> >> LustreError: 3266:0:(obd_config.c:578:class_setup()) setup
> >> umcgst08-OST0001-osd failed (-22)
> >> LustreError: 3266:0:(obd_mount.c:203:lustre_start_simple())
> >> umcgst08-OST0001-osd setup error -22
> >> LustreError: 3266:0:(obd_mount_server.c:1764:server_fill_super())
> Unable
> >> to start osd on /dev/mapper/360080e50002d4076000003ca52240901: -22
> >> LustreError: 3266:0:(obd_mount.c:1426:lustre_fill_super()) Unable to
> >> mount  (-22)
> >>
> >> What does a -22 Unable to mount exactly means? And how can we get rid of
> >> the unrecognized mount options?
> >>
> >>
> >> --
> >>
> >> Vriendelijke groet,
> >>
> >> Ger StrikwerdaChef Special
> >> Rijksuniversiteit Groningen
> >> Centrum voor Informatie Technologie
> >> Unit Pragmatisch Systeembeheer
> >>
> >> Smitsborg
> >> Nettelbosje 1
> >> 9747 AJ Groningen
> >> Tel. 050 363 9276
> >> "God is hard, God is fair
> >>  some men he gave brains, others he gave hair"
> >>
> >>
> >> _______________________________________________
> >> lustre-discuss mailing list
> >> lustre-discuss at lists.lustre.org
> >> https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.lu
> >> stre.org_listinfo.cgi_lustre-2Ddiscuss-2Dlustre.org&d=
> >> DwICAg&c=IGDlg0lD0b-nebmJJ0Kp8A&r=x9pM59OqndbWw-lPPdr8w1Vud2
> >> 9EZigcxcNkz0uw5oQ&m=QjWbp50LlCVPLX6V9kTVUlp20HagxUa85u2p35Lj
> >> IO8&s=MwEH6wfs9JdiGbyrPBWzeGVdjSVk5BXb0m9A2UbNZh8&e=
> >>
> >>
> >
>
>
> --
>
> Vriendelijke groet,
>
> Ger StrikwerdaChef Special
> Rijksuniversiteit Groningen
> Centrum voor Informatie Technologie
> Unit Pragmatisch Systeembeheer
>
> Smitsborg
> Nettelbosje 1
> 9747 AJ Groningen
> Tel. 050 363 9276
> "God is hard, God is fair
>  some men he gave brains, others he gave hair"
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.lustre.org/pipermail/lustre-discuss-
> lustre.org/attachments/20170511/4edbfe10/attachment-0001.htm>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 11 May 2017 11:19:05 +0200
> From: "Strikwerda, Ger" <g.j.c.strikwerda at rug.nl>
> To: Colin Faber <colin.faber at seagate.com>
> Cc: Lustre discussion <lustre-discuss at lists.lustre.org>
> Subject: Re: [lustre-discuss] ost doesn't mount
> Message-ID:
>         <CAC-SFsDxQSa4PQ1ku2vqfVD_Xm+XNuyj8h90uHrz9Ajmu-FJGw at mail.
> gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> To answer my own question:
>
> # tunefs.lustre --mountfsoptions=" ,errors=remount-ro" /dev/dm-2
>
> # tunefs.lustre --print /dev/dm-2
> checking for existing Lustre data: found
> Reading CONFIGS/mountdata
>
>    Read previous values:
> Target:     umcgst08-OST0002
> Index:      2
> Lustre FS:  umcgst08
> Mount type: ldiskfs
> Flags:      0x2
>               (OST )
> Persistent mount opts: errors=remount-ro
> Parameters:  mgsnode=172.23.34.214 at tcp:172.23.34.213 at tcp
>
>
>    Permanent disk data:
> Target:     umcgst08-OST0002
> Index:      2
> Lustre FS:  umcgst08
> Mount type: ldiskfs
> Flags:      0x2
>               (OST )
> Persistent mount opts: errors=remount-ro
> Parameters:  mgsnode=172.23.34.214 at tcp:172.23.34.213 at tcp
>
> volumes are now able to mount, with SElinux disabled!
>
>
>
>
> On Thu, May 11, 2017 at 10:34 AM, Strikwerda, Ger <g.j.c.strikwerda at rug.nl
> >
> wrote:
>
> > Hi Colin,
> >
> > [root at umcg-storage03 ~]# tunefs.lustre --print /dev/dm-2
> > checking for existing Lustre data: found
> > Reading CONFIGS/mountdata
> >
> >    Read previous values:
> > Target:     umcgst08-OST0002
> > Index:      2
> > Lustre FS:  umcgst08
> > Mount type: ldiskfs
> > Flags:      0x2
> >               (OST )
> > Persistent mount opts: ,errors=remount-ro,context=
> > unconfined_u:object_r:user_tmp_t:s0,context=unconfined_u:
> object_r:tmp_t:s0
> > Parameters:  mgsnode=172.23.34.214 at tcp:172.23.34.213 at tcp
> >
> >
> >
> >
> >
> >
> >    Permanent disk data:
> >
> >
> > Target:     umcgst08-OST0002
> >
> > Index:      2
> >
> > Lustre FS:  umcgst08
> >
> > Mount type: ldiskfs
> >
> > Flags:      0x2
> >
> >               (OST )
> >
> >
> > Persistent mount opts: ,errors=remount-ro,context=
> > unconfined_u:object_r:user_tmp_t:s0,context=unconfined_u:
> > object_r:tmp_t:s0
> > Parameters:  mgsnode=172.23.34.214 at tcp:172.23.34.213 at tcp
> >
> >
> >
> >
> > exiting before disk write.
> >
> > So it looks like the mount options are inside the filesystem? How do we
> > get rid of those SELinux options? We have no mountoptions for this
> > filesystem set in /etc/fstab
> >
> >
> >
> >
> >
> > On Wed, May 10, 2017 at 5:59 PM, Colin Faber <colin.faber at seagate.com>
> > wrote:
> >
> >> 22 == invalid argument.
> >>
> >> Unrecognized mount option "context=unconfined_u:object_r:user_tmp_t:s0"
> >> or missing value
> >>
> >> tunefs.lustre --print <ost>
> >>
> >> Do you have this option set within your mount options list?
> >>
> >> -cf
> >>
> >>
> >> On Wed, May 10, 2017 at 7:19 AM, Strikwerda, Ger <
> g.j.c.strikwerda at rug.nl
> >> > wrote:
> >>
> >>> Hi all,
> >>>
> >>> On a OSS with SElinux disabled we get a strange probably selinux
> related
> >>> error when we want to mount the OST:
> >>>
> >>> [root at umcg-storage03 /]# cat /etc/selinux/config
> >>> SELINUX=disabled
> >>>
> >>> # mount -t lustre /dev/dm-3 /mnt/umcgst08-01
> >>>
> >>> dmesg log:
> >>>
> >>> Lustre: Lustre: Build Version: 2.8.0-RC5--PRISTINE-2.6.32-573
> >>> .12.1.el6_lustre.x86_64
> >>>
> >>> LDISKFS-fs (dm-3): Unrecognized mount option
> >>> "context=unconfined_u:object_r:user_tmp_t:s0" or missing value
> >>> LustreError: 3266:0:(osd_handler.c:6305:osd_mount())
> >>> umcgst08-OST0001-osd: can't mount /dev/mapper/
> 360080e50002d4076000003ca52240901:
> >>> -22
> >>> LustreError: 3266:0:(obd_config.c:578:class_setup()) setup
> >>> umcgst08-OST0001-osd failed (-22)
> >>> LustreError: 3266:0:(obd_mount.c:203:lustre_start_simple())
> >>> umcgst08-OST0001-osd setup error -22
> >>> LustreError: 3266:0:(obd_mount_server.c:1764:server_fill_super())
> >>> Unable to start osd on /dev/mapper/360080e50002d4076000003ca52240901:
> >>> -22
> >>> LustreError: 3266:0:(obd_mount.c:1426:lustre_fill_super()) Unable to
> >>> mount  (-22)
> >>>
> >>> What does a -22 Unable to mount exactly means? And how can we get rid
> of
> >>> the unrecognized mount options?
> >>>
> >>>
> >>> --
> >>>
> >>> Vriendelijke groet,
> >>>
> >>> Ger StrikwerdaChef Special
> >>> Rijksuniversiteit Groningen
> >>> Centrum voor Informatie Technologie
> >>> Unit Pragmatisch Systeembeheer
> >>>
> >>> Smitsborg
> >>> Nettelbosje 1
> >>> 9747 AJ Groningen
> >>> Tel. 050 363 9276
> >>> "God is hard, God is fair
> >>>  some men he gave brains, others he gave hair"
> >>>
> >>>
> >>> _______________________________________________
> >>> lustre-discuss mailing list
> >>> lustre-discuss at lists.lustre.org
> >>> https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.lu
> >>> stre.org_listinfo.cgi_lustre-2Ddiscuss-2Dlustre.org&d=DwICAg
> >>> &c=IGDlg0lD0b-nebmJJ0Kp8A&r=x9pM59OqndbWw-lPPdr8w1Vud29EZi
> >>> gcxcNkz0uw5oQ&m=QjWbp50LlCVPLX6V9kTVUlp20HagxUa85u2p35LjIO8&
> >>> s=MwEH6wfs9JdiGbyrPBWzeGVdjSVk5BXb0m9A2UbNZh8&e=
> >>>
> >>>
> >>
> >
> >
> > --
> >
> > Vriendelijke groet,
> >
> > Ger StrikwerdaChef Special
> > Rijksuniversiteit Groningen
> > Centrum voor Informatie Technologie
> > Unit Pragmatisch Systeembeheer
> >
> > Smitsborg
> > Nettelbosje 1
> > 9747 AJ Groningen
> > Tel. 050 363 9276
> > "God is hard, God is fair
> >  some men he gave brains, others he gave hair"
> >
> >
>
>
> --
>
> Vriendelijke groet,
>
> Ger StrikwerdaChef Special
> Rijksuniversiteit Groningen
> Centrum voor Informatie Technologie
> Unit Pragmatisch Systeembeheer
>
> Smitsborg
> Nettelbosje 1
> 9747 AJ Groningen
> Tel. 050 363 9276
> "God is hard, God is fair
>  some men he gave brains, others he gave hair"
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.lustre.org/pipermail/lustre-discuss-
> lustre.org/attachments/20170511/7e25f3f1/attachment.htm>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> lustre-discuss mailing list
> lustre-discuss at lists.lustre.org
> http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org
>
>
> ------------------------------
>
> End of lustre-discuss Digest, Vol 134, Issue 27
> ***********************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/attachments/20170511/4d0fa3e8/attachment-0001.htm>


More information about the lustre-discuss mailing list