Jump to content

Recommended Posts

Posted

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.

Posted

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.

Partition it.

cfdisk /dev/sdb

 

Format it, xfs or ext4 are probably two of the best for this.

mkfs -t xfs /dev/sdb1

 

Mount it somewhere temporarily.

mkdir /tmp/newdisk

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.

rm /images/*

 

Unmount the new disk from its temporary location and mount it as /images.

umount /tmp/newdisk

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.

vi /etc/fstab

 

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 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...