大网数据广告活动
服务器运维问答

Migrate FreeBSD Jails to Linux

· 52CE 我爱测

we are running some jails in FreeBSD 10 and the decision has been made to decommission the FreeBSD server and migrate all the jails to Linux environment Red Hat 6 or 7. Is there a straight forward way of migrating BSD jails to li…

问题原文

原帖链接 · sandeep.s85 · CC BY-SA 3.0

we are running some jails in FreeBSD 10 and the decision has been made to decommission the FreeBSD server and migrate all the jails to Linux environment Red Hat 6 or 7.

Is there a straight forward way of migrating BSD jails to linux -- as containers that can be run via docker

or any other way to convert BSD jails to containers and pull/run via docker again.

Any other way of doing it ? I'm unsure whether this is actually possible or not because I tried reading on google but has not come across anything like that.

社区高分解答

原帖链接 · Mathieu Kerjouan · CC BY-SA 3.0

Depending of your current running services, it can be straightforward. Lot of tools are available between these two platforms.

  1. backup your server, jails and every data. If you are using zfs, you can use zfs snapshot with zfs send and zfs receive. If you don't have ZFS, and use standard FreeBSD filesystem, you can use mksnap_ffs. I hope you have decent solution to backup your data, like bacula, little hard to use the first time, but really useful if you make mistakes!

  2. list all your services on FreeBSD server or FreeBSD jails (e.g. service -le), don't forget to migrate cronjob (all crontabs are stored in /var/cron/tabs on FreeBSD) and at job if you are using it.

  3. try to find same service working on RHEL server, you can use yum search, freshports and pbone. Be careful with this step, FreeBSD has recent version of software, RHEL freeze its package collection, read release notes before doing something wrong and test configuration compatibility.

  4. make your test platform with all these information.

  5. test your services.

  6. read logs. If something go wrong, read FreeBSD and RHEL documentation concerning your issue.

I don't know how your platform is configured currently, but, if all data (customer, backend...) are remotely stored on SAN or NAS (e.g. NFS, iSCSI...), it can be really easy to migrate. In this particular case, only configuration on FreeBSD and RHEL server will be modified.

Last advice: read old log and try to find working/not working pattern on it and replay it on your new testing platform.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-10-18)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。