Re: Filesystem Went Read Only During Raid-10 to Raid-6 Data Conversion

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

 



On 7/18/20 12:36 PM, Steven Davies wrote:
On 17/07/2020 06:57, Zygo Blaxell wrote:
On Thu, Jul 16, 2020 at 09:11:17PM -0400, John Petrini wrote:

--snip--

/dev/sdf, ID: 12
    Device size:             9.10TiB
    Device slack:              0.00B
    Data,RAID10:           784.31GiB
    Data,RAID10:             4.01TiB
    Data,RAID10:             3.34TiB
    Data,RAID6:            458.56GiB
    Data,RAID6:            144.07GiB
    Data,RAID6:            293.03GiB
    Metadata,RAID10:         4.47GiB
    Metadata,RAID10:       352.00MiB
    Metadata,RAID10:         6.00GiB
    Metadata,RAID1C3:        5.00GiB
    System,RAID1C3:         32.00MiB
    Unallocated:            85.79GiB

[...]

RFE: improve 'dev usage' to show these details.

As a user I'd look at this output and assume a bug in btrfs-tools because of the repeated conflicting information.

What would be the expected output ?
What about the example below ?

 /dev/sdf, ID: 12
     Device size:             9.10TiB
     Device slack:              0.00B
     Data,RAID10:           784.31GiB
     Data,RAID10:             4.01TiB
     Data,RAID10:             3.34TiB
     Data,RAID6[3]:         458.56GiB
     Data,RAID6[5]:         144.07GiB
     Data,RAID6[7]:         293.03GiB
     Metadata,RAID10:         4.47GiB
     Metadata,RAID10:       352.00MiB
     Metadata,RAID10:         6.00GiB
     Metadata,RAID1C3:        5.00GiB
     System,RAID1C3:         32.00MiB
     Unallocated:            85.79GiB


Another possibility (but the output will change drastically, I am thinking to another command)

Filesystem '/'
	Data,RAID1:		123.45GiB
		/dev/sda	 12.34GiB
		/dev/sdb	 12.34GiB
	Data,RAID1:		123.45GiB
		/dev/sde	 12.34GiB
		/dev/sdf	 12.34GiB
	Data,RAID6:		123.45GiB
		/dev/sda	 12.34GiB
		/dev/sdb	 12.34GiB
		/dev/sdc	 12.34GiB
	Data,RAID6:		123.45GiB
		/dev/sdb	 12.34GiB
		/dev/sdc	 12.34GiB
		/dev/sdd	 12.34GiB
		/dev/sde	 12.34GiB
		/dev/sdf	 12.34GiB


The number are the chunks sizes (invented). Note: for RAID5/RAID6 a chunk will uses near all disks; however for (e.g.) RAID1  there is the possibility that CHUNKS use different disks pairs (see the two RAID1 instances).


BR
G.Baroncelli


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



[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