l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2006 Dec 31 17:28

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] RAID drive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] RAID drive

Wade Pinkston wrote:
Hash: SHA1

Santa was good to me this year and got me a matching pair of 300G SATA
drives for me server.  I currently have two 100G drives set to RAID 1
(mirror) in a Hot Swap RAID cage.  This raid cage is connected and
controlled by a 3ware 8006 raid controller.  This card will only control
two drives so I want to replace my current drives with the new ones.
I've seen 4 port SATA controllers for $50 ish.

My question is what is the best way to go about this?  Can I simply
dismantle the raid, remove drive 1 and replace with the new larger drive.
Reassemble the raid and let the controller do the rest, then repeat for
drive 0?
I propose something like:
* Backup the most critical data (I.e. anything you typed + anything else
* mdadm --fail one drive of the old array (putting it into degraded mode,
  both are bootable... right?)
* shutdown
* Pull failed drive
* insert new drive
* boot
* partition new drive
* reboot
* create new array with new partition and a faulty partition
* Migrate (dd if new partition = old partition, or mkfs + cp --archive or tar
  cf - | tar xf - the old data to the new)
* Pull old/smaller driver
* insert spiffy 2nd new drive
* partition (sfdisk is good for copying partition tables)
* mdadm add the new disk to the current degraded array
* watch it rebuild, watch /prod/mdstat, dmesg, and /var/log/messages

- --
Wade Pinkston

Ipsa scientia potestas est

32 bit graphical interface for a
16 bit patch to an
8 bit operating system internally coded for a
4 bit processor written by a
2 bit company that can't stand
1 bit of competition

GnuPG Key ID 0x216FDD35
gpg --keyserver pgp.mit.edu --recv-keys 216FDD35
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

vox-tech mailing list
vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
O'Reilly and Associates
For numerous book donations.