Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a VPS server (x64) with 5 IPs and plesk onyx. The centos 6.6 is causing some little trouble with cURL.
I think using centos 7 would solve this.
What is the easy way to remove centos 6 and install centos 7 without losing every configurations/server hardening, etc. that has been done already.
My access to the server is SSH but I am not sure my host would install centos 7 for me because all their packages are centos 6.6. but I could alsways ask. However, if ever they don't want to, what would be the best way for me to do this?
I so have acces to another (home) server (x64) where I can install centos 7 and do all the conf/harding (without plesk) to prepare/practice.
I was planning to install centos 7 on the home server (x64) and then try to run one of the vps backups made by plesk to see what would happend. Only thing is that the IPs would not work... so I would have to trick my computer with the windows host file when accessing the home server.
I've never done such a move new centos 7 with backup from old centos 6.6, etc.) so I was wondering if any of you have some suggestions for me. Is this the way to do this? or should I take another way?
Once that is done, I would do the same thing with the VPS and hope it reacts the same way as the home server.
Thanks!!
EDIT: also, is this a good time to leave centos 6.6?
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
About the best you can do is to back up /etc, /home, /var, /usr, /srv; then create the centos 7 installation; then use dd to copy the centos 7 installation by shh, over the centos 6.6 installation; and then use rsync to copy the back up directories to the new server.
You would undoubtedly have hours of tweaking to do. But, in the end, it is possible. To copy the new system to the server, you use nc and dd. Here's a post that explains it: http://www.linuxquestions.org/questi...ommand-362506/
Well the cURL on centos 6 seems old, don't you think? Anyways, the different pakages are updated already. I also figure that updating centos and apache can't hurt and I will need to do it eventualy anyway. Make sence?
Not really. Curl is such a low-level utility, there's not a whole lot of changes from version to version.
But upgrading CentOS to 7 is recommended, as full update support ended in May 2017 (although maintenance updates continue until 2020)
For CentOS, best bet is to follow the Migration Guide. In place upgrades are tricky for CentOS (the redhat-upgrade-utility hasn't been ported to centos well, it seems) https://wiki.centos.org/HowTos/MigrationGuide
About the best you can do is to back up /etc, /home, /var, /usr, /srv; then create the centos 7 installation; then use dd to copy the centos 7 installation by shh, over the centos 6.6 installation; and then use rsync to copy the back up directories to the new server.
You would undoubtedly have hours of tweaking to do. But, in the end, it is possible. To copy the new system to the server, you use nc and dd. Here's a post that explains it: http://www.linuxquestions.org/questi...ommand-362506/
Just to get a little more info...
in /etc, there are kernel, centos-release, etc. So... what will happend when I overrite the fresh centos 7 intall with the backed-up folder (/etc) with
Code:
rsync
, won't this mix up centos 6.6 and centos 7? Can't this create problems?
Anyone have a list of what files/folders should not be changed, or will running
Not really. Curl is such a low-level utility, there's not a whole lot of changes from version to version.
But upgrading CentOS to 7 is recommended, as full update support ended in May 2017 (although maintenance updates continue until 2020)
For CentOS, best bet is to follow the Migration Guide. In place upgrades are tricky for CentOS (the redhat-upgrade-utility hasn't been ported to centos well, it seems) https://wiki.centos.org/HowTos/MigrationGuide
Yeah, I heard that the tool is not good for Centos.
The official and approved way to 'migrate' is to back up your SETTINGS and critical data and then do a full clean install of the higher version. That has been the only RH supported major upgrade path until very recently, and CentOS does not have a better way. Replacing entire folders, or even files, is not recommended: it has been known to break systems in ways that can be immediately catastrophic, or that can hide for weeks and then sneak out and bite you.
HOME folders are pretty safe to clone entire, but system folders and files may change significantly between major versions.
The better way might be to download the very latest sources for curl and compile it for CentOS 6, or find a different tool to use.
The LONG term solution is to upgrade to CentOS 7, keeping in mind that this may not impact the specific problem.
When you DO upgrade, Plan carefully, get other eyes to peer-review your plan, have a backout path, and document everything. The more you rush things the more likely you are to shoot yourself in the foot.
The official and approved way to 'migrate' is to back up your SETTINGS and critical data and then do a full clean install of the higher version. That has been the only RH supported major upgrade path until very recently, and CentOS does not have a better way. Replacing entire folders, or even files, is not recommended: it has been known to break systems in ways that can be immediately catastrophic, or that can hide for weeks and then sneak out and bite you.
HOME folders are pretty safe to clone entire, but system folders and files may change significantly between major versions.
The better way might be to download the very latest sources for curl and compile it for CentOS 6, or find a different tool to use.
The LONG term solution is to upgrade to CentOS 7, keeping in mind that this may not impact the specific problem.
When you DO upgrade, Plan carefully, get other eyes to peer-review your plan, have a backout path, and document everything. The more you rush things the more likely you are to shoot yourself in the foot.
Thanks, yeah I had a wierd feeling about this. Anyway, I have asked my host if they can help with any part and/or if they have suggestions. I would be testing it out on my home server first so if it messes up, its still all good.
I'm not in a hurry since I don't want to mess it up! I rather take a long terme solution to this.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.