linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* migrating drives (device delete)
@ 2010-11-10 11:04 Oliver Večernik
  2010-11-10 11:31 ` Helmut Hullen
       [not found] ` <20101110123403.GA11460@vlad.carfax.org.uk>
  0 siblings, 2 replies; 4+ messages in thread
From: Oliver Večernik @ 2010-11-10 11:04 UTC (permalink / raw)
  To: linux-btrfs

Hi,

running on Ubuntu server 10.10 (2.6.35-22-server) I've got a 160GB disk
for / (/boot is on another partition with ext2).  I added another 750GB
drive with the following command:

# btrfs device add /dev/sdb2 /
# btrfs device balance /

As far as I can see it is a RAID 0 and now full:

# sudo btrfs filesystem show 
Label: none  uuid: cd4fd4c1-0632-4cbe-bf3b-ba7a9acda1e0
        Total devices 2 FS bytes used 291.62GB
        devid    2 size 696.77GB used 146.63GB path /dev/sdb2
        devid    1 size 147.19GB used 146.64GB path /dev/sda2

Now I want to remove the smaller drive:

# mount -t btrfs -o remount,degraded /dev/sda2 /
# mount | grep /dev/sda2
/dev/sda2 on / type btrfs (rw,degraded)
# btrfs device delete /dev/sda2 /
ERROR: error removing the device '/dev/sda2'

Do I have to move the data first to /dev/sdb2 (how?) and then
delete /dev/sda2? Is there a better way to handle a situation like this?

Thanks!

-- 
Regards,
Oliver




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

end of thread, other threads:[~2010-11-10 14:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-10 11:04 migrating drives (device delete) Oliver Večernik
2010-11-10 11:31 ` Helmut Hullen
2010-11-10 12:15   ` Oliver Večernik
     [not found] ` <20101110123403.GA11460@vlad.carfax.org.uk>
2010-11-10 14:40   ` Oliver Večernik

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).