PDA

View Full Version : Re-installing when System Crashes



vishnusangam
01-Feb-2017, 07:01
I am working on some application where i need save the system state configuration files. So i want to save(Backup) it some where in the hard disk partition(as hidden or recovery partition) Whenever system crashes i can restore it. When System Crashes is it possible not to touch that partition while re-installing linux suse and the files are still be available when the system is ready

KBOYLE
01-Feb-2017, 16:09
vishnusangam wrote:

>
> I am working on some application where i need save the system state
> configuration files. So i want to save(Backup) it some where in the
> hard disk partition(as hidden or recovery partition) Whenever system
> crashes i can restore it. When System Crashes is it possible not to
> touch that partition while re-installing linux suse and the files are
> still be available when the system is ready

There are several ways you can do this:

If you have the ability to take a snapshot of the system before you
start working on your application, you can simply restore the snapshot
and revert back to the same state as when the snapshot was taken.

If your hard drive has sufficient capacity and your Linux installation
consists of a single disk partition, you can copy the whole partition
to another partition then copy it back when you need to restore it.

You could bacup your installation to a second (external?) drive.

If you have to do a clean install of your system, you want to make sure
you don't delete any partitions on your hard drive you may need. That's
why using a second hard drive for backup is a good idea.

--
Kevin Boyle - Knowledge Partner
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below this post.
Thank you.

vishnusangam
03-Feb-2017, 05:58
vishnusangam wrote:

>
> I am working on some application where i need save the system state
> configuration files. So i want to save(Backup) it some where in the
> hard disk partition(as hidden or recovery partition) Whenever system
> crashes i can restore it. When System Crashes is it possible not to
> touch that partition while re-installing linux suse and the files are
> still be available when the system is ready

There are several ways you can do this:

If you have the ability to take a snapshot of the system before you
start working on your application, you can simply restore the snapshot
and revert back to the same state as when the snapshot was taken.

If your hard drive has sufficient capacity and your Linux installation
consists of a single disk partition, you can copy the whole partition
to another partition then copy it back when you need to restore it.

You could bacup your installation to a second (external?) drive.

If you have to do a clean install of your system, you want to make sure
you don't delete any partitions on your hard drive you may need. That's
why using a second hard drive for backup is a good idea.

--
Kevin Boyle - Knowledge Partner
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below this post.
Thank you.



---
Thank you so much kevin ;) :)
I am new linux so if the file system is corrupt or if the we do clean install of our system the partition will go off right?
we have written code for saving backups in USB drive and DVD but the requirement is to Store in the single hard drive and to retrieve when required(even if the system crashes)

KBOYLE
03-Feb-2017, 17:13
---
Thank you so much kevin ;) :)
I am new linux so if the file system is corrupt or if the we do clean install of our system the partition will go off right?
It depends on how your system is configured and how you reinstall. When you install, you can delete all the existing partitions on the disk or, using advanced configuration, you can control which partitions are deleted and created.


we have written code for saving backups in USB drive and DVD but the requirement is to Store in the single hard drive and to retrieve when required(even if the system crashes)
To help you with this, we need some more information and you need to learn more about Linux.

You have asked for help in the SUSEŽ Linux* Enterprise Desktop forum so I assume we are talking about the Desktop product.
Is that correct?

