Re: CentOS 7.2 /tmp not mounting every bootup
seekuel <[email protected]> Wed, 8 Jun 2016 13:02:47 +0800
| Newsgroups | gmane.org.user-groups.linux.philippine |
|---|---|
| Message-ID | <CABgN9w8GPFNzqhxKvnaEq2CiB3Brb3VP=VOj+oq7gzOv4sHkkw@mail.gmail.com> |
--===============0170134823842310780== Content-Type: multipart/alternative; boundary=001a113d21747fb9bf0534bd3746 --001a113d21747fb9bf0534bd3746 Content-Type: text/plain; charset=UTF-8 I did but with no avail. For now, it was decided to destroy the image and create again from template (go-live is fast approaching). Then all the services were recreated. Multiple reboots and configurations were made and /tmp is mounted correctly every after reboot. Not sure what happened previously that resulted on a scenario that /tmp is not mounted as per fstab. Will observe if the same scenario will happen in the new box. Thanks for the help Ian. -- On Wed, Jun 8, 2016 at 9:04 AM, Ian Dexter R. Marquez <[email protected]> wrote: > OK, it's masked so that means tmpfs is disabled. Have you already tried > specifying the UUID in fstab instead? > > On Tue, 7 Jun 2016 at 18:07 seekuel <[email protected]> wrote: > >> Hi Ian, >> >> It shows masked: >> >> # systemctl is-enabled tmp.mount >> masked >> >> Thanks po >> >> On Tue, Jun 7, 2016 at 9:07 AM, Ian Dexter R. Marquez < >> [email protected]> wrote: >> >>> Just a guess, but is `tmp.mount' enabled? >>> >>> systemctl is-enabled tmp.mount >>> >>> On Mon, 6 Jun 2016 at 15:16 seekuel <[email protected]> wrote: >>> >>>> Hi, >>>> >>>> Good day. >>>> >>>> In our Linux box, we have an entry in fstab to mount /tmp but every >>>> time the system is bootup /tmp is not mounted. Mounting manually with >>>> command 'mount /tmp' will mount the partition correctly as per fstab. >>>> >>>> I have tried to add the command 'mount /tmp' in rc.local but its not >>>> working /tmp is not mounted. >>>> >>>> I can delete /tmp directory and every time I reboot the system /tmp is >>>> recreated with 1777 permission. >>>> >>>> I can also see files under /tmp: >>>> >>>> >>>> root@xxx: [/tmp] >>>> # df -h . >>>> Filesystem Size Used Avail Use% Mounted on >>>> /dev/mapper/ol00-root 3.8G 80M 3.7G 3% / >>>> >>>> root@xxx: [/tmp] >>>> # ll -al >>>> total 8 >>>> drwxrwxrwt 7 root root 136 Jun 6 03:13 . >>>> dr-xr-xr-x. 29 root root 4096 Jun 6 02:18 .. >>>> drwxrwxrwt 2 root root 6 Jun 6 02:19 .font-unix >>>> drwxrwxrwt 2 root root 6 Jun 6 02:19 .ICE-unix >>>> drwxrwxrwt 2 root root 6 Jun 6 02:19 .Test-unix >>>> drwxrwxrwt 2 root root 6 Jun 6 02:19 .X11-unix >>>> drwxrwxrwt 2 root root 6 Jun 6 02:19 .XIM-unix >>>> -rw------- 1 root root 451 Jun 6 02:29 >>>> yum_save_tx.2016-06-06.02-29.HL1NRp.yumtx >>>> >>>> >>>> fstab: /dev/mapper/ol01-lvol0 /tmp ext3 >>>> defaults 0 0 >>>> >>>> I also tried changing the partition from xfs to ext3 but to no avail. >>>> When I update /tmp to /tmp1 in fstab, then after bootup the system will >>>> correctly mount /tmp1. >>>> >>>> Anyone have experience this? Any suggestions to solve this? >>>> >>>> Thanks >>>> _________________________________________________ >>>> Philippine Linux Users' Group (PLUG) Mailing List >>>> http://lists.linux.org.ph/mailman/listinfo/plug >>>> Searchable Archives: http://archives.free.net.ph >>> >>> -- >>> Ian Dexter Marquez >>> http://www.iandexter.net >>> >>> _________________________________________________ >>> Philippine Linux Users' Group (PLUG) Mailing List >>> http://lists.linux.org.ph/mailman/listinfo/plug >>> Searchable Archives: http://archives.free.net.ph >>> >> >> _________________________________________________ >> Philippine Linux Users' Group (PLUG) Mailing List >> http://lists.linux.org.ph/mailman/listinfo/plug >> Searchable Archives: http://archives.free.net.ph > > -- > Ian Dexter Marquez > http://www.iandexter.net > > _________________________________________________ > Philippine Linux Users' Group (PLUG) Mailing List > http://lists.linux.org.ph/mailman/listinfo/plug > Searchable Archives: http://archives.free.net.ph > --001a113d21747fb9bf0534bd3746 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">I did but with no avail.<div><br></div><div>For now, it wa= s decided to destroy the image and create again from template (go-live is f= ast approaching). Then all the services were recreated.</div><div><br></div= ><div>Multiple reboots and configurations were made and /tmp is mounted cor= rectly every after reboot. Not sure what happened previously that resulted = on a scenario that /tmp is not mounted as per fstab.</div><div><br></div><d= iv>Will observe if the same scenario will happen in the new box.</div><div>= <br></div><div>Thanks for the help Ian.</div><div><br></div><div>--</div></= div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Wed, Jun 8= , 2016 at 9:04 AM, Ian Dexter R. Marquez <span dir=3D"ltr"><<a href=3D"m= ailto:[email protected]" target=3D"_blank">[email protected]</a>></s= pan> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex= ;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">OK, it's= masked so that means tmpfs is disabled. Have you already tried specifying = the UUID in fstab instead?</div><div class=3D"HOEnZb"><div class=3D"h5"><br= ><div class=3D"gmail_quote"><div dir=3D"ltr">On Tue, 7 Jun 2016 at 18:07 se= ekuel <<a href=3D"mailto:[email protected]" target=3D"_blank">seekuel@gm= ail.com</a>> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"= margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"= ltr">Hi Ian,<div><br></div><div>It shows masked:</div><div><br></div><div><= div># systemctl is-enabled tmp.mount</div><div>masked</div></div><div><br><= /div><div>Thanks po</div></div><div class=3D"gmail_extra"><br><div class=3D= "gmail_quote">On Tue, Jun 7, 2016 at 9:07 AM, Ian Dexter R. Marquez <span d= ir=3D"ltr"><<a href=3D"mailto:[email protected]" target=3D"_blank">ian= [email protected]</a>></span> wrote:<br><blockquote class=3D"gmail_quote"= style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><d= iv dir=3D"ltr">Just a guess, but is `tmp.mount' enabled?<br><br>systemc= tl is-enabled tmp.mount<div><br><div class=3D"gmail_quote"><div><div><div d= ir=3D"ltr">On Mon, 6 Jun 2016 at 15:16 seekuel <<a href=3D"mailto:seekue= [email protected]" target=3D"_blank">[email protected]</a>> wrote:<br></div></= div></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bord= er-left:1px #ccc solid;padding-left:1ex"><div><div><div dir=3D"ltr">Hi,<div= ><br></div><div>Good day.</div><div><br></div><div>In our Linux box, we hav= e an entry in fstab to mount /tmp but every time the system is bootup /tmp = is not mounted. Mounting manually with command 'mount /tmp' will mo= unt the partition correctly as per fstab.</div><div><br></div><div>I have t= ried to add the command 'mount /tmp' in rc.local but its not workin= g /tmp is not mounted.</div><div><br></div><div>I can delete /tmp directory= and every time I reboot the system /tmp is recreated with 1777 permission.= </div><div><br></div><div>I can also see files under /tmp:</div><div><br></= div><div><div><br></div><div>root@xxx: [/tmp]</div><div># df -h .</div><div= >Filesystem =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Size =C2=A0Used Avail= Use% Mounted on</div><div>/dev/mapper/ol00-root =C2=A03.8G =C2=A0 80M =C2= =A03.7G =C2=A0 3% /</div><div><br></div><div>root@xxx: [/tmp]</div><div># l= l -al</div><div>total 8</div><div>drwxrwxrwt =C2=A0 7 root root =C2=A0136 J= un =C2=A06 03:13 .</div><div>dr-xr-xr-x. 29 root root 4096 Jun =C2=A06 02:1= 8 ..</div><div>drwxrwxrwt =C2=A0 2 root root =C2=A0 =C2=A06 Jun =C2=A06 02:= 19 .font-unix</div><div>drwxrwxrwt =C2=A0 2 root root =C2=A0 =C2=A06 Jun = =C2=A06 02:19 .ICE-unix</div><div>drwxrwxrwt =C2=A0 2 root root =C2=A0 =C2= =A06 Jun =C2=A06 02:19 .Test-unix</div><div>drwxrwxrwt =C2=A0 2 root root = =C2=A0 =C2=A06 Jun =C2=A06 02:19 .X11-unix</div><div>drwxrwxrwt =C2=A0 2 ro= ot root =C2=A0 =C2=A06 Jun =C2=A06 02:19 .XIM-unix</div><div>-rw------- =C2= =A0 1 root root =C2=A0451 Jun =C2=A06 02:29 yum_save_tx.2016-06-06.02-29.HL= 1NRp.yumtx</div></div><div><br></div><div><br></div><div>fstab: /dev/mapper= /ol01-lvol0 =C2=A0/tmp =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0ext3 =C2=A0 =C2=A0 defaults =C2=A0 =C2=A0 =C2=A0 =C2=A00 0= </div><div><br></div><div>I also tried changing the partition from xfs to e= xt3 but to no avail. When I update /tmp to /tmp1 in fstab, then after bootu= p the system will correctly mount /tmp1.</div><div><br></div><div>Anyone ha= ve experience this? Any suggestions to solve this?<br></div><div><br></div>= <div>Thanks</div></div></div></div> _________________________________________________<br> Philippine Linux Users' Group (PLUG) Mailing List<br> <a href=3D"http://lists.linux.org.ph/mailman/listinfo/plug" rel=3D"noreferr= er" target=3D"_blank">http://lists.linux.org.ph/mailman/listinfo/plug</a><b= r> Searchable Archives: <a href=3D"http://archives.free.net.ph" rel=3D"norefer= rer" target=3D"_blank">http://archives.free.net.ph</a></blockquote></div></= div></div><span><font color=3D"#888888"><div dir=3D"ltr">-- <br></div><div = data-smartmail=3D"gmail_signature"><div dir=3D"ltr">Ian Dexter Marquez<br><= a href=3D"http://www.iandexter.net" target=3D"_blank">http://www.iandexter.= net</a></div></div> </font></span><br>_________________________________________________<br> Philippine Linux Users' Group (PLUG) Mailing List<br> <a href=3D"http://lists.linux.org.ph/mailman/listinfo/plug" rel=3D"noreferr= er" target=3D"_blank">http://lists.linux.org.ph/mailman/listinfo/plug</a><b= r> Searchable Archives: <a href=3D"http://archives.free.net.ph" rel=3D"norefer= rer" target=3D"_blank">http://archives.free.net.ph</a><br></blockquote></di= v><br></div> _________________________________________________<br> Philippine Linux Users' Group (PLUG) Mailing List<br> <a href=3D"http://lists.linux.org.ph/mailman/listinfo/plug" rel=3D"noreferr= er" target=3D"_blank">http://lists.linux.org.ph/mailman/listinfo/plug</a><b= r> Searchable Archives: <a href=3D"http://archives.free.net.ph" rel=3D"norefer= rer" target=3D"_blank">http://archives.free.net.ph</a></blockquote></div><d= iv dir=3D"ltr">-- <br></div><div data-smartmail=3D"gmail_signature"><div di= r=3D"ltr">Ian Dexter Marquez<br><a href=3D"http://www.iandexter.net" target= =3D"_blank">http://www.iandexter.net</a></div></div> </div></div><br>_________________________________________________<br> Philippine Linux Users' Group (PLUG) Mailing List<br> <a href=3D"http://lists.linux.org.ph/mailman/listinfo/plug" rel=3D"noreferr= er" target=3D"_blank">http://lists.linux.org.ph/mailman/listinfo/plug</a><b= r> Searchable Archives: <a href=3D"http://archives.free.net.ph" rel=3D"norefer= rer" target=3D"_blank">http://archives.free.net.ph</a><br></blockquote></di= v><br></div> --001a113d21747fb9bf0534bd3746-- --===============0170134823842310780== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List http://lists.linux.org.ph/mailman/listinfo/plug Searchable Archives: http://archives.free.net.ph --===============0170134823842310780==--