Re: Rebuilding RAID 1 Array in Linux with a new hard disk after a disk fault - Howto with screen shots

2010-06-20 Thread Tom H
On Fri, Jun 18, 2010 at 9:11 AM, Huang, Tao wrote: > On Fri, Jun 18, 2010 at 6:02 PM, Tom H wrote: > [snip] >> mdadm assembles an array according to data in the superblock so it >> shouldn't matter whether the kernel recognizes sda and sdb as sdb and >> sda respectively should you plug them in di

Re: Rebuilding RAID 1 Array in Linux with a new hard disk after a disk fault - Howto with screen shots

2010-06-18 Thread Rob Owens
On Thu, Jun 17, 2010 at 09:08:41PM +0800, Huang, Tao wrote: > On Thu, Jun 17, 2010 at 4:17 PM, Michal wrote: > > This is a better way then disconnecting the drive and checking which > > drive was disconnected like I did, but I would still put a very easy to > > read label on the drive to say /dev/

Re: Rebuilding RAID 1 Array in Linux with a new hard disk after a disk fault - Howto with screen shots

2010-06-18 Thread Huang, Tao
On Fri, Jun 18, 2010 at 6:02 PM, Tom H wrote: [snip] > mdadm assembles an array according to data in the superblock so it > shouldn't matter whether the kernel recognizes sda and sdb as sdb and > sda respectively should you plug them in differently. so they's recognized with data in the superbloc

Re: Rebuilding RAID 1 Array in Linux with a new hard disk after a disk fault - Howto with screen shots

2010-06-18 Thread Michal
>> But how can this be correct when each raid partion is linked to the >> HDD/Partions >> >> >> # cat /proc/mdstat >> Personalities : [raid1] [raid6] [raid5] [raid4] >> md3 : active raid1 sda2[0] sdb2[1] >> 716796096 blocks [2/2] [UU] >> >> md2 : active raid1 sda5[0] sdb5[1] >> 51199040 b

Re: Rebuilding RAID 1 Array in Linux with a new hard disk after a disk fault - Howto with screen shots

2010-06-18 Thread Tom H
On Fri, Jun 18, 2010 at 4:27 AM, Michal wrote: > On 17/06/2010 14:08, Huang, Tao wrote: >> On Thu, Jun 17, 2010 at 4:17 PM, Michal wrote: >>> This is a better way then disconnecting the drive and checking which >>> drive was disconnected like I did, but I would still put a very easy to >>> read l

Re: Rebuilding RAID 1 Array in Linux with a new hard disk after a disk fault - Howto with screen shots

2010-06-18 Thread Michal
On 17/06/2010 14:08, Huang, Tao wrote: > On Thu, Jun 17, 2010 at 4:17 PM, Michal wrote: >> This is a better way then disconnecting the drive and checking which >> drive was disconnected like I did, but I would still put a very easy to >> read label on the drive to say /dev/sdX. It would be far eas

Re: Rebuilding RAID 1 Array in Linux with a new hard disk after a disk fault - Howto with screen shots

2010-06-17 Thread Huang, Tao
On Thu, Jun 17, 2010 at 4:17 PM, Michal wrote: > This is a better way then disconnecting the drive and checking which > drive was disconnected like I did, but I would still put a very easy to > read label on the drive to say /dev/sdX. It would be far easier then > checking a long serial number, es

Re: Rebuilding RAID 1 Array in Linux with a new hard disk after a disk fault - Howto with screen shots

2010-06-17 Thread martin f krafft
also sprach Michal [2010.06.17.1017 +0200]: > This is a better way then disconnecting the drive and checking which > drive was disconnected like I did, but I would still put a very easy to > read label on the drive to say /dev/sdX. It would be far easier then > checking a long serial number, espec

Re: Rebuilding RAID 1 Array in Linux with a new hard disk after a disk fault - Howto with screen shots

2010-06-17 Thread Steven
On Thu, June 17, 2010 10:17, Michal wrote: > On 16/06/2010 19:00, Håkon Alstadheim wrote: >> Just do "ls -l /dev/disk/by-id/". The disks will have factory labels >> with serial-numbers to match. >> > > This is a better way then disconnecting the drive and checking which > drive was disconnected li

Re: Rebuilding RAID 1 Array in Linux with a new hard disk after a disk fault - Howto with screen shots

