LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-19-2019, 12:24 PM   #1
kaza
Member
 
Registered: Apr 2010
Distribution: FC17
Posts: 343

Rep: Reputation: 2
Adding 2 SAS HDD (RAID -0) to existing 4 HDD (2 RAID-0), then swapping 2 pairs


Hello!

I currently have 4 SAS disks arranged in two pairs (two RAID-0 arrays):

Code:
<localhost.localdomain>.../user>lsscsi
[1:0:0:0]    cd/dvd  ASUS     DRW-24D5MT       1.00  /dev/sr0 
[6:0:0:0]    disk    ICP      KA_RAID_0        V1.0  /dev/sda 
[6:0:1:0]    disk    ICP      KA_RAID_1        V1.0  /dev/sdb 
[6:1:0:0]    disk    FUJITSU  MAU3147RC        0104  -        
[6:1:1:0]    disk    FUJITSU  MBA3147RC        HPF1  -        
[6:1:2:0]    disk    TOSHIBA  MK2001TRKB       0105  -                                                                    
[6:1:3:0]    disk    TOSHIBA  MK2001TRKB       0105  -                                                                    
[9:0:3:0]    tape    HP       Ultrium 1-SCSI   N2CG  /dev/st0
The two FUJITSU MAU3147RC disks comprize the KA_RAID_0 (on which
the OS is installed and also my home directory) and the two TOSHIBA MK2001TRKB disks
comprize the KA_RAID_1 array with large data of images/videos.
Lately the TOSHIBA MK2001TRKB disks started developing bad sectors so I bought
a new pair of 2 TB SAS disks.

All disks are connected to the Adaptec ICP5165BR RAID controller.
The first two disks (KA_RAID_0) are connected to the port 0 of the controller,
channels 0 and 1 (via 1-to-4 cable), the second two disks (KA_RAID_1)
are connected to the channels 2 and 3 of the same port 0.

I'll soon get a new pair of 2 TB SAS disks and at first will connect
then to port 1, channels 0,1 of the controller.
If everything works OK I expect the new RAID-0 array to be /dev/sdc,
to format it and to copy on it the contents of the /dev/sdb.

Now to the question part: what'll happen if after the copying I'll swap the connections of
the disks so that the two new disks will be connected to port 0, channels 2,3
of the controller (where old KA_RAID_1 array disks were connected)
and the old disks which were connected to port 0, channels 2,3 will now be connected
to port 1, channels 0,1?

Will this ruin both arrays or new disk will become /dev/sdb, the old will become /dev/sdc
and the data remain intact? In other words, does the memory of the controller about
how the arrays are organized is "per port/channel" and it forgets everything once the
connection is changed or it's "per disk" and the controller scans the disk parameters
at each boot and reconstructs the arrays from that info?

If the controller won't be able to continue recognizing the arrays after the swap
and I'll revert the connections to be like it was before the swap, will the arrays
be recognized and working "as in the past" or just any change in disks connection
will wipe out anything the controller remembers, thus wiping the data? I have a backup tape
and did two full backups and can make a third backup but I would like to have some
advance knowledge of what to expect of such an experiment?

TIA,
kaza.
 
Old 01-22-2019, 07:12 AM   #2
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Theoretically, what you are trying to do should be no problem. Not sure about Adaptec, but I have done this type of thing with MegaRAID RAID controller, and did not have any problems.
You configured RAID for your drives in the Adaptec controller interface or some different way?
 
Old 01-23-2019, 03:23 PM   #3
kaza
Member
 
Registered: Apr 2010
Distribution: FC17
Posts: 343

Original Poster
Rep: Reputation: 2
Yes, I used the controller BIOS utility (CTRL+A during boot) to select the drives for the arrays
and to initialize the arrays.
 
  


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
RAID 1: partition then RAID or RAID then partition. arfon Linux - Software 3 10-17-2015 04:16 AM
Raid HDD details (SAS or SATA) sysmanz Linux - Server 1 07-25-2011 09:03 AM
Installing to external HDD then swapping with internal? gohmifune Linux - Hardware 1 11-20-2008 05:05 PM
howto add additional sas harddisk on existing RAID5 system taboo Linux - Newbie 2 10-24-2007 04:44 PM
Adding a IDE HDD to an existing system and make a Soft-RAID Sören Schneider Linux - Hardware 1 04-08-2006 03:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:41 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