LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-18-2014, 09:25 AM   #1
XrayIT
LQ Newbie
 
Registered: Sep 2013
Posts: 6

Rep: Reputation: Disabled
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)
 
Old 03-18-2014, 01:02 PM   #2
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 491Reputation: 491Reputation: 491Reputation: 491Reputation: 491
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.
 
Old 03-18-2014, 01:06 PM   #3
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,448

Rep: Reputation: Disabled
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?

Last edited by Ser Olmy; 03-18-2014 at 01:08 PM.
 
Old 03-18-2014, 02:52 PM   #4
XrayIT
LQ Newbie
 
Registered: Sep 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
No RAID..

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.

[Expert@xrivpn]# cat /proc/mdstat
Personalities :
unused devices: <none>
[Expert@xrivpn]#

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..

Thanks for help...
 
Old 03-18-2014, 04:21 PM   #5
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,448

Rep: Reputation: Disabled
You're looking in the wrong place. The md driver is for software RAID, while your server has hardware RAID.

There's a good chance your server has the HP Array Configuration Utility installed. Try this command:
Code:
hpacucli controller all show
It should show the slot number of your RAID controller. Then try this:
Code:
hpacucli controller slot=<slot_number> logicaldrive all show
Replace <slot_number> with the number reported by the first command, and you should see the status of your RAID array.

Hardware arrays are driven by a CPU on the RAID controller, and presented to the OS through a driver as a single hard drive.

Last edited by Ser Olmy; 03-18-2014 at 04:23 PM.
 
Old 03-18-2014, 04:39 PM   #6
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 491Reputation: 491Reputation: 491Reputation: 491Reputation: 491
Quote:
Originally Posted by XrayIT View Post
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.
 
Old 03-18-2014, 04:45 PM   #7
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,448

Rep: Reputation: Disabled
Quote:
Originally Posted by metaschima View Post
For a server, I would say the best method of accomplishing this is to use RAID1.
I agree, and I'm quite certain that's exactly what he has.
 
Old 03-19-2014, 10:29 AM   #8
XrayIT
LQ Newbie
 
Registered: Sep 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hpacucli

Hi Ser,

It doesn't appear to have it installed

[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..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] transfer data from a SATA external hard drive to a IDE internal hard drive Cabtech Linux - Newbie 7 04-22-2012 02:55 PM
Moving files from a Linux hard drive to a Windows Vista Premium hard drive WolfMan51 Linux - Hardware 5 07-12-2011 09:19 AM
Booting Linux on an external USB hard drive (not a memory stick, a hard drive) comcastuser Linux - Hardware 4 01-13-2010 06:59 PM
[SOLVED] Hardware crash,Repaired,New Install New Hard drive,how to access original Hard drive flatstan Linux - Hardware 7 07-21-2009 06:51 PM
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration