All of lore.kernel.org
 help / color / mirror / Atom feed
* btrfs using inside xen domU and online resizing
@ 2011-01-06  1:10 Vasiliy G Tolstov
  2011-01-06 17:26 ` Maria
  0 siblings, 1 reply; 2+ messages in thread
From: Vasiliy G Tolstov @ 2011-01-06  1:10 UTC (permalink / raw)
  To: linux-btrfs

Hello. I have two questions:

1) When btrfs can be used in systems, that can be rebooted unexpectedly?
btrfs fsck is ready to use? does after power failure or hard reboot file
system can be damaged and can't be corrected?

2) When i use xen domU virtual machine a can dynamically change capacity
of block device (/dev/xvda for example) it can be grows and shrinks.  Is
that possible to use one btrfs file system on all device without
partition table ? In current implementation (i'm use ext3). After block
device change it size, i need to recreate partition table and do
resize2fs.  But in case of root fs i need reboot to update partition
table, because file system is in use. If linux can boot from plain btrfs
device without partition table , as i think - i can resize block device
and do mount -o remount,maxsize /dev/xvda and btrfs resized
automatic... 
Is that possible?

Thank You for all suggestions and answers.


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

* Re: btrfs using inside xen domU and online resizing
  2011-01-06  1:10 btrfs using inside xen domU and online resizing Vasiliy G Tolstov
@ 2011-01-06 17:26 ` Maria
  0 siblings, 0 replies; 2+ messages in thread
From: Maria @ 2011-01-06 17:26 UTC (permalink / raw)
  To: v.tolstov; +Cc: linux-btrfs

tor 2011-01-06 klockan 04:10 +0300 skrev Vasiliy G Tolstov:
> Hello. I have two questions:
> 
> 1) When btrfs can be used in systems, that can be rebooted unexpectedly?
> btrfs fsck is ready to use? does after power failure or hard reboot file
> system can be damaged and can't be corrected?
If you turn of the write-cache of the underlying disks, btrfs should
survive it. I have btrfs on top of dm-crypt and no write-cache, and it
has survived all crashes so far. But you never know, so I backupp
regularly. Fsck is not ready yet.


> 2) When i use xen domU virtual machine a can dynamically change capacity
> of block device (/dev/xvda for example) it can be grows and shrinks.  Is
> that possible to use one btrfs file system on all device without
> partition table ? In current implementation (i'm use ext3). After block
> device change it size, i need to recreate partition table and do
> resize2fs.  But in case of root fs i need reboot to update partition
> table, because file system is in use. If linux can boot from plain btrfs
> device without partition table , as i think - i can resize block device
> and do mount -o remount,maxsize /dev/xvda and btrfs resized
> automatic... 
> Is that possible?
Why not use LVM?
If you do not have a partition table (or only one partition) you can
only have one file system on the disk, so why not use the entire disk in
the first place?

// Maria

> Thank You for all suggestions and answers.



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

end of thread, other threads:[~2011-01-06 17:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-06  1:10 btrfs using inside xen domU and online resizing Vasiliy G Tolstov
2011-01-06 17:26 ` Maria

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.