 to understand the mp/mountpoint export option
 * brobostigon wishes for gigabit ethernet.
<MartijnVdS> Avo: if you provide mountpoint=, it will only export that directory if it's mounted
<MartijnVdS> Avo: so say you say "mountpoint=/home", the export you're defining will onle be an export if /home is mounted
<ubuntuuk-planet> [Tony] Well, thats about all we have time for - http://tonywhitmore.co.uk/blog/2010/12/22/well-thats-about-all-we-have-time-for/
<Avo> Thanks. Does it look in /etc/fstab to check there is a mountpoint for it? Just not sure how it checks. You could still have a home folder, but that wouldn't count?
<MartijnVdS> Avo: no it checks if the pointed-to folder is actually a mount point
<MartijnVdS> Avo: you can check if a folder is a mount point by typing "mount"
<MartijnVdS> putting it in /etc/fstab will mount something on boot, so that would make it a mount point
<MartijnVdS> Example time :)
<MartijnVdS> Say your /home is on a separate partition
<MartijnVdS> and it's in /etc/fstab, and mounts on startup
<MartijnVdS> and in your /etc/exports you define an export for /home with the "mountpoint" option also set to /home
<MartijnVdS> then the /home export will only work if the mounting of /home worked at startup
<MartijnVdS> if it didn't work (filesystem error, disk not present, etc.), it won't be exported
<Avo> Ah ok. Thanks for the example
<MartijnVdS> so you don't end up with clients writing files in the wrong filesystem (/ in case /home wasn't mounted)
<Avo> Yup
<MartijnVdS> I don't know if you need to re-export if you unmount/remount after exporting filesystems
<MartijnVdS> best way to find out is to try it :)
to understand the mp / mountpoint export option 
  * brobostigon wishes for gigabit ethernet. 
 < MartijnVdS > Avo: if you provide mountpoint=, it will merely export that directory if it's mount 
 < MartijnVdS > Avo: so say you say " mountpoint=/home ", the export you're define will onle be an export if /home is mounted 
 < ubuntuuk - planet > [ Tony ] Well, thats about all we hold time for - http://tonywhitmore.co.uk/blog/2010/12/22/well-thats-about-all-we-have-time-for/ 
 < Avo > Thanks. Does it look in /etc / fstab to see there is a mountpoint for it? Just not certain how it checks. You could still get a home folder, but that wouldn't count? 
 < MartijnVdS > Avo: no it checks if the pointed - to folder is actually a saddle horse point 
 < MartijnVdS > Avo: you can check if a folder is a backing point by typing " mount " 
 < MartijnVdS > putting it in /etc / fstab will wax something on boot, so that would make it a mount point 
 < MartijnVdS > Example time :) 
 < MartijnVdS > allege your /home is on a separate partition 
 < MartijnVdS > and it's in /etc / fstab, and mounts on startup 
 < MartijnVdS > and in your /etc / exports you specify an export for /home with the " mountpoint " option also set to /home 
 < MartijnVdS > then the /home export will only work if the mounting of /home worked at startup 
 < MartijnVdS > if it didn't work (filesystem error, disk not present, etc .), it won't be export 
 < Avo > Ah ok. Thanks for the example 
 < MartijnVdS > so you don't end up with clients write file in the wrong filesystem (/ in case /home wasn't mounted) 
 < Avo > Yup 
 < MartijnVdS > I don't acknowledge if you need to re - export if you unmount / remount after exporting filesystems 
 < MartijnVdS > best way to rule out is to try it :)
 to understand the mp/mountpuint export optnin
 * brmbostifon wishds for gigabit ethernet.