2010-06-17 Thread Michal
On 16/06/2010 19:00, Håkon Alstadheim wrote: > Steven skrev: >> How to identify which drive has failed in an array? >> >> I have 6 disks, 4 are used in raid (mdadm), the other 2 contain /boot, / >> and /home. >> /dev/sdc >> /dev/sdd >> /dev/sde >> /dev/sdf >> Each have 1 partition. >> /dev/md0 (rai

Re: Rebuilding RAID 1 Array in Linux with a new hard disk after a disk fault - Howto with screen shots

2010-06-17 Thread Steven
On Wed, June 16, 2010 17:30, Michal wrote: > > Sorry I really didnt explain my self propely; > > Yes I mean /dev/sde and by lable I mean get a lable machine (or > somehting similar) to put a physical lable on the drive, like a sticker > with text saying /dev/sde > > I did this in one machine and s

Re: Rebuilding RAID 1 Array in Linux with a new hard disk after a disk fault - Howto with screen shots

2010-06-17 Thread Steven
On Wed, June 16, 2010 17:30, Michal wrote: > > Sorry I really didnt explain my self propely; > > Yes I mean /dev/sde and by lable I mean get a lable machine (or > somehting similar) to put a physical lable on the drive, like a sticker > with text saying /dev/sde > > I did this in one machine and s

Re: Rebuilding RAID 1 Array in Linux with a new hard disk after a disk fault - Howto with screen shots

2010-06-16 Thread Håkon Alstadheim
Steven skrev: How to identify which drive has failed in an array? I have 6 disks, 4 are used in raid (mdadm), the other 2 contain /boot, / and /home. /dev/sdc /dev/sdd /dev/sde /dev/sdf Each have 1 partition. /dev/md0 (raid 1) consists of /dev/sdc1 and /dev/sdd1 /dev/md1 (raid 1) consists of /de

Re: Rebuilding RAID 1 Array in Linux with a new hard disk after a disk fault - Howto with screen shots

2010-06-16 Thread Bob Weber
Use smartctl from the smartmontools package. If mdadm says that /dev/sdc (or cat /proc/mdstat) is at fault then use "smartctl -a /dev/sdc" and it will print out all kinds of info on the drive including its serial number which should be on a sticker on the case of the drive. The programs incl

Re: Rebuilding RAID 1 Array in Linux with a new hard disk after a disk fault - Howto with screen shots

2010-06-16 Thread Michal
On 16/06/2010 15:50, Steven wrote: > > On Wed, June 16, 2010 15:47, Michal wrote: >> >> One way is to label the disks themselves so you simply do; >> >> cat /proc/mdstat which might say /dev/sd3 is down. Open the case, look >> for the disk labled /dev/sde and replace it. If you have LED's like >>

Re: Rebuilding RAID 1 Array in Linux with a new hard disk after a disk fault - Howto with screen shots

2010-06-16 Thread Steven
On Wed, June 16, 2010 15:47, Michal wrote: > > One way is to label the disks themselves so you simply do; > > cat /proc/mdstat which might say /dev/sd3 is down. Open the case, look > for the disk labled /dev/sde and replace it. If you have LED's like > servers have (probably not) they can be a fid

Re: Rebuilding RAID 1 Array in Linux with a new hard disk after a disk fault - Howto with screen shots

2010-06-16 Thread Steven
On Wed, June 16, 2010 13:13, Siju George wrote: > Hope some one finds this helpful :-) > > --Siju > > Rebuilding RAID 1 Array in Linux with a new hard disk after a disk fault. > = > Thanks, this might prove useful. However I

Re: Rebuilding RAID 1 Array in Linux with a new hard disk after a disk fault - Howto with screen shots

2010-06-16 Thread Michal
> > Thanks, this might prove useful. > However I do have a question... which might be just as important. > > How to identify which drive has failed in an array? > > I have 6 disks, 4 are used in raid (mdadm), the other 2 contain /boot, / > and /home. > /dev/sdc > /dev/sdd > /dev/sde > /dev/sdf

Re: Rebuilding RAID 1 Array in Linux with a new hard disk after a disk fault - Howto with screen shots

2010-06-16 Thread Steven
On Wed, June 16, 2010 13:13, Siju George wrote: > Hope some one finds this helpful :-) > > --Siju > > Rebuilding RAID 1 Array in Linux with a new hard disk after a disk fault. > = > Thanks, this might prove useful. However I

Re: Rebuilding RAID 1 Array in Linux with a new hard disk after a disk fault - Howto with screen shots

2010-06-16 Thread martin f krafft
also sprach Siju George [2010.06.16.1402 +0200]: > > "Manually" is for Mac users. ;) > > these days every one has left windows and are picking on Mac ? :-) "Reinstalling" is for Windows users. -- .''`. martin f. krafft Related projects: : :' : proud Debian developer ht

Re: Rebuilding RAID 1 Array in Linux with a new hard disk after a disk fault - Howto with screen shots

2010-06-16 Thread Siju George
On Wed, Jun 16, 2010 at 5:06 PM, martin f krafft wrote: > also sprach Siju George [2010.06.16.1322 +0200]: >> > sfdisk -d /dev/sda | sfdisk /dev/sdb >> >> oh thanks :-) >> >> I did it manually using fdisk > > "Manually" is for Mac users. ;) > these days every one has left windows and are picking

Re: Rebuilding RAID 1 Array in Linux with a new hard disk after a disk fault - Howto with screen shots

2010-06-16 Thread martin f krafft
also sprach Siju George [2010.06.16.1322 +0200]: > > sfdisk -d /dev/sda | sfdisk /dev/sdb > > oh thanks :-) > > I did it manually using fdisk "Manually" is for Mac users. ;) -- .''`. martin f. krafft Related projects: : :' : proud Debian developer http://debiansystem.

Re: Rebuilding RAID 1 Array in Linux with a new hard disk after a disk fault - Howto with screen shots

2010-06-16 Thread Siju George
On Wed, Jun 16, 2010 at 4:48 PM, martin f krafft wrote: > also sprach Siju George [2010.06.16.1313 +0200]: >> 2) Create identical partitions on the new disk using 'fdisk'. > > sfdisk -d /dev/sda | sfdisk /dev/sdb > oh thanks :-) I did it manually using fdisk --Siju -- To UNSUBSCRIBE, email

Re: Rebuilding RAID 1 Array in Linux with a new hard disk after a disk fault - Howto with screen shots

2010-06-16 Thread martin f krafft
also sprach Siju George [2010.06.16.1313 +0200]: > 2) Create identical partitions on the new disk using 'fdisk'. sfdisk -d /dev/sda | sfdisk /dev/sdb -- .''`. martin f. krafft Related projects: : :' : proud Debian developer http://debiansystem.info `. `'` http://peopl

Rebuilding RAID 1 Array in Linux with a new hard disk after a disk fault - Howto with screen shots

2010-06-16 Thread Siju George
Hope some one finds this helpful :-) --Siju Rebuilding RAID 1 Array in Linux with a new hard disk after a disk fault. = ** Actual screen shot from terminal of steps taken during rebuild on 10-June-2010 on Debian Lenny ( Linu