Transferring disks & images between 1.2 and 1.4
-
Hi all, Here’s the scenario, I have an old fog server 1.20 with 2x4tb and 2x5tb sata disks. Each disk is virtually full of images. I have a nice new fog server 1.4.4 with Raid controller and SSDs. but I need to physically move the sata drives from the old server to the new one. One by one, but keeping the old server able to serve images from the remaining disks as I gradually move them across. One a week.
Preferably keeping the images on them!
I don’t mind manually adding each image on the new fog server.
How do I safely move the disk from one server to another?
I suspect I need to delete the storage node from the old server then add the disk as a new storage node to the new fog server. I just can’t find out how to delete the storage node.
Could anyone point me to the relevant section in the documentation or offer a little advice please
Thanks
Julian
-
@julianh I don’t recommend swapping drives in this scenario. I’d recommend you follow this:
https://wiki.fogproject.org/wiki/index.php?title=Migrate_FOG
You’ve already done most of the steps, setting up a new fog server while leaving your old one alone. -
Thanks Wayne, the problem is I’ve used up my budget, and have to reuse the existing disks. I do have USB copies of them though. Could I delete them, put them in the new server and copy the backup over, then manually add the images to the new fog server. How do I delete the disk from within Fog, is it a storage node? the disks are mounted at /images1 … I need the old for server to boot fine during the transfer
Thanks
Julian
-
@Julianh We need more information here. Any to me it kind of sounds as if you are confusing the term “storage node”. A node is a full machine (be it physical or VM) but not just a storage item! So within your main FOG server there can’t be another storage node.
If you have several disks being used in your FOG server then I guess they are bound together in some kind of array (LVM or RAID controller) and then mounted. There is no way we can give you reasonable advice on how to move those disks if we (and you?) don’t know the exact setup. Please start by running the command
mount
on your old server and posting the full output here. -
@julianh Please answer Sebastian’s questions and provide the information he asked for. I have another question, what’s the total size of your images on your old server?
-
Thank you for your suggestions and sorry about the delay. I had to manually build some machines. I so need to sort this out, anyway the output from mount is;
image@fog1:~$ mount
/dev/mapper/fog1–vg-root on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
none on /sys/fs/pstore type pstore (rw)
/dev/sda1 on /5TB-USB-1 type ext4 (rw)
/dev/sdi1 on /boot type ext2 (rw)
/dev/sde1 on /images2 type ext4 (rw)
/dev/sdf1 on /images3 type ext4 (rw)
/dev/sdg1 on /images4 type ext4 (rw)
/dev/sdh1 on /images5 type ext4 (rw)
/dev/sdb1 on /4TB-USB-2 type ext4 (rw)
/dev/sdc1 on /4TB-USB-1 type ext4 (rw)
/dev/sdd1 on /5TB-USB-2 type ext4 (rw)
rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
nfsd on /proc/fs/nfsd type nfsd (rw)
image@fog1:~$The space used is;
Default memeber Used= 2.4Gib Free -849 Gib
1st 4 TB disk Used= 3.3 TiB Free= 284 GiB
2nd 4 TB disk Used= 3.25 TiB Free=343 GiB
3rd 5TB disk Used= 3.45 Tib Free =0 ( I know there should be spare but it’s recording 0)
1st 5TB disk Used = 2.46Tb Free = 1.83 TiBI have 4 USB drives plugged into the fog server, that I manually copy the files onto as a backup. I thought I’d backup the drives in my old fog server to the USB drives, remove the disks, both as image stores and physically put them into the new fog server, then copy the data back. I just want to know how to remove them from the old fog server one by one, so I can still use it as I go through the process.
The images from 1.20 are also in a different format, any guidance on how to convert them?
Thanks
Julian
-
@julianh said in Transferring disks & images between 1.2 and 1.4:
The images from 1.20 are also in a different format, any guidance on how to convert them?
The simplest way is to deploy using 1.2 and then recapture using 1.4.4 without booting the image between deploy and capture.
-
@wayne-workman But that would mean I needed twice the disk capacity. I need to export the images, moe the disk then import them
-
@julianh 1.4.4 should be able to deploy a 1.2 image.
-
@Julianh I am sorry to say that but your setup is quiet complex with so many disks mounted in various locations and I don’t think we’ll be able to reliably guide you through a migration here in the forums. I am not sure what to advice. As Wayne said, 1.4.4 can deploy 1.2 images. So unmounting and moving the disks to the new system should work.