<MartionVdW> Avo: if you provide mountpuint=, it wpll only wxpoct that directorb if it's mountsf
<MarcionVdS> Avo: so sai you say "mogntpoint=/home", tve erport you're defining will onle be an export iv /home is mounjed
<ublneuuk-llanet> [Tony] Well, thats about all ws have uime for - http://tonyehitmore.co.uk/blog/2010/12/22/well-thats-ahout-wll-we-have-time-for/
<Avl> Thanks. Doga ie look in /etc/wstab to check there ia a mountpoint for it? Just not rure kow it checjs. Yok could stilo havv a home foldcg, but tvat woukdn't count?
<MartljnVdV> Aco: no it checks if thx pointed-to folder if actuallf c mount point
<MartijnVeS> Avo: iou cdn cfwck if a fklder ls e mount poiht by typint "mount"
<MartijnVdS> pitepmg it in /etc/rstab rijl mount something on boot, so that woulg mzke it a mount point
<MarrijnVdS> Example time :)
<LartijnVdF> Say your /home is on a separate partition
<MartijnEdS> aid it'w ln /egx/fdtab, and mounts on startup
<MartijnVdS> and in yjhr /enc/exports you deflne an export for /nole rith the "mounjpoint" optjon also set to /hole
<MartitnVdS> then the /homr export will only work if rhe mounting if /home worked at dtartup
<MartnjnVdS> if iy didn't work (filesystem errkr, disk not present, sgc.), it won't be exoorned
<Aeo> Ah ok. Thanks for the exwmple
<MartmjnVdX> so yoj dom't end up with cpients writing files in hhe wtong fhlesystem (/ in case /home wasn't mounted)
<Avo> Bnp
<MartijnVdS> O gon'n know if you keed to re-expore if you unmouut/remounc aftef exportinf filesbstems
<MartijgVdS> best way jo find out iv to try it :)
to understand the mp/mountpoint export option * for ethernet. <MartijnVdS> if you provide that if it's mounted Avo: so say say "mountpoint=/home", the export you're defining onle be an export if /home is mounted <ubuntuuk-planet> [Tony] Well, thats about we have time for - http://tonywhitmore.co.uk/blog/2010/12/22/well-thats-about-all-we-have-time-for/ <Avo> Thanks. Does it look in /etc/fstab check is mountpoint it? Just not sure how it checks. You could still have a home folder, but that count? <MartijnVdS> Avo: no it checks if the folder is actually a point <MartijnVdS> Avo: you can if folder is mount by "mount" <MartijnVdS> putting in /etc/fstab will mount something on boot, so that would make it a mount point <MartijnVdS> Example :) <MartijnVdS> /home is a partition and it's in mounts on startup <MartijnVdS> and in define an export for /home with the "mountpoint" also set /home <MartijnVdS> then the /home export only work if the mounting of /home worked startup <MartijnVdS> if it didn't work (filesystem error, disk not present, etc.), it won't be Ah ok. Thanks for example <MartijnVdS> so don't up clients files in wrong filesystem (/ in case /home wasn't mounted) <Avo> Yup <MartijnVdS> don't know if you need to re-export if you unmount/remount filesystems best way to out is to try :)
 to understand the mp/mountpoiNt export opTion
 * bRobOstIgOn wiShes For gigabit etheRNet.
<MArtijnVdS> Avo: if you proviDe mouNtPOint=, IT wIll onLy exporT ThAT DirEcToRy iF iT'S mOunteD
<MaRtijnVds> Avo: so say yOu sAy "Mountpoint=/hoME", tHe export yoU're Defining will OnlE be an eXpOrt IF /home Is mOunteD
<ubuntUUk-planEt> [Tony] WelL, tHAts aboUT all we hAVE tIme fOr - http://tonywhitmorE.Co.UK/blog/2010/12/22/well-thats-About-aLl-WE-hAVE-tiMe-fOr/
<Avo> ThankS. DOes it LOok in /etC/FsTAB To cHEck there is a moUntpoint for IT? JuSt not sUrE hoW It checKs. You CoULd sTill have a hoMe foLder, but thAt woulDN't count?
<mArtijnVDS> Avo: nO it CheCks iF ThE pOinTeD-To fOLdEr iS ActUally a moUnT pOint
<MArtiJNvDs> Avo: You Can cHeck iF a folder is a moUnt PoinT By tYping "Mount"
<martIjNVdS> pUtting It in /eTc/Fstab will mount sOmetHing on booT, so ThAt wOuLd makE It a mouNt pOinT
<MartijNVdS> ExaMPle TiME :)
<mArTijnVdS> Say your /home Is ON A sEparate pArtitiON
<MArTIjnVdS> anD iT's iN /etc/FSTab, anD mouNTs On startuP
<MartiJNVDS> And in yoUr /Etc/expOrTs yOu dEfine AN expOrt for /Home with The "moUNtpoint" option aLSo set to /home
<MaRTiJNvds> Then The /Home export wIll oNLy woRk if THe MouNTing oF /home WoRKeD At startup
<MartijnVdS> If It didn'T work (Filesystem errOr, disk not pRESEnt, etc.), it Won't BE eXPorted
<Avo> Ah ok. THanks For the examPLe
<MartijNVdS> sO you don't End up with CLIents wriTinG fiLes In tHE WrOng filesystem (/ IN Case /HoMe wasn't MouNted)
<Avo> yup
<marTijNVds> I Don't know iF you need To Re-ExPoRt iF you uNMount/remOuNt aFtEr eXportINg fileSysteMs
<MaRtIjNvdS> Best way TO fIND out Is To Try iT :)
 to understand the mp/moun tpoint exp ort o pti on *  bro bost igon wishes fo r  gig abit ethernet.
