@george1421 I think I fixed my issue. I wasn’t able to delete the nameserver 127.0.0.1 line but by modifying the resolv.conf.d/ head file, I was able to insert our local DNS nameserver to the top of the file. Hosts came up green after that. Now, After a whole 24hours and a reboot, all my hosts are still showing green. I have tried to boot to ip yet, is this a good fix or would this mess up dnsmasq at all?
Posts made by chris.dees
-
RE: Host management page show red exclamation for all hosts
-
Host management page show red exclamation for all hosts
Server
- FOG Version: 1.40
- OS: Ubuntu 16
Client
- Service Version: latest
- OS: win 10 and 7
Description
I have a working FOG setup. I can ip boot and everything, the problem I am having is with the server(Linux) being able to ping and talk to the windows PCs in my domain. From the server, I can ping any IP address but if I try and ping a host name I get: unknown host
From Windows machines, I can ping the server by IP and Hostname(added a dns entry to ping by hostname)
I have dug around looking at the resolvconf files and if I open my /etc/resolv.conf file, It is:
nameserver 127.0.0.1
Search my-domain
Nameserver my main DNS serverIf I delete the first line, I am then able to ping all of the windows machines. But of course this file is overwritten every few hours so that won’t work.
I am using dnsmasq since our voip phone system uses option 66 and 67.
I am only assuming that the hosts show up as red with an exclamation because the server can’t ping the clients hostname. Is this correct? Is there something I missed? Anything I can try?
-
RE: "Permission denied": another Nas Issue (Qnap TS-231)
This is probably out of the scope of your issue but since I set 2 qnaps I wanted to mentioned what I did. I tried exactly what you are doing but on a synology and it was not very pretty. So I went this way with it…
- purchased a qnap and setup the raid array giving me about 10TB of storage. (4x4TB WD Red)
- setup virtualization station on the qnap and installed Ubuntu 16 as a virtual machine (giving the VM the entire raid array as it’s hard drive)
- from there I just launched the Ubuntu VM and installed Fog 1.40 (haven’t updated yet)
- once that was done I setup a second qnap nas at a second facility and repeated the above steps except I set this one up as a storage node and pointed it to the first one
- I setup the location plugin and I have a main location (set as master) and a secondary location both in the same storage group.
I am able to boot to the network from anywhere and upload to the master and it replicates to the secondary. I am able to take snapshots of the VM as I go so if I break something I can load up a previous snapshot and get back to it.
This is as far as I have gotten so far. I have working this at my job for a couple months as a side project.
-
RE: FOG Replication saying login incorrect
@Wayne-Workman I got it working. I must have messed up the passwords. I fixed it so the user pass matched the .fogsettings password and replication started working. Thank you.
-
RE: FOG Replication saying login incorrect
@george1421 ok. I will try this first thing in the morning. Just to clarify, I am just trying to make sure the replication services work on the two machines I set up. This will eventually turn into a bigger multi site setup. The end result will be to have our main FOG management server at our Parkway building, and then to have different storage nodes setup at each of our precincts, North, South, East, West, and our Jail. The images for the precincts will all replicate from our Parkway server out to the 4 precincts and the images for our jail will only replicate out to the jail. Any ideas on if I am heading down the wrong path? I plan to set a location for each storage node but do I need a different storage group too?
-
RE: FOG Replication saying login incorrect
I updated the password setting. I simply copied and pasted the password from the fog storage node to the password field on the main fog server. It still gives me Login Incorrect.
[03-07-17 8:34:54 pm] * Type: 2, File: /var/www/fog/lib/fog/fogftp.class.php, Line: 463, Message: ftp_login(): Login incorrect., Host: 172.31.161.251, Username: fog
[03-07-17 8:34:50 pm] | Image Name: Optiplex_3040_Jail
[03-07-17 8:34:50 pm] * Found Image to transfer to 1 node
[03-07-17 8:34:50 pm] * Attempting to perform Group -> Nodes image replication.
[03-07-17 8:34:50 pm] | There are no other members to sync to.
[03-07-17 8:34:50 pm] | Image Name: Optiplex_3040_Patrol
[03-07-17 8:34:50 pm] * Not syncing Image between groups
[03-07-17 8:34:50 pm] | There are no other members to sync to.
[03-07-17 8:34:50 pm] | Image Name: Optiplex_3040_Jail
[03-07-17 8:34:50 pm] * Not syncing Image between groups
[03-07-17 8:34:50 pm] * Attempting to perform Group -> Group image replication.
[03-07-17 8:34:50 pm] * We are node ID: 1. We are node name: Parkway_Storage_Node
[03-07-17 8:34:50 pm] * We are group ID: 1. We are group name: Parkway_Storage_Group
[03-07-17 8:34:50 pm] * Starting Image Replication. -
FOG Replication saying login incorrect
Server
- FOG Version: 1.3.3
- OS: Ubuntu 14
Client
- Service Version:
- OS:
Description
I have 1 storage group and 2 storage nodes, the 1 node is the default node that was created when I installed FOG. The 2nd node is one that was created when I installed the Storage server (different IP).
I can see both storage nodes on the GUI home page. But every time the replication process starts, I get this in the log:
[03-07-17 8:04:43 pm] * Type: 2, File: /var/www/fog/lib/fog/fogftp.class.php, Line: 463, Message: ftp_login(): Login incorrect., Host: 172.31.161.251, Username: fog
[03-07-17 8:04:38 pm] | Image Name: Optiplex_3040_Jail
[03-07-17 8:04:38 pm] * Found Image to transfer to 1 node
[03-07-17 8:04:38 pm] * Attempting to perform Group -> Nodes image replication.
[03-07-17 8:04:38 pm] | There are no other members to sync to.
[03-07-17 8:04:38 pm] | Image Name: Optiplex_3040_Patrol
[03-07-17 8:04:38 pm] * Not syncing Image between groups
[03-07-17 8:04:38 pm] | There are no other members to sync to.
[03-07-17 8:04:38 pm] | Image Name: Optiplex_3040_Jail
[03-07-17 8:04:38 pm] * Not syncing Image between groups
[03-07-17 8:04:38 pm] * Attempting to perform Group -> Group image replication.
[03-07-17 8:04:38 pm] * We are node ID: 1. We are node name: Parkway_Storage_Node
[03-07-17 8:04:38 pm] * We are group ID: 1. We are group name: Parkway_Storage_Group
[03-07-17 8:04:38 pm] * Starting Image Replication.Which Password do I need to change? where should I look? I did look in the .fogsettings file of each server and the password there is different, is this the problem?
-
RE: Setting up new, large fog setup
@george1421 do you know the command to start or stop the fog image replicator service? It may very well just end up that we set the limit to 1 or 2 Mbps and then just let it run until complete, so it may never end up being an issue. Its just, until the network engineers get our new WAN speed up and running, we are stuck with a max 40Mbps between our precincts.
-
RE: Setting up new, large fog setup
@Tom-Elliott does the replication happen on its own or is this something’s by that can be scheduled? If I made an image for a new desktop today at say 9am, would it immediately replicate to all the nodes or does it wait for a pre-scheduled time? I was hoping I could tell the server to start to replicate at say 11pm at night. We are a 24 hour agency and other than users on the network at night, we have all our other scheduled backups and snapshots all happening at night starting at various times.
-
RE: Setup Synology Diskstation as main storage for Fog Sever
@Tom-Elliott I figured. We are using the Synology DS916+ on amazon for about $599.99. We are putting 4 4TB WD Red drives in it built on a RAID 0 (this is going to be our storage array so we are focusing on speed and not data redundancy since the images will be replicated from our main fog server)array on ext4. It also comes with 2 NICs so we teamed them together so we have a 2Gbps connection on the network.
-
RE: Setup Synology Diskstation as main storage for Fog Sever
@george1421 Thank you. It seems to be working for the moment. When I get to work tomorrow, I can document all the settings. The one thing that I don’t like is the NAS storage node does not show on the dashboard but I can capture and image and deploy an image and it seems to be working well.
-
Setting up new, large fog setup
I work for a sheriff’s office with over 1500 emplyees, with about 600 or more desktops. We have many precincts, a jail, and our main IT office. What we would like to do is setup a FOG server at our main IT office and then setup additional servers at our different precincts. What I would like help with is developing and drawing up a network drawing.
What would be the best setup? I was thinking, install 1 FOG server at our main IT office, and then setup a storage node at each precinct. What I am struggling with is, we would need to make sure that our WAN does not get saturated with traffic from the images. Can I install 1 FOG server and then setup different “Locations” in the fog server, 1 for each precinct? How would we setup the replication of images? would I have to have a different group for each location? If I create an image for a desktop, it uploads to our main IT office and then replicates to all the other precincts for all the other precincts to use. Is there a way to schedule the replication of the images so that it only replicates at night, say midnight?
-
RE: Setup Synology Diskstation as main storage for Fog Sever
@george1421 So to update, I actually tore down and reinstalled Ubuntu 14 server and reinstalled fog 1.3.3
From there, I verified my Synology files
from there I used ssh and putty to remote in to my synology and ran the touch /images/.mntcheck and touch /images/dev/.mntcheck
still in the Synology terminal, I ran sudo chmod 777 -R /volume1/imagesNext, I logged in to my fresh clean fog server, setup the dnsmasq since we have our own DHCP,
Here is my /etc/exports:
and here is my /etc/fstab
So after doing pretty much nothing on the fog server, just setting up dnsmasq, I went to a windows machine I have on the network and logged into the fog/management website, created a new storage node:
I then took the username and password from fog settings -> tftp settings and I used this username and password for the new storage group and the user I created on the synology drive.
I have registered and captured an image successfully and the image is being stored on our synology NAS (set to RAID 0 - ext4). I have not tested snapins yet but that is another day.
I am going to call it solved. Thank you so much for your help, I was really turned around there on the storage node settings.
-
RE: Setup Synology Diskstation as main storage for Fog Sever
@Tom-Elliott
I got a little farther. I was able to get the .mntcheck fixed but I am getting a permission error:failed to set permissions (prepareUploadLocation)
args Passd: /images/1866da47c92dI get a little further and then another error. any ideas on how to fix this one. The user account on the nas has read and write permission.
-
RE: Setup Synology Diskstation as main storage for Fog Sever
@Tom-Elliott I made some changes per your advise and I got past the mounting file system and now it is erroring out on the .mntcheck. I did the touch commands and I can see the files on the NAS but they are 0 bytes. should i copy the mntcheck files from the fog server or is there a different way of creating them?
I get
could not verify mount point, check if .mntcheck exists (/bin/fog.upload) -
RE: Setup Synology Diskstation as main storage for Fog Sever
@Tom-Elliott Ok, so i removed all the mounted folders from my fog server, and I added a new storage node in FOG, I put in the IP of our NAS, i didn’t see anything listed as storage location but I did create an FTP share that I successfully connected to using filezilla with the user name and password in the storage node.
Is this all I need to do to get it to work?
-
RE: Setup Synology Diskstation as main storage for Fog Sever
@Tom-Elliott while I have learned alot from the past couple of weeks, I am still new to linux.
I can PUTTY into the Synology. Are you saying, connect to the NAS (using ssh/putty), download and run the fog install from the Synology, choose storage mode and then, if the Synology is on 192.168.1.246 and my fog server is on 245,
enter NAS ip: 192.168.1.246
storage location: /images
FTP location: ??? /images
User: FOG
Pass: somePasswordtouch both /images and /images/dev .mntcheck
-
RE: Setup Synology Diskstation as main storage for Fog Sever
@Tom-Elliott Yes. NFS share on synology nas. So if I can’t mount the NFS share from the Synology, is there a better way to be able to use the storage on the NAS?
Would it be better to connect the NAS via USB to my Fog Server?
-
Setup Synology Diskstation as main storage for Fog Sever
Ubuntu 14 Server
- FOG Version: 1.3.3
- OS: Ubuntu
Client
- Service Version:
- OS:
Description
I am trying to setup a fog server on a Ubuntu server with a 128 GB SSD. I am able to get this setup and working. I have dnsmasq setup and working. I can register and capture/deploy images to clients.
Now I want to setup our Synology Diskstation, which has 7.24 TB on ext4, so that I can store all of my images there. I am able to perform : sudo mount %.%.%.%:/volume1/fogImages /images
and the dashboard of the FOG server show the 7TB of space availible, however, when I try to capture an image from a client, I keep getting this errorcould not mount images folder (/bin/fog.upload)
reason: mount: mount IP:/images on /images failed: permission denied