The documentation is a good place to begin to learn what options you have. You can find information about the current SLED release here: SUSEŽ Linux* Enterprise Desktop 12 SP2 (https://www.suse.com/documentation/sled-12/index.html).

Do you already have SLED installed? It would be helpful to know what version you have.
Please run this command and post the results.

cat /etc/*release

Can you provide more information about the kind of failures you want to recover from? For example,

If the system crashes, you may not need to do a recovery. You may only need to restart the system.
If the hard drive dies or becomes corrupted, it may not be possible to recover any data that is stored on the drive.

vishnusangam
08-Feb-2017, 07:03
I am working on some application where i need save the system state configuration files. So i want to save(Backup) it some where in the hard disk partition(as hidden or recovery partition) Whenever system crashes i can restore it. When System Crashes is it possible not to touch that partition while re-installing linux suse and the files are still be available when the system is ready





---
I am about my workstation by this week can i get the any information about the re-installation process with the previous partition step by step. and i am expected to get version 11.
Thank you so much

vishnusangam
08-Feb-2017, 10:10
---
I am about my workstation by this week can i get the any information about the re-installation process with the previous partition step by step. and i am expected to get version 11.
Thank you so much





-----
one more doubt we have PCIe ports in workstation where we can have SSDs in it. I can use PCIe to USB adapter(converter) and use my USB storage devices.. MY question is will it detect or not.

KBOYLE
08-Feb-2017, 16:30
vishnusangam wrote:

> one more doubt we have PCIe ports in workstation where we can have
> SSDs in it. I can use PCIe to USB adapter(converter) and use my USB
> storage devices.. MY question is will it detect or not.

Why do you want to do this?

PCIe is a high speed internal bus. If you have an external drive with a
USB interface, why don't you just connect it to a USB port?

--
Kevin Boyle - Knowledge Partner
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below this post.
Thank you.

KBOYLE
08-Feb-2017, 17:16
vishnusangam wrote:

> I am about my workstation by this week can i get the any information
> about the re-installation process with the previous partition step by
> step. and i am expected to get version 11.
> Thank you so much

Hi vishnusangam,

I'm sorry. I can't provide step by step instructions. Any time you
modify disk partitions, there is a risk of data loss if you make a
mistake. Make sure you have a backup on another device before you make
any changes.

Please read the documentation:
SUSE Linux Enterprise Desktop 11 SP4
https://www.suse.com/documentation/sled11/index.html

This part of the documentation discusses disk partitions:
Using the YaST Partitioner
https://www.suse.com/documentation/sled11/book_sle_deployment/data/sec_yast2_i_y2_part_expert.html

--
Kevin Boyle - Knowledge Partner
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below this post.
Thank you.

KBOYLE
08-Feb-2017, 17:19
vishnusangam wrote:

> and i am expected to get version 11.

May I ask why you chose SLE 11 and not SLE 12?

--
Kevin Boyle - Knowledge Partner
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below this post.
Thank you.

vishnusangam
10-Feb-2017, 05:23
i want some small amount of storage like 16 - 32gb for backup that is not disturbed. if the PCIe supports adapter like this( http://www.amazon.in/amiciKart-Express-Ports-Connector-Desktop/dp/B01MSUWNKV?tag=googinhydr18418-21&tag=googinkenshoo-21&ascsubtag=534b0c63-0127-4aee-9fa7-b341373fa114). I can attach my USB storage inside my workstation and it will there for permanent.
Please help me will it support or not. Or do i need any device drivers for those

Why i chose USB converter is i will not get low profile SSD for PCIe slots converter makes easy for me

Thank you

vishnusangam
10-Feb-2017, 05:25
i am not 100% sure about the version i may get SLE 12

KBOYLE
10-Feb-2017, 18:24
vishnusangam wrote:

>
> i am not 100% sure about the version i may get SLE 12

I would recommend you go with SLE 12 as it is the current release.

Check the documentation and read about snapshots. Snapshots may be a
simple and effecient way to do the kinds of recoveries you want.

--
Kevin Boyle - Knowledge Partner
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below this post.
Thank you.

KBOYLE
10-Feb-2017, 20:41
i want some small amount of storage like 16 - 32gb for backup that is not disturbed. Okay.


if the PCIe supports adapter like this( http://www.amazon.in/amiciKart-Express-Ports-Connector-Desktop/dp/B01MSUWNKV?tag=googinhydr18418-21&tag=googinkenshoo-21&ascsubtag=534b0c63-0127-4aee-9fa7-b341373fa114). I can attach my USB storage inside my workstation and it will there for permanent.
Your link points to an "amiciKart USB 3.0 PCI-E Express ADD-ON Card with 4 Ports and 5V 4-Pin Power Connector for Desktop PC". This is an ADD-ON card that would be used to provide USB ports on a system if none existed or additional USB ports if more are needed. It connects to the internal PCIe bus and provides four external USB connections.



Please help me will it support or not. Or do i need any device drivers for those

Why i chose USB converter is i will not get low profile SSD for PCIe slots converter makes easy for me

Thank you
Many ADD-ON cards like this one do require special drivers. I have not used this device so I don't know what it needs. If special drivers are needed they are usually supplied with the card. Often, they are Windows drivers and there may not be any Linux drivers available.

I believe there are better options. Most desktop systems support more than one hard drive. Why don't you install another small capacity HD or SSD?

You would have your internal drive.
It would likely connect using a standard SATA interface.
No special drivers would be needed.

vishnusangam
14-Feb-2017, 06:59
Thank you Kevin for the help it was really helpful from your side i would really be happy to connected with you in future

vishnusangam
15-Feb-2017, 11:50
Okay.


Your link points to an "amiciKart USB 3.0 PCI-E Express ADD-ON Card with 4 Ports and 5V 4-Pin Power Connector for Desktop PC". This is an ADD-ON card that would be used to provide USB ports on a system if none existed or additional USB ports if more are needed. It connects to the internal PCIe bus and provides four external USB connections.


Many ADD-ON cards like this one do require special drivers. I have not used this device so I don't know what it needs. If special drivers are needed they are usually supplied with the card. Often, they are Windows drivers and there may not be any Linux drivers available.

I believe there are better options. Most desktop systems support more than one hard drive. Why don't you install another small capacity HD or SSD?

You would have your internal drive.
It would likely connect using a standard SATA interface.
No special drivers would be needed.




As you suggested
i will be using 2 SATA HDDs one for backup and another as master(main) i got know about partition and mounting process through soe video tutorial . so what if i reinstall the OS which HDD will it choose. can you get more information about how to use one HDD dedicated for backup process

KBOYLE
15-Feb-2017, 19:39
what if i reinstall the OS which HDD will it choose.

If you reinstall the OS, it will likely choose the same HDD where it was originally installed but during the install you can select a different HDD.
You can also repair the installed OS so you may not need to reinstall it. This is explained in the documentation.

You said you were new to Linux; there is much to learn. The best way to learn about SLED is to read the SUSE Linux Enterprise Desktop 12 SP2 documentation (https://www.suse.com/documentation/sled-12/). There is a lot to read, I know, but that is because SLED has many features and there are different ways to install and configure it. There are also YouTube videos (https://www.youtube.com/results?search_query=suse+introduction) that can help you learn about SUSE Linux. You may find them helpful.

Please spend some time to learn more about Linux. I will try to help you where I can.

vishnusangam
21-Mar-2017, 07:33
I am working on some application where i need save the system state configuration files. So i want to save(Backup) it some where in the hard disk partition(as hidden or recovery partition) Whenever system crashes i can restore it. When System Crashes is it possible not to touch that partition while re-installing linux suse and the files are still be available when the system is ready



Hello

yesterday i installed SLES 11 sp3 in a Hp z420 with 2 HDD as u said it should ask Which HDD it should be installed and which will as slave but i observed it formatted both the HDDs

KBOYLE
21-Mar-2017, 18:50
Hello

yesterday i installed SLES 11 sp3 in a Hp z420 with 2 HDD as u said it should ask Which HDD it should be installed and which will as slave but i observed it formatted both the HDDs

I'm sorry the installation did not complete as you expected. Please note: I did not say it would ask; I said you would be able to choose. There is a difference!

When a computer boots from a hard drive, it uses the first one: "HD0". When you install SLE, it will choose the HDD that will be used to boot the system. That may not be the one you want to use. If you have more than one HDD installed, you can enter the system BIOS to configure which HDD will be used as HD0.

Did you read the SLES 11 Deployment guide (https://www.suse.com/documentation/sles11/singlehtml/book_sle_deployment/book_sle_deployment.html)?

As you can see, the Installation Settings screen shows what drives will be partitioned.
244

In the SLES 11 Deployment guide under Installation Settings (https://www.suse.com/documentation/sles11/book_sle_deployment/data/sec_i_yast2_proposal.html), Partitioning (Overview) Section 6.11.1 states:

Review and, if necessary, change the partition setup proposed by the system. Changing the partition setup either lets you partition a specific disk or, when choosing Custom Partitioning, apply your own partitioning scheme.

This is where you would change your partitioning setup. Did you just accept the default that was proposed?

Before any changes are made to your disk you must click on the Install button. Once the installation begins, you have missed the opportunity to change the partitioning setup.

I also recommended a few other things:

Become more familiar with Linux. It is easy to make mistakes when you are still learning.
Read the documentation. It should provide all the information you need.
I would recommend you go with SLE 12 as it is the current release. SLES 11 SP3 is no longer supported.


This is the forum for SUSE Linux Enterprise Desktop. In all my previous posts I referred to SLED. What made you decide to install SUSE Linux Enterprise Server?