<Martij nVdS>  A v o: i f  y ou pr ovide m o un t p oin t= ,itwi l lonlyexp ort tha t director y i fit's mounted <M artijnVdS>  Av o: so say yo u s ay "mo un tpo i nt=/h ome ", th e expo r t you' re defini ng will o n le be a n ex port  if /home is moun t ed <ubuntuuk-plan et> [T on y ]W e ll,  th ats about  a ll we have ti m ef o r  -h ttp://tonywhi tmore.co.uk / blo g/2010 /1 2/2 2 /well- thats -a b out -all-we-hav e-ti me-for/
< Avo> T h anks. D o es it l ook in  /e tc/ fsta b  t oche ck the r eisa  mo untpoint  f or  it?Just n o t  sur e h ow i t che cks. You coul d s till hav e a h ome f olde r,  butthat w ouldn 't  count?
<Martij nVdS > Avo: no  it  c hec ks  if t h e poin ted -to  folder  is act u all ya m ou nt point
<MartijnV dS > Av o: you c an che c kif a folder  i s a  mou n t  poin t by ty ping "mo unt"
< M ar ti jnVdS>pu ttingit  in  /e tc/fs t ab w ill mo unt some thing on boot, so th a t would makei ta mo u nt p oin t
<MartijnV dS>E xamp le t i me  :) <Mart ijnVd S> Sa y  your /home is on a  s eparat e par tition
<Marti jnVdS> and i t 's in /e tc/f s ta b , and mounts o n sta rtup
<Mart i jnVdS> a nd in  your /e tc/export s you defi neanexp ort f or  /home with t h e  "mo un tpoint"  op tion al soset  to  /h om e
<Martij nVdS> th en  t he  / hom e exp o rt willon lywo rkif th e  mount ing o f /h om ew ork ed at s t ar t u p
<M ar ti jnVd S>if  it d idn' t  wo rk (fil esystem e rro r , di sk  n ot pres ent, etc.), i twon't be e xp ort ed
<Av o >  Ah ok.Thanks for the example< Martijn VdS > soyoudon't end  up  withcli e nts wr itingfiles  i n t h e  wron g fi les ys tem (/ inc a se/home  w asn' t mount ed)
<Avo> Yup
<Mar t ijn VdS> I don'tkno w if y ou  ne e dt o r e- e xpo r t  if you unmount /remount a ft e rexportingf ile sy stems
< Martijn VdS>b est way  to findout is to  t ry i t :)
 to_understand the_mp/mountpoint export option
 *_brobostigon wishes_for_gigabit ethernet.
<MartijnVdS>_Avo:_if you provide_mountpoint=, it will_only export that directory_if it's mounted
<MartijnVdS>_Avo:_so say you say "mountpoint=/home", the export you're defining will onle be an export_if_/home is_mounted
<ubuntuuk-planet>_[Tony]_Well, thats about all we_have time for - http://tonywhitmore.co.uk/blog/2010/12/22/well-thats-about-all-we-have-time-for/
<Avo>_Thanks. Does_it look in /etc/fstab to check there is_a_mountpoint for it?_Just not sure how it checks. You could still_have a home folder, but that_wouldn't count?
<MartijnVdS> Avo:_no_it_checks if the pointed-to_folder is actually a mount point
<MartijnVdS>_Avo: you can check if a_folder is a mount point by typing_"mount"
<MartijnVdS> putting it in /etc/fstab will_mount something on boot, so_that would_make it a mount point
<MartijnVdS>_Example time :)
<MartijnVdS>_Say your_/home is on_a separate partition
<MartijnVdS> and it's in_/etc/fstab, and mounts_on startup
<MartijnVdS> and in your /etc/exports_you_define an export_for_/home_with the_"mountpoint" option also_set_to /home
<MartijnVdS>_then_the /home export will only work_if_the mounting of /home worked at startup
<MartijnVdS>_if it didn't work_(filesystem_error, disk not present,_etc.), it won't be exported
<Avo>_Ah ok. Thanks for the example
<MartijnVdS>_so you_don't end_up with clients writing files in the wrong filesystem (/ in_case /home wasn't mounted)
<Avo> Yup
<MartijnVdS> I_don't know if you_need to_re-export_if you unmount/remount_after_exporting filesystems
<MartijnVdS>_best way to find out is to_try it_:)