Installing a new hard drive when old hard drive crashes..
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.
Installing a new hard drive when old hard drive crashes..
Hello I'm a Linux Newbie,
I have a Check Point Mgmt server running on Linux see below version
Linux 2.6.18-92cp #1 SMP Sun Jan 30 14:41:37 IST 2011 i686 i686 i386 GNU/Linux
I'm looking to come up with a Disaster Recovery plan if/when a hard drive crashes. There are two hard drives installed, I ran and fdisk -l but have no idea how to read...
How do you know how many hard drives are installed from CLI???
How would I go about installing a new one and know that it is configured properly??
I guess I'm looking for some type of step by step if a hard drive crashes... Not sure if this is the place to request.. any help would be appreciated.
fdisk -l output:
Disk /dev/cciss/c0d0: 146.7 GB, 146778685440 bytes
255 heads, 32 sectors/track, 35132 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes
Device Boot Start End Blocks Id System
/dev/cciss/c0d0p1 * 1 38 155024 83 Linux
/dev/cciss/c0d0p2 39 423 1570800 83 Linux
/dev/cciss/c0d0p3 424 2736 9437040 82 Linux swap
/dev/cciss/c0d0p4 2737 35132 132175680 f Win95 Ext'd (LBA)
/dev/cciss/c0d0p5 2737 3623 3618944 83 Linux
/dev/cciss/c0d0p6 3624 3880 1048544 83 Linux
/dev/cciss/c0d0p7 3881 35132 127508144 83 Linux
Mount command output:
/dev/cciss/c0d0p6 on / type ext3 (rw)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/cciss/c0d0p1 on /boot type ext3 (rw)
/dev/cciss/c0d0p5 on /opt type ext3 (rw)
/dev/cciss/c0d0p2 on /sysimg type ext3 (rw)
/dev/cciss/c0d0p7 on /var type ext3 (rw)
The best thing to do is regular backups. I would also run regular SMART long tests, which can alert you to an imminent failure.
Many servers also use RAID arrays so they can keep data online all the time. Not sure if you need this for your server. It's not really a backup method, just increased redundancy.
If the HDD fails, you'll probably want to either get your data off right away if you have a small amount of data, or image the drive to an equal or larger drive and then recover the data from the new drive using testdisk or foremost.
The cciss driver handles HP SMART RAID controllers. The /dev/cciss/c0d0 device node points to the first array of the first (and probably only) RAID controller.
In other words, your system is equipped with a hardware RAID controller, and the single, logical disk appearing as /dev/cciss/c0d0 is in fact a RAID array.
The questions you will need to find the answers to, are:
How is this array configured (RAID 0 or RAID 1)?
If this is a redundant array, will the management software alert you when a drive fails?
Thanks for replying.. Ser Olmy I think the below output tells me I don't have an array... I could be wrong.. and I verify with Check Point to see if alerts of drive failure.
metaschima... That's my plan to backup regularly I have instructions from Check Pointe how to do.. and I will look into the SMART long tests..
So if either of you could answer this then.. I have a spare hard drive for the server if one fails what would be my steps to getting the replacement hard installed and the server/Linux to recognize it... not worrying about the data just yet..
So if either of you could answer this then.. I have a spare hard drive for the server if one fails what would be my steps to getting the replacement hard installed and the server/Linux to recognize it... not worrying about the data just yet..
Thanks for help...
For a server, I would say the best method of accomplishing this is to use RAID1. This mirrors the two HDDs and keeps them mirrored. You could also mirror them without RAID and keep one offline if you don't need to keep the server online all the time.
[Expert@xrivpn]# hpacucli controller all show
-bash: hpacucli: command not found
[Expert@xrivpn]# hpacucli
-bash: hpacucli: command not found
[Expert@xrivpn]#
Thanks for you help.. I'll see if I can download off HP website..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.