All of lore.kernel.org
 help / color / mirror / Atom feed
* Btrfs resize problem after device add/delete
@ 2013-11-08 22:09 Lester B
  2013-11-09 10:55 ` Goffredo Baroncelli
  0 siblings, 1 reply; 2+ messages in thread
From: Lester B @ 2013-11-08 22:09 UTC (permalink / raw)
  To: linux-btrfs

I create a new btrfs filesystem and then add a new device and delete
the original device. When I run 'btrfs filesystem show', the total
device is two and there is an error that some devices are missing.


I also tried to resize the filesystem but didn't work. Resizing
without device id have an error that there is no such device. When the
device id is explicitly pass, an error 'invalid argument' is
displayed.

I tried to unmount and then remount and the first problem disappeared
while the second one didn't.

3.11.6-1-ARCH #1 SMP PREEMPT Fri Oct 18 23:22:36 CEST 2013 x86_64 GNU/Linux

Btrfs v0.20-rc1-358-g194aa4a-dirty

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

* Re: Btrfs resize problem after device add/delete
  2013-11-08 22:09 Btrfs resize problem after device add/delete Lester B
@ 2013-11-09 10:55 ` Goffredo Baroncelli
  0 siblings, 0 replies; 2+ messages in thread
From: Goffredo Baroncelli @ 2013-11-09 10:55 UTC (permalink / raw)
  To: Lester B; +Cc: linux-btrfs

On 2013-11-08 23:09, Lester B wrote:
> I create a new btrfs filesystem and then add a new device and delete
> the original device. When I run 'btrfs filesystem show', the total
> device is two and there is an error that some devices are missing.

See my answer below.

> 
> I also tried to resize the filesystem but didn't work. Resizing
> without device id have an error that there is no such device. When the
> device id is explicitly pass, an error 'invalid argument' is
> displayed.

We need more info:
- what is the output of "btrfs filesystem df <path>"
- which is a raid level involved (RAID1/DUP/...), if any ?
- which command you perform to shrink/enlarge the partition and which
one to resize the filesystem (these are two separate steps) ?


> 
> I tried to unmount and then remount and the first problem disappeared
> while the second one didn't.

Unfortunately "btrfs filesystem show" read the data from the disk, that
time to time is outdated.

> 
> 3.11.6-1-ARCH #1 SMP PREEMPT Fri Oct 18 23:22:36 CEST 2013 x86_64 GNU/Linux
> 
> Btrfs v0.20-rc1-358-g194aa4a-dirty
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


-- 
gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it>
Key fingerprint BBF5 1610 0B64 DAC6 5F7D  17B2 0EDA 9B37 8B82 E0B5

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

end of thread, other threads:[~2013-11-09 10:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-08 22:09 Btrfs resize problem after device add/delete Lester B
2013-11-09 10:55 ` Goffredo Baroncelli

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.