Need advice for fixing a btrfs volume

2019-08-29 Thread UGlee
Dear: We are using btrfs in an embedded arm/linux device. The bootloader (u-boot) has only limited support for btrfs. Occasionally the device lost power supply unexpectedly, leaving an inconsistent file system on eMMC. If I dump the partition image from eMMC and mount it on linux desktop, the fil

mix ssd and hdd in single volume

2017-03-31 Thread UGlee
We are working on a small NAS server for home user. The product is equipped with a small fast SSD (around 60-120GB) and a large HDD (2T to 4T). We have two choices: 1. using bcache to accelerate io operation 2. combining SSD and HDD into a single btrfs volume. Bcache is certainly designed for ou

Re: how btrfs uses devid?

2016-01-02 Thread UGlee
Thank you very much, sir. Could you confirm that devid and UUID_SUB will never be changed at any circumstances for a given device, unless it is reformatted by mkfs.btrfs? 2016-01-01 20:23 GMT+08:00 Hugo Mills : > On Fri, Jan 01, 2016 at 08:16:28PM +0800, UGlee wrote: >> Dear all: &

how btrfs uses devid?

2016-01-01 Thread UGlee
Dear all: If a btrfs device is missing, the command tool tells user the devid of the missing devices. I understand that each device (disk) in a btrfs volume has been assigned a uuid (UUID_SUB field in udevadm info output). If the device is missing, it's hard to tell user to input such uuid string