I have to rebuild a new fog server
-
I have a server that is having issues, but last week I backed up my images to an external hard drive, I was going to rebuild a server but I would like to know if there is any issues by copying over images from the external HD to the new server? If anyone has done this what steps did you take to make this process go smooth?
Thank You
-
[quote=“fredlwal, post: 45157, member: 26766”]I have a server that is having issues, but last week I backed up my images to an external hard drive, I was going to rebuild a server but I would like to know if there is any issues by copying over images from the external HD to the new server? If anyone has done this what steps did you take to make this process go smooth?
Thank You[/quote]
What version was your previous FOG server?
You shouldn’t have any issues, but when you copy your images into your /images folder, you will also need to create an image store for each image. You will also want to make sure that the path listed in the Image store is IDENTICAL to the folder that is storing the image.
The only thing you need to look out for is if your server is an older version, such as 0.32, or 0.33b. We upgraded the partimage to partclone and the images are not exactly reverse compatible, but there is a way to enable the Legacy flag so that you can continue to use your older images on a newer server. Personally, I’ve had better luck with deploying the image from a current server and uploading fresh to a new server.
For Example. Lets say one of your images is named Dell2015. When you add the image the the image store you will want to verify that the “Image File” box has the correct folder listed. In linux Dell2015 and dell2015 are NOT the same thing. If the folders are not correct, you will not be able to deploy your images, as FOG will not be able to find them.
After you copy your images to your new /images folder, you will want to issue a chmod command to allow global read/write privileges so that the image can be found and used.
-
[quote=“Jaymes Driver, post: 45158, member: 3582”]What version was your previous FOG server?
You shouldn’t have any issues, but when you copy your images into your /images folder, you will also need to create an image store for each image. You will also want to make sure that the path listed in the Image store is IDENTICAL to the folder that is storing the image.
The only thing you need to look out for is if your server is an older version, such as 0.32, or 0.33b. We upgraded the partimage to partclone and the images are not exactly reverse compatible, but there is a way to enable the Legacy flag so that you can continue to use your older images on a newer server. Personally, I’ve had better luck with deploying the image from a current server and uploading fresh to a new server.
For Example. Lets say one of your images is named Dell2015. When you add the image the the image store you will want to verify that the “Image File” box has the correct folder listed. In linux Dell2015 and dell2015 are NOT the same thing. If the folders are not correct, you will not be able to deploy your images, as FOG will not be able to find them.
After you copy your images to your new /images folder, you will want to issue a chmod command to allow global read/write privileges so that the image can be found and used.[/quote]
what’s the command for the chmod to allow global read/write?
-
[code]
sudo chmod -R 0777 /images
[/code] -
[quote=“Jaymes Driver, post: 45289, member: 3582”][code]
sudo chmod -R 0777 /images
[/code][/quote]So I should do that after I copy over the images folder that is on the external hard drive?
-
[quote=“fredlwal, post: 45290, member: 26766”]So I should do that after I copy over the images folder that is on the external hard drive?[/quote]
Yes, after you copy your images from the External drive to the /images folder, open terminal and issue the command.
You will also need to create an image store for each image you wish to assign to a host.
-
i rebuilt my server after i broke no issues at all copying the images in froma usb once you keep the exact name and chmod the images.