O/S Deployment Thread, FOG repository question in Technical; I currently have a Fog server with a repository. The repository is currently just about full (only 80GB drive) I ...
25th August 2010, 11:18 AM #1
FOG repository question
I currently have a Fog server with a repository. The repository is currently just about full (only 80GB drive) I was looking at a 500GB drive and simply cloning the existing repository on to the new disk.
My questions are;
Will Fog recognise a 500GB HHD for a repository?
Will it work after being simply cloned on to the new disk with it being bigger etc?
Any help much appreciated.
25th August 2010, 11:54 AM #2
From memory I did something similar. I tested FOG on in a machine with a small disk and found it to be useful, rather than reinstalling I added an extra disk for the repository.
It really depends on how good you are with Linux about how easy this is to follow. I don't a FOG server set up at home (I deleted it 2 days ago, doh), but I will give instructions based on what I would do in Slackware. If you are logged on as yourself you may need to either add "sudo" before each command or "sudo su" to make each command run as root.
Install the new disk into the server.
Format it, xfs or ext4 are probably two of the best for this.
mkfs -t xfs /dev/sdb1
Mount it somewhere temporarily.
mount /dev/sdb1 /tmp/newdisk
Copy the current image files onto the new disk. If you have subdirectories within images then use cp -r instead.
cp /images/. /tmp/newdisk
Put the kettle on and have a brew, depending on how many images this could take a few minutes. Once you are happy the copy was successful, and you may want to make an additional backup just in case.
Delete content of the old images directory.
Unmount the new disk from its temporary location and mount it as /images.
mount /dev/sdb1 /images
You should now be able to image machines from your new disk.
Modify /etc/fstab so that the disk mounts to the correct place on boot up. I like vi as an editor, but pick your favourite.
copy the formatting of exiting fstab entries, but you will need something like
/dev/sdb1 /images xfs defaults 1 1
I have assumed you have SATA disks, if they are IDE then you will need /dev/hdb (or hdc or hdd depending upon the number of drives in the machine).
Thanks to sjatkn from:
3s-gtech (25th August 2010)
25th August 2010, 12:09 PM #3
I'll need to do this at some point, many thanks for your write-up!
By BarryWAaMC in forum Virtual Learning Platforms
Last Post: 15th March 2010, 12:02 PM
By swpmre in forum How do you do....it?
Last Post: 10th February 2010, 10:02 AM
Last Post: 3rd December 2009, 02:44 PM
By ssx4life in forum O/S Deployment
Last Post: 9th November 2009, 02:59 PM
By edie209 in forum Comments and Suggestions
Last Post: 11th September 2006, 09:26 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)