Unable to upload an image : Failed to mount NFS volume



  • Hello guys,

    I recently installed a FOG Server on RHEL7. I’m using FOG 1.2.0.
    Unfortunately I can’t upload an image to my FOG server.
    Error : “mounting 192.12.59.1:/data/images/dev on /images failed: Operation not supported” and “Fatal error: Failed to mount NFS Volume”.

    Any idea plase ?

    Thanks :)



  • Also, TFTP and FTP are not the same things. They are each their own thing, as I understand. Two separate services.



  • [quote=“pimms, post: 42828, member: 28727”]My image is sitting in /images/dev, even if the storage default in the web GUI is /data/images :confused:
    Tftp service is running.
    The password of the Linux FOG account is the same as the web GUI password and TFTP password in the Web GUI.[/quote]

    Maybe configure it to use /images instead of /data/images ?



  • My image is sitting in /images/dev, even if the storage default in the web GUI is /data/images :confused:
    Tftp service is running.
    The password of the Linux FOG account is the same as the web GUI password and TFTP password in the Web GUI.



  • [quote=“pimms, post: 42822, member: 28727”]I managed to upload my image but this upload is blocked but i have this error now : FOG FTP Login Failed[/quote]

    Tell us, is your image sitting in /images/dev or in /images?

    The Storage Management password is the culprit, probably. It’s the network folder looking thing in the Web GUI.

    You should double check that the credentials set on the storage group in there are exactly the same as the [U]Linux[/U] Fog account credentials.

    Also, you can double check that the FTP services are running on the FOG machine. Note any errors there.



  • I managed to upload my image but this upload is blocked but i have this error now : FOG FTP Login Failed



  • IP Conflict?

    I dunno… just kicking around ideas…



  • I tried to mount the NFS share from another computer. I have this error :
    mount.nfs: mount(2) Connection refused



  • This post is deleted!

  • Developer

    Could you please try mounting the NFS share from another computer:
    [CODE]mkdir -p /mnt/nfstest && mount <fog-ip>:/data/images/dev /mnt/nfstest -v[/CODE]
    I guess this will fail. Please report any error messages you see…



  • I never tried :( Just after the installation I changed the location. I restarted at least 10 times the NFS server and the whole FOG server after changing /etc/exports.


  • Developer

    Did it work before you changed the location?? And did you restart the NFS server or the whole FOG server after changing ‘/etc/exports’??



  • Sorry :)
    Here the contents of the boot file :

    [CODE]#!ipxe
    kernel bzImage32 root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns= keymap= web=192.12.59.1/fog/ consoleblank=0 loglevel=4 mac=xx:xx:xx:xx:xx:xx ftp=192.12.59.1 storage=192.12.59.1:/data/images/dev/ storageip=192.12.59.1 web=192.12.59.1/fog/ osid=5 loglevel=4 consoleblank=0 irqpoll hostname=first-host chkdsk=0 img=img imgType=mpa imgid=4 imgFormat= PIGZ_COMP=-9 hostearly=1 pct=5 ignorepg=1 type=up
    imgfetch init_32.xz
    boot
    [/CODE]

    I changed the default store location with this howto : [url]http://www.topgearit.net/index.php?title=Change_FOG_Image_Storage_Location[/url]
    maybe this caused this error ?


  • Senior Developer

    NO
    from the browser

    goto:

    [url]http://<ipoffogserver>/fog/service/boot.php?mac=<macaddressofclientintask>[/url]



  • Here the contents of /var/www/html/fog/service/ipxe/boot.php :
    [CODE]<?php
    header(“Content-type: text/plain”);
    require_once(’…/…/commons/base.inc.php’);
    if ($_REQUEST[‘mac0’] && !$_REQUEST[‘mac1’] && !$_REQUEST[‘mac2’])
    $_REQUEST[‘mac’] = $_REQUEST[‘mac0’];
    else if ($_REQUEST[‘mac0’] && $_REQUEST[‘mac1’] && !$_REQUEST[‘mac2’])
    $_REQUEST[‘mac’] = $_REQUEST[‘mac0’].’|’.$_REQUEST[‘mac1’];
    else if ($_REQUEST[‘mac0’] && !$_REQUEST[‘mac1’] && $_REQUEST[‘mac2’])
    $_REQUEST[‘mac’] = $_REQUEST[‘mac0’].’|’.$_REQUEST[‘mac2’];
    else if ($_REQUEST[‘mac0’] && $_REQUEST[‘mac1’] && $_REQUEST[‘mac2’])
    $_REQUEST[‘mac’] = $_REQUEST[‘mac0’].’|’.$_REQUEST[‘mac1’].’|’.$_REQUEST[‘mac2’];
    $MACs = HostManager::parseMacList($_REQUEST[‘mac’]);
    $Host = $FOGCore->getClass(‘HostManager’)->getHostByMacAddresses($MACs);
    new BootMenu($Host);[/CODE]


  • Senior Developer



  • Yes Selinux is disabled and rpcbind is running.


  • Senior Developer

    selinux disabled?

    rpcbind running?



  • /data/images/.mntcheck and /data/images/dev/.mntcheck exist.
    The permissions are ok for /data/images (drwxrwxrwx).


  • Senior Developer

    does
    /data/images/.mntcheck and /data/images/dev/.mntcheck exist?
    Are the permissions as: chmod -R 777 /data/images?


 

477
Online

41.8k
Users

12.3k
Topics

116.0k
Posts