Re: btrfs raid assurance

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





Hugo Mills wrote:

    You can see about the disk usage in different scenarios with the
online tool at:

http://carfax.org.uk/btrfs-usage/

    Hugo.

As a side note, have you ever considered making this online tool (that should never go away just for the record) part of btrfs-progs e.g. a proper tool? I use it quite often (at least several timers per. month) and I would love for this to be a visual tool 'btrfs-space-calculator' would be a great name for it I think.

Imagine how nice it would be to run....

btrfs-space-calculator -mraid1 -draid10 /dev/sda1 /dev/sdb1 /dev/sdc2 /dev/sdd2 /dev/sde3 for example and instantly get something similar to my example below (no accuracy intended)

d=data
m=metadata
.=unusable

{  500mb} [|ddddd|] /dev/sda1
{ 3000mb} [|ddddd|mmmmm|mmmmm|mmmmm|mmmmm|mm...|] /dev/sdb1
{ 3000mb} [|ddddd|mmmmm|mmmmm|mmmmm|mmmmm|mmm..|] /dev/sdc2
{ 5000mb} [|ddddd|mmmmm|mmmmm|mmmmm|mmmmm|mmmmm|mmmmm|mmmmm|mmmmm|mmmmm|] /dev/sdb1
--------
{11500mb} Total space

usable for data (raid10): 1000mb / 2000mb
usable for metadata (raid1): 4500mb / 9000mb
unusable: 500mb

Of course this would have to change one (if ever) subvolumes can have different raid levels etc, but I would have loved using something like this instead of jumping around carfax abbey (!) at night.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux