How do I mount nfs conditionally?

I have a file server with nfs shares and I've been mounting those shares with fstab entry.
I recently discovered (via systemd-analyze) that my really slow boot times were a result of the file server not being available ( powered off.)
The server will not always be online, so how do I change my fstab entry to only mount when the server is available?
I do like having the ability to mount -a when I need to mount on the fly.
I've attempted to search for this info, but found myself in a mess of fstab vs. systemd automount vs autofs posts.
Thank you

WonderWoofy wrote:
Yes, autofs indeed.  I have the following additional mount options on my nfs share:
...noauto,x-systemd.automount,nofail,_netdev
To avoid confusion, it's worth mentioning that autofs and systemd automount are two completely different beasts.
WonderWoofy wrote:
when I do get back onto my home network with the nfs share, I simply do
$ mount /mount/point
FYI, the presence of x-systemd.automount in your fstab means you don't have to issue the mount command - it will automount whenever you try to access it.

Similar Messages

  • How to mount NFS into a zone or how to use the same IP in every zone?

    Hi,
    we are using a NFS server in a different subnet (= different network interface; nxge1) than our 'normal' network (= nxge0).
    Now I want to mount serveral NFS directories into our zones.
    First I thought the follwoing is possible:
    In the global zone I just mount the filesystem into its place:
    mount 10.11.3.1:/vol/vol_nfs_zones/zoneNNN_mnt /zones/zoneNNN/root/mnt
    When the zone is halted this mount works, but when I start the zone, I receive the error:
    # zoneadm -z zoneNNN boot
    zoneadm: zone 'zoneNNN': These file-systems are mounted on subdirectories of /zones/zoneNNN/root:
    zoneadm: zone 'zoneNNN': /zones/zoneNNN/root/mnt
    zoneadm: zone 'zoneNNN': call to zoneadmd failed
    When zoneNNN is already running and I try to mount it, I receive
    nfs mount: mount: /zones/zoneNNN/root/mnt: Device busy
    So the question is: How do I mount something in the gloabl zone from a NFS server into a zone?
    The only alternative I see is to make the interface nxge1 available in every zone and give each an own IP in our storage network... But sadly this isn't an alternative because we don't have so many free IPs in that net! (Or is there a trick to use the same IP in the global and non-global zones for only this interface??)
    Does anyone have a solution for our problem? I cannot believe that SUN misses this!
    Any hints are more than welcome!

    Mounting it by NFS in the global zone and trying to add this by the "add fs" and "type=lofs"-option yields to an error, when installing the zone:
    cannot verify fs /data: NFS mounted file-system.
    A local file-system must be used.
    zoneadm: zone zoneNNN failed to verifyOur storage network is not accessable from other nets. (And I think it is a very bad idea to route storage network traffic...)
    So I think we def. have to increase our storage network. :-(

  • How can a mount a NFS share exported from OpenBSD?

    Hello Apple Discussions:
    I've been experimenting with NFS in a mixed OS environment, and have been successful exporting nfs share with tigerserver, and mounting it on both a powerpc linux system, and on a powerpc openBSD system.
    Likewise, I can export a NFS share from the linux powerpc box, and mount it on the openBSD box and on the tigerserver, although, the latter required using the options (ro,sync,insecure) in my exports file.
    However, when I export a share on the OpenBSD box, I can mount it on the linux box, but not on tigerserver.
    I would like for the OpenBSD box to export a NFS share securely, with read-write permissions, to the tigerserver.
    After reading so many tutorials, that it would be a page of links, just to list them all, I am pulling my hair out. However, I have found one thread that suggests, that perhaps what I'm trying to do is impossible:
    http://www.bsdforums.org/forums/showthread.php?t=54308
    Here it is suggested that the NFS won't work because tigerserver is not using UTF-8?
    I will have to say, that I was somewhat alarmed, that the only times I succeeded in mounting an nfs share exported from linux onto tigerserver, it was when the "insecure" option is used in the /etc/exports file. There doesn't seem to be an equivalent for the linux style exports option "insecure", in the bsd style options of --maproot=user:group1:group2.
    But I don't like using any options that say "insecure" anyways, so rather than trying to find out how to make openbsd "insecure", I would rather like to find out if there is a way to get tigerserver using UTF-8, at least when mounting NFS shares, if this is indeed the issue.
    Here are the more technical details. I've created a user on all sytems named "fives" with the userid of 5555 and the groupid of 5555. I made the user local user in the local net info domain, but I've tried it with an LDAP user as well. The folders I wish to export and the folders into which to mount them are all owned by user fives and group fives, and have permissions set to 0775. The ip addresses are OpenBSD=192.168.222.111 TigerServer=192.168.222.233 LinuxPPC=192.168.222.253. I've included the relevant NFS setup files and running processes below:
    ON THE OPENBSD BOX:
    #/etc/exports
    /fives -alldirs -network=192.168.222.0 -mask=255.255.255.0
    /exports/fives -mapall=fives:fives 192.168.222.233 192.168.222.253
    #/etc/hosts.deny
    ALL: ALL
    #/etc/hosts.allow
    ALL: 192.168.222.233 192.168.222.253
    #/etc/rc.conf.local
    portmap=YES
    lockd=YES
    nfs_server=YES
    #here's proof that the daemons are running on the OpenBSD box;
    rpcinfo -p localhost
    program vers proto port
    100000 2 tcp 111 portmapper
    100000 2 udp 111 portmapper
    100005 1 udp 863 mountd
    100005 3 udp 863 mountd
    100005 1 tcp 613 mountd
    100005 3 tcp 613 mountd
    100003 2 udp 2049 nfs
    100003 3 udp 2049 nfs
    100003 2 tcp 2049 nfs
    100003 3 tcp 2049 nfs
    100021 1 udp 895 nlockmgr
    100021 3 udp 895 nlockmgr
    100021 1 tcp 706 nlockmgr
    100021 3 tcp 706 nlockmgr
    # actually, I don't see statd, but haven't found the equivalent in openbsd. There's rpc.rstatd, and maybe it should be listed here, but there doesn't seem to be a way to launch it directly. This is a competitor with the UTF-8 theory about why it's not working.
    ON THE TIGER SERVER:
    # here's proof that tiger server sees the mounts:
    showmount -e 192.168.222.111
    Exports list on 192.168.222.111:
    /fives 192.168.222.0
    /exports/fives 192.168.222.233 192.168.222.253
    # here's the result of user fives' attempt at mounting a share:
    sudo mount -t nfs 192.168.222.111:/exports/fives /imports/fives
    mount_nfs: /imports/fives: Permission denied
    # yet user fives has no problem mounting same share on linuxppc box.
    What is different about OSX server? I thought it was supposed to speak NFS?
    ---argh... I'm steppin out for a pint.. Hopefully when I'm back it'll just work.

    One thing not mentioned is that if you decide on the multiple user approach, you can have your music folder in Shared Documents so you only store the tracks once.
    Each user is free to choose which of those tracks they want in their library.
    There is an Apple help article on multiple users.
    http://docs.info.apple.com/article.html?artnum=300432

  • Virt-install cannot mount nfs directory

    Hi all,
    I'm trying to use ovms but I cannot create any virtual machine.
    I successfully installed OVMS; I disabled iptables to avoid network problems.
    I created a dvd from Oracle Unbreakable EL 5.0 cds on a different machine.
    The dvd image is shared by a linux CentOS box. The ISO image is inside /opt/tmp_os_isos/50 so I did
    service nfs start
    mkdir /mnt/dvd50
    chmod a+rwx /mnt/dvd50
    mount -o ro,loop /opt/tmp_os_isos/50/Enterprise-R5-GA-Server-i386-dvd.iso /mnt/dvd50/
    exportfs *:/mnt/dvd50
    and on the ovms server I did:
    [root@ovms ~]# virt-install
    What is the name of your virtual machine? giallo2
    How much RAM should be allocated (in megabytes)? 512
    What would you like to use as the disk (path)? /virtpcs/dischi/giallo
    How large would you like the disk (/virtpcs/dischi/giallo2) to be (in gigabytes)? 30
    Would you like to enable graphics support? (yes or no) no
    What is the install location? nfs:10.10.10.242:/mnt/dvd50
    And I always end up with the error
    That directory could not be mounted from the server.
    If I try to run
    [root@ovms ~]# mount.nfs 10.10.10.242:/mnt/dvd50 /mnt/50
    it works!
    I also tried to build adifferent dvd iso, or to uso a OEL 4.4 dvd iso (taken from an original working oracle dvd) but I always end up with the same error
    Where am I wrong?
    thanks, andrea

    I realized this problem was somehow related with the ovms installation: the pc I installed ovms on has two network card; when I installed ovms I configured eth0 via DHCP (eth0 is linked to the office network and to internet) and I configured eth1 with a static IP (eth 1 is connected to a "private" network made by 2 more pc).
    I also choosed to manage ovnms via eth1 (the network card witch has a statis ip), and everything regardind ovms has always been done via eth1.
    Now I reinstalled ovms and I choosed to manage it via eth0 (si I put a static ip address on eth0) and everything seems working: I'm just installing OEL5.0 via nfs without any problem (I hope... :-) )
    andrea

  • Can't mount NFS from my Arch laptop, am I missing something obvious?

    Hello,
    I have been trying to solve this issue for over a week and tried everything that I can imagine with no luck...
    Set up:
    - Qnap SS-839 Pro with several NFS shares on
    /share/to_sort
    /share/movies
    /share/music
    etc.
    - MythTV frontend/backend running Mythbuntu.
    I can mount my NFS shares without problem. I use this fstab.
    192.168.1.100:/share/Music /var/lib/mythtv/music nfs nolock,async,proto=tcp,rw,ac 0 0
    192.168.1.100:/share/Videos /var/lib/mythtv/videos nfs nolock,async,proto=tcp,rw,ac 0 0
    - Arch laptop
    I can't get to mount any of the NFS share:
    [18:59:14][[email protected]]
    /mnt/aether Arch64# /etc/rc.d/rpcbind restart
    :: Stopping rpcbind                                                      [DONE]
    :: Starting rpcbind                                                      [DONE]
    [18:59:32][[email protected]]
    /mnt/aether Arch64# mount 192.168.1.100:/share/to_sort/ to_sort/
    mount.nfs: rpc.statd is not running but is required for remote locking.
    mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
    mount.nfs: an incorrect mount option was specified
    [19:00:03][[email protected]]
    /mnt/aether Arch64# mount 192.168.1.100:/share/to_sort/ to_sort/ -o no-lock
    mount.nfs: an incorrect mount option was specified
    I tried using the 2 following lines in my fstab on  my laptop but nothing works:
    1) 192.168.1.100:/share/to_sort /mnt/aether/to_sort nfs nolock,async,proto=tcp,rw,ac 0 0  (same option than under mythbuntu)
    2) 192.168.1.100:/share/to_sort /mnt/aether/to_sort nfs defaults 0 0
    I'm no guru when it comes to nfs sharing etc, but I really can't see what I am missing here, nor whatelse can I try!
    Any idea will be more than welcome!
    Thanks in advance
    Ludo

    I finally solved this problem after 4 months after someone posted a similar issue with Arch few days ago...
    He said to install the iana-etc package... I already had the package but still gave it a go:
    [08:15:33][[email protected]]
    ~ Arch64$ showmount -e 192.168.0.100
    clnt_create: RPC: Unknown host
    [08:15:41][[email protected]]
    ~ Arch64$ sudo pacman -Syu iana-etc
    Password:
    :: Synchronising package databases...
    core is up to date
    extra is up to date
    community is up to date
    archlinuxfr is up to date
    warning: iana-etc-2.30-1 is up to date -- reinstalling
    :: Starting full system upgrade...
    resolving dependencies...
    looking for inter-conflicts...
    Targets (1): iana-etc-2.30-1
    Total Download Size: 0.00 MB
    Total Installed Size: 0.88 MB
    Proceed with installation? [Y/n]
    (1/1) checking package integrity [########################################################################################################################] 100%
    (1/1) checking for file conflicts [########################################################################################################################] 100%
    (1/1) upgrading iana-etc [########################################################################################################################] 100%
    [08:20:13][[email protected]]
    ~ Arch64$ showmount -e 192.168.0.100
    Export list for 192.168.0.100:
    /to_sort
    /mythbox
    /Qweb
    /Qusb
    /Documents
    [08:20:18][[email protected]]
    ~ Arch64$
    As you can see, it is now working and I am now completely puzzled...
    How come reinstalling this package solved the issue?
    Any idea on what the problem was would be more than welcome
    Thanks

  • Mount.nfs: Operation not permitted

    I just install/reinstall nfs-utils and rpcbind on my pc, and I can't get rid of this error when trying to mount a nfs host:
    root# mount /mnt/metis/home
    mount.nfs: Operation not permitted
    fstab:
    metis:/home /mnt/metis/home defaults,noauto 1 1
    Any idea how to fix this ?
    thanks,
    Olivier
    Last edited by my64 (2010-01-08 10:26:17)

    I can confirm the problem and b) solution. Since I don't have access to the server I need to use version 3. Can be used from the command line with:
    mount.nfs share mount_point -o 'vers=3'
    or in /etc/fstab in a line like:
    share mount_point nfs vers=3 0 0
    When I use vers=3 in my fstab I get an error that the line is bad.  This is the exact line :
    FileServer:/media/Music/ /media/NFS_Music nfs vers=3 defaults 0 0
    Upon running mount -a, I get the error:
    [mntent]: line 18 in /etc/fstab is bad
    Where's my error?
    Thanks

  • How to set up rules/conditions on a drop down box to ensure its been filled if a value in a text box is selected.

    Hi, I am in midst of creating a form in infopath. I have a text box field in which the user will enter the number of issues he has. if the user has entered the number of issues he has, then he will need to select the type of issues from a multi selection
    box. Thus i need to know how to set up rules/conditions to ensure that the user has to complete the multi selection box if he enters a value in text box for the number of issues. 

    I assume what you are asking is to make multi selection box as mandatory. If not please explain with a example
    Try below:
    http://webcache.googleusercontent.com/search?q=cache:ItIYeZ8K2gEJ:sharepointkings.blogspot.com/2013/06/make-multi-select-list-box-required-in.html+&cd=4&hl=en&ct=clnk&gl=in&client=firefox-beta
    If this helped you resolve your issue, please mark it Answered

  • How can I pass multiple condition in where clause with the join table?

    Hi:
    I need to collect several inputs at run time, and query the record according to the input.
    How can I pass multiple conditions in where clause with the join table?
    Thanks in advance for any help.
    Regards,
    TD

    If you are using SQL-Plus or Reports you can use lexical parameters like:
    SELECT * FROM emp &condition;
    When you run the query it will ask for value of condition and you can enter what every you want. Here is a really fun query:
    SELECT &columns FROM &tables &condition;
    But if you are using Forms. Then you have to change the condition by SET_BLOCK_PROPERTY.
    Best of luck!

  • How can I select the condition one by one

    I attaching a VI in which I have two condition less than or equal and greater than or equal. With respect to the input value 0f 125 the condition should be greater than or equal and if it is 175 then it should be less than or equal. So how can I exchange the conditions. Please reply
    Attachments:
    24.1.14 data acquisition reverse corrected-1.vi ‏116 KB

    Hi perumpadapu,
    Can you show me in your code where is this "175" and "125" is coming from? Where do you want to implement your flip logic?
    " I need to relpace the greater than equal to to lesser than equal sign as the 175 becomes 125.So there should be a flip in conditions to be considered. "
    If you want to do some sort of flip conditions based on the integer value received, you can use case structure as below:
    Unless you are very certain that you will not receive any values other than 175 and 125, you can use Select. 
    "Becaus if i use case structure as you said, for the true as well as false case I have to include all these commands to execute in each case. I can't wire the both cases to the same case structure after that."
    Can you provide a screenshot to this issue?
    It would be great if you can explain what you want to do and what your code does.
    Warmest regards,
    Lennard.C
    Learning new things everyday...

  • How do I mount a partition at a specific mount point.

    How do I mount a partition at a specific mount point? For example I see a Vol01 disk image, which is a partition of one of my hard drives, sitting on my desktop. Under the disk utility it says that its mount point is /Volumes/Vol01. How do I mount this partition as a file system at /Users?
    Thanks, much appreciated.

    why do you want to do this? it sounds like you want to keep your home directory on an external drive. this can be done without changing the mount point of the external. copy the home directory to the external. then in system preferences preferences->accounts, unlock the lock at the bottom, control-click on your user and select "advanced options." In the resulting popup change the location of the home directory to the external.
    in general to change the default mount point of a drive see this link
    http://beta.jamesstroud.com/jamess-miscellaneous-how-tos/os-x-admin/os-x-firewir e-mount-point

  • How to create a new Condition for tax as VAT ( 4 % )  in SAP ? .

    Dear All ,
                           Pl guide that " How to create a new Condition for tax as VAT ( 4 % )  in SAP ? . What are all necessary requirements to do so , I need to have all steps so that i should feel very confident . For example what data is to be ticked in Control tab during cond. creation , in the same way how to put this cond. in Pricing procedure ? pl write all necessary thing which are required during this process .
    Thanx & deep regrads to all in adv.
    sap11

    In tax we can configure taxprocedure two types i.e., taxinn and tainj. If you adopt taxinn procedure if  it is other than VAT condition first you have to create the condition type and then you have to go to FTXP and assign the tax required VAT percentage to the repective % to ded or non ded VAT condion type. In second step you have to assign this tax code to respective company code.
    If you adopt taxinj procedure you have to a create tax code with FTXP T-code by assigning the values to the respective and save conditions.
    Regards,
    Bhuvan

  • How to find out the condition type of the tax code in the PO document

    Hi friends,
    My questions is how to find out the condition type of the tax code in the PO document.
    When you use me23n to display one PO document. In the invoice tab, there is one text field named 'tax code' whose value could be T1, T2, J1, J2 and so on. Beside the text field, there is one button named taxes. When you click the button taxes, it will show you the condition type of the tax code. For example, if the tax code is 'T1', then its condition type 'mwcn'.
    I want to use the information on the PO to find out the value 'mwcn' of the tax code 'T1'. Could anybody help to describe the logic?it looks like the value is saved in the table konp. But I don't know the logic. Please describe. Thank you.

    Hi,
    Hope you have asked for select query..
    select single knumh from a003 into wa_knumh
      where mwskz = wa_itpotab-mwskz
      and kappl = 'TX'
      and aland = 'IN'.
    select single kbetr from konp into wa_kbetr
      where knumh = wa_knumh.
    cheers,
    Dep

  • How to copy the Pricing conditions from one Distribution Channel to another

    Generally we use VK11 transaction to create conditional records .
    but I Need to Know whether is it Possible to copy the Pricing conditions from one Distribution Channel to another with same name and same internal Characteristics .
    Since we have around 70+ of Condition type with different parameter Sequence.So Instead of Going for BDC whether is there any standard Funct Modules/programs/BAPIs to do this?
    How to make a copy Condition types from One Distribution Channel to another.
    since SAP has already provided to copy conditions from Customer to customer.
    Likewise i need to know whether SAP is facilitating for these feature also.
    Iam Dubious in this issue.
    Hope Fully looking for the answers.
    Harish.N

    - IDOC_INPUT_COND_A (you can create IDOC, but also call directly)
    - call transaction / batch input (use transaction XK15, as used by LSMW)
    - use group of function modules RV_CONDITION_COPY, RV_CONDITION_SAVE, RV_CONDITION_RESET + commit.
    if you search SDN on 'RV_CONDITION_COPY' you'll find more info I believe.
    Someone mentioned BAPI_PRICE_CONDITIONS as well.

  • How to Maintain the Pricing Condition Records in CRM

    Hi
    I am new to the CRM
    How to maintain the pricing condition records in crm for the particular condition type?
    as we do in SD(VK11)
    Thanks

    Hi Binu,
    First of all, you could maintain pricing conditions in the following places:
    1. In General Condition Maintenance (GCM)
    2. At the product maintenance level
    3. At the 'Price agreement' tab of Contracts
    4. As manual conditions during order processing at item level
    Now, if you want to maintain conditions using GCM, you first have to maintain a condition maintenance group in the customizing where in you can assign condition table and condition type for different counter values. I am assuming that you have done this activity successfully.
    When you run the transaction '/SAPCND/GCM', for application 'CRM', your condition maintenance group name and context 'GCM', you will be initially taken to a screen where in you'll have an item area which would be blank and then condition fields would be displayed in a tree on the left.
    Here, select the field 'Condition type' and click on icon 'Select records'. You would get a dialog prompting you to enter condition type. Here you can specifiy the condition type for which you want to maintain/view condition records.
    If no condition records are available, item area would be left blank. Here, you can choose a condition type using the standard F4 help. Depending on condition types that are assigned to condition maintenance group, different condition types would be displayed in the F4-help using which you can maintain condition records.
    Hope this helps.
    Regards,
    Pavithra
    **PS: Please reward points if this helps.

  • How do I mount a second hard drive in Beige G3 its listed in the profiler

    Inherited a 300 Mhz Beige G3 with 6 GB system drive running OS 9.2.2
    Has a card in SCSI Bus 1 with IDE drive cable. I have installed a 60 GB drive on the sled and the system profiler recognizes it as Mac OS Extended, but says the drive is not mounted.
    Hate to be stupid in front of so many people but, how do I mount the drive.. the profiler is the only place it shows up?
    Also has a Firewire/USB card in PCI slot 1. Any chance firewire or USB will actually work?
    I eagerly await your responses.

    Some PCI-slot Drive Controller cards report to the System they are SCSI Controllers to be able to use the more mature and flexible SCSI drivers with "Logical Block Addressing" instead of the older "Track-Head-Sector" addressing. Track-Head-Sector has not worked for so long the drives are all faking that they have 32 or 64 heads, even in drives only 9 mm tall.
    These Controllers can then support up to two drives, often larger than 120 GB each, on each of two cables, if they have places to plug them in.
    One problem is that if you format it in OS 9 on the motherboard-attached cable, you only get the ATA/IDE driver. If you want to move the drive to the card later, you really do need the SCSI driver on it, so it must be reformatted while attached to the PCI card.
    If you have an OS 9 CD, a later version of OS 9 Drive Setup can be found in the Utilities folder on the CD. You need not boot to the CD or install to use it, just insert the CD, and when it mounts on the desktop, open the Utilities folder and double-click Drive Setup.
    Mac OS X will usually format all major brands and many obscure ones. If you check the checkbox for "Install Mac OS 9 Drivers" you get the OS 9 IDE/ATA driver, the SCSI driver, and the IDE/ATA in FireWire Driver ALL installed.

Maybe you are looking for