Network boot of host comes up with mount permission denied



  • This problem is exactly like - https://forums.fogproject.org/topic/4979/problem-mounted-file-system-permission-denied-solved

    I have followed advise from wiki as well and other posts.

    Running Ubuntu Server LTS 16.4.3 with install of PHP7 as per wiki advice for that OS.
    There was no /home/fog/images and images/dev with requisite files so created that. Strangely, images folder is sitting in root directory rather than /home/fog.

    How do I resolve this please? What log file can I attach?

    S



  • @sebastian-roth Thank you and everyone replied for help and patience. That someone who messed up is me :-) This is a test server so going to be far more efficient to reload.

    Thanks again everyone.


  • Developer

    @majikins See in that picture it says storage=x.x.x.x:/media/dev which is different to the other information we have. Seems like someone has messed with that setup a fair bit. Not sure what advice I should give. Maybe a clean reinstall would be best, not sure.



  • @sebastian-roth Thanks - couldn’t wait for computer so created a Virtualbox session and got the same error after following your instructions. Please see screenshot0_1513795544248_fog error.PNG


  • Developer

    @majikins said in Network boot of host comes up with mount permission denied:

    ubuntuserver–vg-Images

    That LVM is mounted to /mnt/share which probably FOG is not aware of. Take a look at the storage node configuration in the web UI. I recommend to stick to the default path /images. It’s easier to move things around and leave the FOG default path for it as is.

    So depending on what you have in /mnt/share already (see with ls -al /mnt/share) - assuming it is mostly empty - I’d go like this:

    sudo -i
    mv /images/* /mnt/share
    mv /images/.mntcheck /mnt/share
    umount /mnt/share
    

    Now edit /etc/fstab and change /mnt/share to simply /images. Then remount that mount /images and you should be all setup.



  • @sebastian-roth
    mount:

    sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
    proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
    udev on /dev type devtmpfs (rw,nosuid,relatime,size=1901580k,nr_inodes=475395,mode=755)
    devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
    tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=390968k,mode=755)
    /dev/mapper/ubuntuserver--vg-root on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
    securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
    tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
    tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
    tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
    cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
    pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
    cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
    cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
    cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
    cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
    cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
    cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
    cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
    cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
    cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
    cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
    systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=33,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
    debugfs on /sys/kernel/debug type debugfs (rw,relatime)
    mqueue on /dev/mqueue type mqueue (rw,relatime)
    hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
    sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
    nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
    fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
    /dev/mapper/pdc_bcaehfcjbj1 on /boot type ext2 (rw,relatime,block_validity,barrier,user_xattr,acl,stripe=4)
    /dev/mapper/ubuntuserver--vg-Images on /mnt/share type ext4 (rw,relatime,data=ordered)
    lxcfs on /var/lib/lxcfs type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
    tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=390968k,mode=700,uid=1000,gid=1000)
    

    ls -al /images:

    total 16
    drwxrwxrwx  4 fog  root 4096 Dec 17 09:24 .
    drwxr-xr-x 26 root root 4096 Dec 17 09:24 ..
    drwxrwxrwx  3 fog  root 4096 Dec 17 09:24 dev
    -rwxrwxrwx  1 fog  root    0 Dec 17 09:24 .mntcheck
    drwxrwxrwx  2 fog  root 4096 Dec 17 09:24 postdownloadscripts
    
    total 12
    drwxrwxrwx 3 fog root 4096 Dec 17 09:24 .
    drwxrwxrwx 4 fog root 4096 Dec 17 09:24 ..
    -rwxrwxrwx 1 fog root    0 Dec 17 09:24 .mntcheck
    drwxrwxrwx 2 fog root 4096 Dec 17 09:24 postinitscripts
    

    cat /etc/fstab:

    # /etc/fstab: static file system information.
    #
    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    /dev/mapper/ubuntuserver--vg-root /               ext4    errors=remount-ro 0       1
    /dev/mapper/pdc_bcaehfcjbj1 /boot           ext2    defaults        0       2
    /dev/mapper/ubuntuserver--vg-swap_1 none            swap    sw              0       0
    /dev/mapper/ubuntuserver--vg-Images /mnt/share ext4 defaults 0 1
    

  • Developer

    @majikins Please run the following commands and post pictures or listings here: mount and ls -al /images /images/dev and cat /etc/fstab (note the spaces in the commands!)



  • @george1421 said in Network boot of host comes up with mount permission denied:

    showmount -e 127.0.0.1

    I think I know just enough to cause problems. Syntax on my /etc/fstab mount for an lvm volume was wrong and my box freaked on restart.
    On diagnosing, I think I may have an inkling. I mounted an lvm volume for images and made this a default storage container on the web interface. I’m assuming that write rights need to be given to fog user for this to work? Is the /images/dev and /images being mapped to my mount as storage? to answer question above:

    Export list for 127.0.0.1:
    /images/dev *
    /images *

    The computer I was imaging is otherwise engage and will only be able to test this evening again.
    Thank you for all the responses!


  • Moderator

    @majikins on the fog server, lets run showmount -e 127.0.0.1 that should show you what nfs shares are exported on your FOG server.

    Also for clarity, you are exporting space on your fog server to storage media (hard drive) that is directly attached to the fog server and not cross mounted to some external nas device, right?



  • rebooted my server this morning and came up with an nfs-mount error. Need to sort this out first to get back up and running.

    To answer above as best I can in the meantime:
    The screenshot in the picture showing the line “permission denied” is exactly what I am getting except for my IP. Maybe related to NFS issue above?
    Loaded latest version 1.4.4.

    Once I have NFS sorted will post again with results.


  • Developer

    @majikins said in Network boot of host comes up with mount permission denied:

    This problem is exactly like - https://forums.fogproject.org/topic/4979/problem-mounted-file-system-permission-denied-solved

    I kind of doubt that yours is exactly like that. The post is two and a half years old and FOG 1.2.0 was the official release back then. I hope you don’t still use version 1.2.0 as we don’t support that anymore. Current stable version is 1.4.4 as of today. Please let us know which version you run.


  • Moderator

    Will you please post a clear screen shot of the error taken with a mobile phone. The context of the error is almost as important as the error line itself.

    Is this a new install of FOG, or was it running for a while then magically stopped?

    The images folder should be in /images that is the default location. If you moved it someplace else during install then we need to address that.


 

432
Online

41.5k
Users

12.0k
Topics

113.4k
Posts