CentOS reinstall after crash (regularly)

Clash Royale CLAN TAG#URR8PPP
I have an old laptop which runs CentOS 7 and runs a MQTT server, MySQL and few java apps. The laptop sometimes crashes (due to its old age) and forces me to format and reinstall CentOS again. I have to again install all the packages which generally takes a lot of time. I am looking if I can simply create a "copy" of the whole OS with all the packages and restore it whenever required.
Copy can be a custom image or a custom script. I have googled clonezilla, chef and similar tools but I feel that is an overkill for just a single laptop. Custom script solves the packages part but I have to install the OS manually. Any thoughts?
Also I just need the installation. I can habdle db data recovery and application configuration recovery.
centos
migrated from serverfault.com Mar 6 at 10:36
This question came from our site for system and network administrators.
add a comment |
I have an old laptop which runs CentOS 7 and runs a MQTT server, MySQL and few java apps. The laptop sometimes crashes (due to its old age) and forces me to format and reinstall CentOS again. I have to again install all the packages which generally takes a lot of time. I am looking if I can simply create a "copy" of the whole OS with all the packages and restore it whenever required.
Copy can be a custom image or a custom script. I have googled clonezilla, chef and similar tools but I feel that is an overkill for just a single laptop. Custom script solves the packages part but I have to install the OS manually. Any thoughts?
Also I just need the installation. I can habdle db data recovery and application configuration recovery.
centos
migrated from serverfault.com Mar 6 at 10:36
This question came from our site for system and network administrators.
2
You have to "format and reinstall" after a "crash"? That doesn't make any sense. It also doesn't make any sense that you would be using such an unreliable old laptop for any important business purpose.
– Michael Hampton
Mar 1 at 15:15
Voting to migrate because in the serverfault scope of a business environment the solution to a crashing laptop is to get the hardware repaired or replaced. - Having said that: Scripting a CentOS install is called a kickstart. It has been ages since I did a manual CentOS install but if i recall correctly after a manual installation the installer creates an kickstart file in /root/ (anaconda.ks?) for you. You can use that file the next time you install to automatically repeat all the manual choices you made if you don't want to use an imaging solution
– HBruijn
Mar 1 at 15:18
access.redhat.com/documentation/en-us/red_hat_enterprise_linux/…
– HBruijn
Mar 1 at 15:20
@Michael Hampton : The crash in my case was due to hardware issues. I did not intend crashes due to software issues. Also this server is only used for showcasing my POC apps. Not much of business impact.
– SRCM
Mar 1 at 15:27
@HBruijn: Thank you for the reference. I'll go through it.
– SRCM
Mar 1 at 15:29
add a comment |
I have an old laptop which runs CentOS 7 and runs a MQTT server, MySQL and few java apps. The laptop sometimes crashes (due to its old age) and forces me to format and reinstall CentOS again. I have to again install all the packages which generally takes a lot of time. I am looking if I can simply create a "copy" of the whole OS with all the packages and restore it whenever required.
Copy can be a custom image or a custom script. I have googled clonezilla, chef and similar tools but I feel that is an overkill for just a single laptop. Custom script solves the packages part but I have to install the OS manually. Any thoughts?
Also I just need the installation. I can habdle db data recovery and application configuration recovery.
centos
I have an old laptop which runs CentOS 7 and runs a MQTT server, MySQL and few java apps. The laptop sometimes crashes (due to its old age) and forces me to format and reinstall CentOS again. I have to again install all the packages which generally takes a lot of time. I am looking if I can simply create a "copy" of the whole OS with all the packages and restore it whenever required.
Copy can be a custom image or a custom script. I have googled clonezilla, chef and similar tools but I feel that is an overkill for just a single laptop. Custom script solves the packages part but I have to install the OS manually. Any thoughts?
Also I just need the installation. I can habdle db data recovery and application configuration recovery.
centos
centos
asked Mar 1 at 14:51
SRCM
migrated from serverfault.com Mar 6 at 10:36
This question came from our site for system and network administrators.
migrated from serverfault.com Mar 6 at 10:36
This question came from our site for system and network administrators.
2
You have to "format and reinstall" after a "crash"? That doesn't make any sense. It also doesn't make any sense that you would be using such an unreliable old laptop for any important business purpose.
– Michael Hampton
Mar 1 at 15:15
Voting to migrate because in the serverfault scope of a business environment the solution to a crashing laptop is to get the hardware repaired or replaced. - Having said that: Scripting a CentOS install is called a kickstart. It has been ages since I did a manual CentOS install but if i recall correctly after a manual installation the installer creates an kickstart file in /root/ (anaconda.ks?) for you. You can use that file the next time you install to automatically repeat all the manual choices you made if you don't want to use an imaging solution
– HBruijn
Mar 1 at 15:18
access.redhat.com/documentation/en-us/red_hat_enterprise_linux/…
– HBruijn
Mar 1 at 15:20
@Michael Hampton : The crash in my case was due to hardware issues. I did not intend crashes due to software issues. Also this server is only used for showcasing my POC apps. Not much of business impact.
– SRCM
Mar 1 at 15:27
@HBruijn: Thank you for the reference. I'll go through it.
– SRCM
Mar 1 at 15:29
add a comment |
2
You have to "format and reinstall" after a "crash"? That doesn't make any sense. It also doesn't make any sense that you would be using such an unreliable old laptop for any important business purpose.
– Michael Hampton
Mar 1 at 15:15
Voting to migrate because in the serverfault scope of a business environment the solution to a crashing laptop is to get the hardware repaired or replaced. - Having said that: Scripting a CentOS install is called a kickstart. It has been ages since I did a manual CentOS install but if i recall correctly after a manual installation the installer creates an kickstart file in /root/ (anaconda.ks?) for you. You can use that file the next time you install to automatically repeat all the manual choices you made if you don't want to use an imaging solution
– HBruijn
Mar 1 at 15:18
access.redhat.com/documentation/en-us/red_hat_enterprise_linux/…
– HBruijn
Mar 1 at 15:20
@Michael Hampton : The crash in my case was due to hardware issues. I did not intend crashes due to software issues. Also this server is only used for showcasing my POC apps. Not much of business impact.
– SRCM
Mar 1 at 15:27
@HBruijn: Thank you for the reference. I'll go through it.
– SRCM
Mar 1 at 15:29
2
2
You have to "format and reinstall" after a "crash"? That doesn't make any sense. It also doesn't make any sense that you would be using such an unreliable old laptop for any important business purpose.
– Michael Hampton
Mar 1 at 15:15
You have to "format and reinstall" after a "crash"? That doesn't make any sense. It also doesn't make any sense that you would be using such an unreliable old laptop for any important business purpose.
– Michael Hampton
Mar 1 at 15:15
Voting to migrate because in the serverfault scope of a business environment the solution to a crashing laptop is to get the hardware repaired or replaced. - Having said that: Scripting a CentOS install is called a kickstart. It has been ages since I did a manual CentOS install but if i recall correctly after a manual installation the installer creates an kickstart file in /root/ (anaconda.ks?) for you. You can use that file the next time you install to automatically repeat all the manual choices you made if you don't want to use an imaging solution
– HBruijn
Mar 1 at 15:18
Voting to migrate because in the serverfault scope of a business environment the solution to a crashing laptop is to get the hardware repaired or replaced. - Having said that: Scripting a CentOS install is called a kickstart. It has been ages since I did a manual CentOS install but if i recall correctly after a manual installation the installer creates an kickstart file in /root/ (anaconda.ks?) for you. You can use that file the next time you install to automatically repeat all the manual choices you made if you don't want to use an imaging solution
– HBruijn
Mar 1 at 15:18
access.redhat.com/documentation/en-us/red_hat_enterprise_linux/…
– HBruijn
Mar 1 at 15:20
access.redhat.com/documentation/en-us/red_hat_enterprise_linux/…
– HBruijn
Mar 1 at 15:20
@Michael Hampton : The crash in my case was due to hardware issues. I did not intend crashes due to software issues. Also this server is only used for showcasing my POC apps. Not much of business impact.
– SRCM
Mar 1 at 15:27
@Michael Hampton : The crash in my case was due to hardware issues. I did not intend crashes due to software issues. Also this server is only used for showcasing my POC apps. Not much of business impact.
– SRCM
Mar 1 at 15:27
@HBruijn: Thank you for the reference. I'll go through it.
– SRCM
Mar 1 at 15:29
@HBruijn: Thank you for the reference. I'll go through it.
– SRCM
Mar 1 at 15:29
add a comment |
1 Answer
1
active
oldest
votes
Do your format and load, then do a dump (that is, a full backup) of all the file systems. To reinstall, format and do a minimal load, then do a restore of all the file systems.
can you be more specific? Yes the backup and restore is the thing i am looking for but is there any utility that can achieve this. If your referring to the manual backup, i was trying to avoid that.
– SRCM
Mar 1 at 16:06
Yes, I was looking at the dump/restore pair in the dump rpm.
– mpez0
Mar 1 at 16:53
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f504668%2fcentos-reinstall-after-crash-regularly%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Do your format and load, then do a dump (that is, a full backup) of all the file systems. To reinstall, format and do a minimal load, then do a restore of all the file systems.
can you be more specific? Yes the backup and restore is the thing i am looking for but is there any utility that can achieve this. If your referring to the manual backup, i was trying to avoid that.
– SRCM
Mar 1 at 16:06
Yes, I was looking at the dump/restore pair in the dump rpm.
– mpez0
Mar 1 at 16:53
add a comment |
Do your format and load, then do a dump (that is, a full backup) of all the file systems. To reinstall, format and do a minimal load, then do a restore of all the file systems.
can you be more specific? Yes the backup and restore is the thing i am looking for but is there any utility that can achieve this. If your referring to the manual backup, i was trying to avoid that.
– SRCM
Mar 1 at 16:06
Yes, I was looking at the dump/restore pair in the dump rpm.
– mpez0
Mar 1 at 16:53
add a comment |
Do your format and load, then do a dump (that is, a full backup) of all the file systems. To reinstall, format and do a minimal load, then do a restore of all the file systems.
Do your format and load, then do a dump (that is, a full backup) of all the file systems. To reinstall, format and do a minimal load, then do a restore of all the file systems.
answered Mar 1 at 16:02
mpez0mpez0
21913
21913
can you be more specific? Yes the backup and restore is the thing i am looking for but is there any utility that can achieve this. If your referring to the manual backup, i was trying to avoid that.
– SRCM
Mar 1 at 16:06
Yes, I was looking at the dump/restore pair in the dump rpm.
– mpez0
Mar 1 at 16:53
add a comment |
can you be more specific? Yes the backup and restore is the thing i am looking for but is there any utility that can achieve this. If your referring to the manual backup, i was trying to avoid that.
– SRCM
Mar 1 at 16:06
Yes, I was looking at the dump/restore pair in the dump rpm.
– mpez0
Mar 1 at 16:53
can you be more specific? Yes the backup and restore is the thing i am looking for but is there any utility that can achieve this. If your referring to the manual backup, i was trying to avoid that.
– SRCM
Mar 1 at 16:06
can you be more specific? Yes the backup and restore is the thing i am looking for but is there any utility that can achieve this. If your referring to the manual backup, i was trying to avoid that.
– SRCM
Mar 1 at 16:06
Yes, I was looking at the dump/restore pair in the dump rpm.
– mpez0
Mar 1 at 16:53
Yes, I was looking at the dump/restore pair in the dump rpm.
– mpez0
Mar 1 at 16:53
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f504668%2fcentos-reinstall-after-crash-regularly%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
You have to "format and reinstall" after a "crash"? That doesn't make any sense. It also doesn't make any sense that you would be using such an unreliable old laptop for any important business purpose.
– Michael Hampton
Mar 1 at 15:15
Voting to migrate because in the serverfault scope of a business environment the solution to a crashing laptop is to get the hardware repaired or replaced. - Having said that: Scripting a CentOS install is called a kickstart. It has been ages since I did a manual CentOS install but if i recall correctly after a manual installation the installer creates an kickstart file in /root/ (anaconda.ks?) for you. You can use that file the next time you install to automatically repeat all the manual choices you made if you don't want to use an imaging solution
– HBruijn
Mar 1 at 15:18
access.redhat.com/documentation/en-us/red_hat_enterprise_linux/…
– HBruijn
Mar 1 at 15:20
@Michael Hampton : The crash in my case was due to hardware issues. I did not intend crashes due to software issues. Also this server is only used for showcasing my POC apps. Not much of business impact.
– SRCM
Mar 1 at 15:27
@HBruijn: Thank you for the reference. I'll go through it.
– SRCM
Mar 1 at 15:29