All of lore.kernel.org
 help / color / mirror / Atom feed
* replacing drives
@ 2013-04-26 14:27 Roberto Nunnari
  2013-04-26 15:36 ` Tregaron Bayly
                   ` (3 more replies)
  0 siblings, 4 replies; 38+ messages in thread
From: Roberto Nunnari @ 2013-04-26 14:27 UTC (permalink / raw)
  To: linux-raid

Hi all.

I'd like to replace two hd in raid1 with larger ones.

I could just add the new drives in raid1 and mount it on /opt after a 
dump/restore, but I'd prefer to just have to drives instead of four.. 
less noise and less power consumption and noise.

The question is: what whould be the best way to go?
Tricks and tips? Drawbacks? Common errors?

Any hint/advice welcome.
Thank you. :-)


present HD: two WD caviar green 500GB
new HD: two WD caviar green 2TB


root@host1:~# uname -rms
Linux 2.6.32-46-server x86_64


root@host1:~# mdadm --version
mdadm - v2.6.7.1 - 15th October 2008


root@host1:~# cat /proc/mdstat
Personalities : [linear] [raid1] [multipath] [raid0] [raid6] [raid5] 
[raid4] [raid10]
md1 : active raid1 sda2[0] sdb2[1]
       7812032 blocks [2/2] [UU]

md2 : active raid1 sda3[0] sdb3[1]
       431744960 blocks [2/2] [UU]

md0 : active raid1 sda1[0] sdb1[1]
       48827328 blocks [2/2] [UU]

unused devices: <none>


root@host1:~# parted /dev/sda print
Model: ATA WDC WD5000ABPS-0 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type     File system     Flags
  1      1049kB  50.0GB  50.0GB  primary  ext4            boot, raid
  2      50.0GB  58.0GB  8000MB  primary  linux-swap(v1)  raid
  3      58.0GB  500GB   442GB   primary  ext4            raid

root@host1:~# parted /dev/sdb print
Model: ATA WDC WD5000ABPS-0 (scsi)
Disk /dev/sdb: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type     File system     Flags
  1      1049kB  50.0GB  50.0GB  primary  ext4            boot, raid
  2      50.0GB  58.0GB  8000MB  primary  linux-swap(v1)  raid
  3      58.0GB  500GB   442GB   primary  ext4            raid


root@host1:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/md0              48060232   6460476  39158392  15% /
none                   3052888       272   3052616   1% /dev
none                   3057876         0   3057876   0% /dev/shm
none                   3057876        88   3057788   1% /var/run
none                   3057876         0   3057876   0% /var/lock
none                   3057876         0   3057876   0% /lib/init/rw
/dev/md2             424970552 399524484   3858820 100% /opt


Thank you and best regards.
Robi

^ permalink raw reply	[flat|nested] 38+ messages in thread

end of thread, other threads:[~2013-05-10 21:35 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-26 14:27 replacing drives Roberto Nunnari
2013-04-26 15:36 ` Tregaron Bayly
2013-04-26 15:42 ` Keith Keller
2013-04-26 15:53 ` Robin Hill
2013-04-30 13:17   ` Roberto Nunnari
2013-04-30 13:20     ` Mikael Abrahamsson
2013-04-30 14:11       ` Roberto Nunnari
2013-04-30 14:22         ` Robin Hill
2013-04-30 14:40         ` Mikael Abrahamsson
2013-04-30 14:27       ` Roberto Nunnari
2013-04-30 14:39       ` Roberto Nunnari
2013-04-30 14:42         ` Mikael Abrahamsson
2013-04-30 15:10           ` Roberto Nunnari
2013-04-30 15:11         ` Phil Turmel
2013-04-30 15:39           ` Roberto Spadim
2013-05-01  1:55             ` Brad Campbell
2013-05-01 15:06               ` Roberto Nunnari
2013-05-01 18:14               ` Roberto Spadim
2013-05-02 17:49                 ` Roy Sigurd Karlsbakk
2013-05-02 17:43       ` Roy Sigurd Karlsbakk
2013-04-30 13:45     ` Robin Hill
2013-04-30 14:05       ` Roberto Nunnari
2013-04-30 14:28         ` Roberto Nunnari
2013-04-30 15:19   ` Roberto Nunnari
2013-05-02 13:56   ` Roberto Nunnari
2013-05-02 14:54     ` Robin Hill
2013-05-02 15:00       ` Roberto Nunnari
2013-05-03 16:28   ` Roberto Nunnari
2013-05-06 11:30     ` Roberto Nunnari
2013-05-07  7:53     ` Robin Hill
2013-05-07 10:22       ` Roberto Nunnari
2013-05-08 14:19       ` Roberto Nunnari
2013-05-08 15:10         ` Robin Hill
2013-05-08 16:05           ` Roberto Nunnari
2013-05-08 17:01             ` Robin Hill
2013-05-08 17:20               ` Roberto Nunnari
2013-05-10 21:35   ` Roberto Nunnari
2013-04-26 22:20 ` Roberto Nunnari

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.