Unit nfs.service could not be found


  • CentOS 8
    FOG 1.5.9
    New install

    Following the installation instructions at https://wiki.fogproject.org/wiki/index.php?title=CentOS_7
    When I get to ./installfog.sh it works fine until it gets to “Setting up and starting NFS Server” and that fails with the error messages:

    “Unit nfs-kernel-server.service could not be found.”
    “Failed to enable unit: Unit file nfs.service does not exist.”
    “Failed to stop nfs.service: Unit nfs.service not loaded.”
    “Failed to start nfs.service: Unit nfs.service not found.”
    “Unit nfs.service could not be found.”

    I am far, far from a Linux n00b, even, I literally haven’t touched Linux in at least a decade. I’ve followed the exact installation instructions for FOG. What am I missing?

  • Moderator

    @tom-elliott said in Unit nfs.service could not be found:

    To understand:
    /dev/sdb = /images
    /dev/sdc = /opt/fog/snapins

    I 100% agree with this route AND to add create the partitions on the disk as standard partitions and not LVM volumes. If they are standard partitions you can expand them easier than a LVM volume (debatable) if you are running the fog server on a V and need to grow your storage.

  • Senior Developer

    @threeonesix As @sebastian-roth suggests, leave the locations default. /home/images /home/snapins is changing the default locations.

    FOG defaults to put images on /images and snapins on /opt fog/snapins

    If you are a beginner, why state where you want these things mounted instead of saying, I would like images on /dev/sdb and snapins on /dev/sdc. You have admitted to not knowing much about linux.

    To understand:

    /dev/sdb = /images
    /dev/sdc = /opt/fog/snapins

    That would get you where you need to be, all you need to learn is how to tell your server to mount /images and /opt/fog/snapins.

    First things first, did you make sdb a single partition using all available space for the partition? How are you formatting the partition? xfs, ext2, ext3, ext4, ntfs, btrfs?

    Same questions for sdc

    The following instructions assume you are going to use /images and /opt/fog/snapins as the installer defaults to. It assumes the partition is formatted on both disks as ext4. Adjust as necessary.

    sudo -i #enter sudo password
    
    mkdir /images #creates /images if it does not exist already
    mkdir -p /opt/fog/snapins #creates /opt/fog/snapins if it does not exist already
    
    echo "/dev/sdb1 /images ext4 defaults 0 0" >> /etc/fstab # appends the quoted line into the /etc/fstab file
    echo "/dev/sdc1 /opt/fog/snapins ext4 defaults 0 0" >> /etc/fstab # appends the quoted line into the /etc/fstab file
    
    mount -a #attempts to mount /dev/sdb1 to /images and /dev/sdc1 to /opt/fog/snapins
    
  • Senior Developer

    @threeonesix Sounds like NFS was not installed?! Please run rpm -qa | grep nfs and post output here.

    … the images of client computers stored on sdb, which I have mounted to /home/images, and the snap-ins stored on sdc, which I have mounted to /home/snapins.

    I wouldn’t advice you to split off and move the images and snapins directories if you are a Linux beginner. Keep things in FOG default so you don’t have to mess with it.

    If you want to have images on a different partition that’s easy enough by just mounting sdb in /images and FOG will work just as usual.


  • Funny, I meant “far, far from a Linux expert”!


  • I should mention that I am trying to setup FOG in a VMware ESXi 5.5 free edition with the VM hard drives (3) setup via iSCSI to a Lenovo NAS. I want the FOG software running on sda, the images of client computers stored on sdb, which I have mounted to /home/images, and the snap-ins stored on sdc, which I have mounted to /home/snapins.

299
Online

8.5k
Users

15.3k
Topics

143.3k
Posts