LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-01-2019, 01:24 AM   #1
Usalabs
Member
 
Registered: Jan 2004
Distribution: OpenSUSE 42.1 Server
Posts: 158

Rep: Reputation: 15
How do I hot swap an SAS drive on a server running Ubuntu server?


First I'll give some details about my server:-

Dell PowerEdge T710
2x 6 core Intel Xeon CPU's
192GB RAM
8x 2TB SAS drives configured as raid 5
OS = Headless Ubuntu Server 18.04 LTS

Here's the question, I have an orange light on one of my SAS drives, and I need to replace it, I've looked everywhere on the net and all that shows is how to change out the drive(s) using windows software to take a drive offline.

I can't just simply press a button to open the latch and just pull the drive out, there has to be a way in Ubuntu to prepare the system ready to take the drive offline, and when a new drive inserted, to auto scan and rebuild the raid for that drive, without powering down the server.

Last edited by Usalabs; 08-01-2019 at 01:26 AM.
 
Old 08-01-2019, 11:53 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,795

Rep: Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002
Quote:
Originally Posted by Usalabs View Post
First I'll give some details about my server:-

Dell PowerEdge T710
2x 6 core Intel Xeon CPU's
192GB RAM
8x 2TB SAS drives configured as raid 5
OS = Headless Ubuntu Server 18.04 LTS

Here's the question, I have an orange light on one of my SAS drives, and I need to replace it, I've looked everywhere on the net and all that shows is how to change out the drive(s) using windows software to take a drive offline.

I can't just simply press a button to open the latch and just pull the drive out, there has to be a way in Ubuntu to prepare the system ready to take the drive offline, and when a new drive inserted, to auto scan and rebuild the raid for that drive, without powering down the server.
Well, it may just be that easy, but it depends on your server. Is the RAID5 array hardware or software? Does it have a parity drive? And does the server itself support hot-plugging of drives? If it is a hardware RAID with a parity drive and hot-pluggable, then all you do need to do is pop it out and shove another one in. But this depends on the hardware and how you have things configured...you may very well have to power down the box to remove the drive no matter what. Reference the server manual.

Good advice here for a software RAID: https://askubuntu.com/questions/9922...-raid-5-system

But **TAKE BACKUPS FIRST**, no matter what you do! And personally, I'd plan on doing this after hours, just in case things go pear shaped, and you have to totally rebuild the array, and reload from backups. Easier to do alone at the office alone, than with users breathing down your neck, because they can't work.
 
Old 08-01-2019, 12:56 PM   #3
Usalabs
Member
 
Registered: Jan 2004
Distribution: OpenSUSE 42.1 Server
Posts: 158

Original Poster
Rep: Reputation: 15
The RAID5 array is configured from firmware during a POST, pressing CTRL-C to access the SAS and RAID configuration screens, and yes there is a parity drive.

Yep, I intend to do the backups and drive change an hour after everyone has gone home.

After looking through the PERC 6, RAID controller card manual, it seems even though the drives are hot swappable, they can't just be pulled, the server has to be rebooted, then during POST pressing CTRL-C to enter the PERC configuration screen, then select the drive that has the error, and issue the 'offline' command, then wait while the system prepares for the drive to go offline, then selecting that drive again, clicking on 'Replace -> Start' powers off the drive ready for removal, then while the PERC screen is still up, replace the drive, and select 'Replace -> Stop', this will spin up the drive and when the status shows, 'ready', set drive to online, then exit the PERC screen which results in a warning to soft reboot using CTRL-ALT-DEL.

Here's to crossing my fingers, hoping it all goes smooth, and I don't need to rebuild the array.

My server used to have Windoze server 20012 with all the Dell software, but as I hate and despise windoze I installed headless Ubuntu server, with admin access via internal LAN only SSH via PuTTY, and all I need now is iDRACS6 Enterprise module and I can completely control all aspects of the server via a KVM.

Last edited by Usalabs; 08-01-2019 at 01:02 PM.
 
Old 08-01-2019, 01:15 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,795

Rep: Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002
Quote:
Originally Posted by Usalabs View Post
The RAID5 array is configured from firmware during a POST, pressing CTRL-C to access the SAS and RAID configuration screens, and yes there is a parity drive.

Yep, I intend to do the backups and drive change an hour after everyone has gone home.

After looking through the PERC 6, RAID controller card manual, it seems even though the drives are hot swappable, they can't just be pulled, the server has to be rebooted, then during POST pressing CTRL-C to enter the PERC configuration screen, then select the drive that has the error, and issue the 'offline' command, then wait while the system prepares for the drive to go offline, then selecting that drive again, clicking on 'Replace -> Start' powers off the drive ready for removal, then while the PERC screen is still up, replace the drive, and select 'Replace -> Stop', this will spin up the drive and when the status shows, 'ready', set drive to online, then exit the PERC screen which results in a warning to soft reboot using CTRL-ALT-DEL.

Here's to crossing my fingers, hoping it all goes smooth, and I don't need to rebuild the array.

My server used to have Windoze server 20012 with all the Dell software, but as I hate and despise windoze I installed headless Ubuntu server, with admin access via internal LAN only SSH via PuTTY, and all I need now is iDRACS6 Enterprise module and I can completely control all aspects of the server via a KVM.
Gotta love hardware like that. But at least a simple reboot and 30 minutes downtime may be all you have. Good luck.
 
  


Reply



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
Ubuntu Server 12.04 - SAS system drive, and won't boot with more than two SATA drives munaye Ubuntu 3 11-04-2013 04:22 PM
Hot? You want...hot??? I dont... ButterflyMelissa Linux - Hardware 11 08-08-2013 05:30 AM
How to mount hot-swap drive in Fedora Core 6 ? dlugasx Linux - Server 1 08-12-2009 09:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:40 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
Open Source Consulting | Domain Registration