Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: Does zypper support NFSv4?

  1. #1

    Default Does zypper support NFSv4?

    Is it possible to add repositories from NFSv4 to zypper? I have initiated automatic mounting network resources on NFSv4 and it works fine, but after adding repository from NFSv4 to zypper, I have problem on refreshing repository data:
    Code:
    omega:/distrib/repositories/1 # zypper refresh repo-update-1
    Retrieving repository 'repo-update-1' metadata [\]
    Failed to mount omega:/distrib/repositories/update/11.3 on /var/adm/mount/AP_0x00000001: Unable to verify that the media was mounted
    
    Abort, retry, ignore? [a/r/i/?] (a): 
    Failed to mount omega:/distrib/repositories/update/11.3 on /var/adm/mount/AP_0x00000001: Unable to verify that the media was mounted
    
    Abort, retry, ignore? [a/r/i/?] (a): 
    Retrieving repository 'repo-update-1' metadata [error]
    Repository 'repo-update-1' is invalid.
    Failed to mount omega:/distrib/repositories/update/11.3 on /var/adm/mount/AP_0x00000001: Unable to verify that the media was mounted
    
    Please check if the URIs defined for this repository are pointing to a valid repository.
    Skipping repository 'repo-update-1' because of the above error.
    Could not refresh the repositories because of errors.
    omega:/distrib/repositories/1 # zypper lr -u repo-update-1
    Alias          : repo-update-1                                
    Name           : repo-update-1                                
    URI            : nfs4://omega/distrib/repositories/update/11.3
    Enabled        : Yes                                          
    Priority       : 99                                           
    Auto-refresh   : Off                                          
    Keep Packages  : Off                                          
    Type           : NONE                                         
    GPG Check      : On                                           
    GPG Key URI    :                                              
    Path Prefix    :                                              
    Parent Service :                                              
    MD Cache Path  : /var/cache/zypp/raw/repo-update-1

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,973

    Default Re: Does zypper support NFSv4?

    As I would expect (as you) that it does not matter who wants to open a file to trigger the mounting, I do not see what would be special in zypper that the mounring fails there.

    A few questions:
    . Is var/adm/mount/AP_0x00000001 the mount point that should be used?
    . What if you force the mount first by opening some file there and then starting zypper?
    Henk van Velden

  3. #3
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: Does zypper support NFSv4?

    are you using SLED or SLES 11?

    --
    DenverD
    CAVEAT: http://is.gd/bpoMD [posted via NNTP w/openSUSE 10.3]

    What if there were no hypothetical questions?

  4. #4

    Question Re: Does zypper support NFSv4?

    Did you find a solution to your problem? I am experience this as well. Both Desktops are openSUSE 12.2 and I am using NFS4 on the Desktop that hosts the repository export.

  5. #5
    dd NNTP User

    Default Re: Does zypper support NFSv4?

    On 03/08/2013 12:16 AM, alvinbeach wrote:
    > Did you find a solution to your problem?


    if you never get an answer from the OP you might consider beginning
    your own thread with all the symptoms/software/hardware/etc...but, it
    think it probably should go into the networking forum ...

    well, i don't know if it is a networking or zypper problem...

    you might hope a zypper or NFS guru comes through here and tells us both.

    --
    dd


  6. #6

    Default Re: Does zypper support NFSv4?

    This is definitely a zypper (or libzypp) related problem. I can manually mount that NFS export (and others) just fine. So there is nothing wrong with nfs from the side of the client (mount) and server side. I suspect more that this is an issue with nfs4 support in zypper. I will wait a little bit longer before I create a new thread, just in case the OP responds with a solution.

  7. #7
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Does zypper support NFSv4?

    On 2013-03-08 16:06, alvinbeach wrote:
    >
    > This is definitely a zypper (or libzypp) related problem. I can manually
    > mount that NFS export (and others) just fine. So there is nothing wrong
    > with nfs from the side of the client (mount) and server side. I suspect
    > more that this is an issue with nfs4 support in zypper. I will wait a
    > little bit longer before I create a new thread, just in case the OP
    > responds with a solution.


    I don't understand the problem. Why would zypper care where a directory
    is mounted, if it is accessible to the system?

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4, with Evergreen, x86_64 "Celadon" (Minas Tirith))

  8. #8
    dd NNTP User

    Default Re: Does zypper support NFSv4?

    On 03/08/2013 04:06 PM, alvinbeach wrote:
    > This is definitely a zypper (or libzypp) related problem. I can manually
    > mount that NFS export (and others) just fine.


    but, can you (now looking back at post #1 and using that as an
    example of what you _might_ be doing) at a command line can you

    mount "omega:/distrib/repositories/update/11.3 on
    /var/adm/mount/AP_0x00000001:" and then

    cd omega:/distrib/repositories/update/11.3
    and enter that 11.3 directory?? that is: is it actually mounted where
    you wanted it mounted?

    so, i think Henk's question (in post #2 which was never answered by
    the OP) might be key here....for more troubleshooting why don't you
    please copy/paste your command line actions to manually mount and
    then access the NFS directory..

    please post the input/output (prompt to prompt) inside "code tags" as
    described here http://goo.gl/i3wnr

    and, as well , please copy/paste to us the exact error thrown by zypper

    --
    dd
    http://tinyurl.com/DD-Caveat

  9. #9

    Default Re: Does zypper support NFSv4?

    I think there may be some confusion. This issue is with NFS mounts using repos that are configured with a nfs:// URL. This isn't the same as using local directories that are NFS mount points. For instance, I added the repo using YaST->Software Repositories and clicking on Add. Then I selected "NFS..." option. This adds the repo using a nfs:// URL.

    This worked just fine in openSUSE 12.1. When I upgraded the desktops to 12.2, the repositories failed with the "Unable to verify..." error message. What I noticed with NFS3 mounts is that it takes a long time to refresh the repository. I can easily switch the repo in Yast to be "Local Directory", however, I found using the NFS option more reliable and easier in that if I didn't mount the NFS repo, Yast will do that automagically when it refreshes.

    So, to summaries, this issue is only related to yast/zypper/libzypp. There seems to be some sort of bug with either zypper or libzypp when it comes to nfs:// repositories?

  10. #10
    dd NNTP User

    Default Re: Does zypper support NFSv4?

    On 03/11/2013 01:06 PM, alvinbeach wrote:

    > So, to summaries, this issue is only related to yast/zypper/libzypp.
    > There seems to be some sort of bug with either zypper or libzypp when it
    > comes to nfs:// repositories?



    i can't tell you if there is a bug *or* an error in how you are going
    about it [i can't try to duplicate with no NFS directory
    available]...maybe you could get that answered on the mail list or
    IRC (begin here: http://en.opensuse.org/openSUSE:Communication_channels)

    or just write the bug, if it is a 'user' problem (and not a bug)
    someone will so note..

    *or* wait until one with more YaSR/zypper knowledge tells it is a
    bug, or the error (if any) in your procedure..

    --
    dd


Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •