linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Is there a good reason why I can't "mdadm -Gfn1 /dev/md1" ?
@ 2005-06-09  5:54 Piete Brooks
  2005-06-09  6:07 ` Peter T. Breuer
  2005-06-09 11:12 ` Neil Brown
  0 siblings, 2 replies; 8+ messages in thread
From: Piete Brooks @ 2005-06-09  5:54 UTC (permalink / raw)
  To: linux-raid; +Cc: Piete.Brooks

I really love having my partitions as RAID1 devices as it allows the actual 
partition major and minor numbers to change, and allows me to "move" 
partitions by adding and removing them from the array.

As such I do this even when there is only one partition. To move it, I can 
make it a two way mirror, add the new partition, then remove the old. However, 
I can't then shrink it back to being a one way mirror. Is there a good reason 
for this, or is it just not something that was considered sane?
[ "really" just runs a command as root ]

bedat-32:~: really mdadm -Gn1 /dev/md1
mdadm: '1' is an unusual number of drives for an array, so it is probably
     a mistake.  If you really mean it you will need to specify --force before
     setting the number of drives.
bedat-32:~: really mdadm -G --force -n1 /dev/md1
mdadm: option f not valid in grow mode
bedat-32:~: really mdadm --force -Gn1 /dev/md1
mdadm: -G would set mode to grow, but it is already manage.
bedat-32:~:  mdadm -V
mdadm - v1.6.0 - 4 June 2004
bedat-32:~: rpm -q mdadm       
mdadm-1.6.0-2
bedat-32:~: 

Any ideas?


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

end of thread, other threads:[~2005-06-14  0:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-09  5:54 Is there a good reason why I can't "mdadm -Gfn1 /dev/md1" ? Piete Brooks
2005-06-09  6:07 ` Peter T. Breuer
2005-06-09 11:12 ` Neil Brown
2005-06-09 11:20   ` Luca Berra
2005-06-09 13:18     ` Neil Brown
2005-06-12 17:22       ` Stacked devices (Was: Is there a good reason why I can't "mdadm -Gfn1 /dev/md1" ?) Luca Berra
2005-06-14  0:59         ` Neil Brown
2005-06-09 11:40   ` Is there a good reason why I can't "mdadm -Gfn1 /dev/md1" ? Piete Brooks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).