Hi list, I have trouble understanding this, which doesn''t really correspond to the wiki FAQ (so my question is hopefully not a FAQ ;-) : # btrfs fi df / Data: total=74.01GB, used=72.77GB System, DUP: total=8.00MB, used=16.00KB System: total=4.00MB, used=0.00 Metadata, DUP: total=1.75GB, used=657.48MB Metadata: total=8.00MB, used=0.00 Some questions are : What are the "DUP" lines compared to the "non-DUP" ones ? If I can understand "Metadata" and "Data", what is "System" supposed to be ? Is there anyway to know how much space is consumed by any given subvolume or snapshots (for snapshots, "du" cannot tell how much they really consume, of course...) This is so clear in ZFS for example ;-) ...and such a mystery in BTRFS... I also have a question relating to quotas : I understand that per-subvolume quotas are not (yet ?) implemented, but is it possible to use the user quotas system with btrfs, i.e. mounting it with the "quota" option such as ol''ext2/3 did ? TIA, kind regards. -- 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
Hallo, Swâmi, Du meintest am 13.05.11:> I have trouble understanding this, which doesn''t really correspond to > the wiki FAQ (so my question is hopefully not a FAQ ;-) :> # btrfs fi df / > Data: total=74.01GB, used=72.77GB > System, DUP: total=8.00MB, used=16.00KB > System: total=4.00MB, used=0.00 > Metadata, DUP: total=1.75GB, used=657.48MB > Metadata: total=8.00MB, used=0.00> Some questions are :> What are the "DUP" lines compared to the "non-DUP" ones ?That may depend on the "mkfs.btrfs" options - which options have you set? What tells df -t btrfs btrfs filesystem show Viele Gruesse! Helmut -- 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
Hi Helmut, Le vendredi 13 mai 2011 à 21:50 +0200, Helmut Hullen a écrit :> That may depend on the "mkfs.btrfs" options - which options have you > set?Well, actually none, except for -L ;-)> What tells > df -t btrfs > btrfs filesystem showroot@tethys:~# df -t btrfs Sys. de fichiers 1K-blocs Utilisé Dispo. Uti% Monté sur /dev/mapper/VG1-TETHYS 152735744 78383976 71999272 53% / /dev/mapper/VG1-TETHYS 152735744 78383976 71999272 53% /tmp /dev/mapper/VG1-TETHYS 152735744 78383976 71999272 53% /home /dev/mapper/VG1-TETHYS 152735744 78383976 71999272 53% /var /dev/sda2 392192 26772 193660 13% /boot root@tethys:~# btrfs filesystem show failed to read /dev/sr0 Label: ''TETHYS_BOOT'' uuid: b6b9e7ef-5aae-4c49-8b5a-39d6eec1d7d7 Total devices 1 FS bytes used 25.76MB devid 1 size 383.00MB used 240.50MB path /dev/sda2 Label: ''TETHYS'' uuid: 82c61fc2-8f8c-4cce-9d0d-ed446f671062 Total devices 1 FS bytes used 74.11GB devid 1 size 145.66GB used 77.54GB path /dev/dm-1 Btrfs Btrfs v0.19 -- 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
Hallo, Swâmi, Du meintest am 14.05.11:>>> # btrfs fi df / >>> Data: total=74.01GB, used=72.77GB >>> System, DUP: total=8.00MB, used=16.00KB >>> System: total=4.00MB, used=0.00 >>> Metadata, DUP: total=1.75GB, used=657.48MB >>> Metadata: total=8.00MB, used=0.00>> btrfs filesystem show> root@tethys:~# df -t btrfs > Sys. de fichiers 1K-blocs Utilisé Dispo. Uti% Monté > sur /dev/mapper/VG1-TETHYS > 152735744 78383976 71999272 53% / > /dev/mapper/VG1-TETHYS > 152735744 78383976 71999272 53% /tmp > /dev/mapper/VG1-TETHYS > 152735744 78383976 71999272 53% /home > /dev/mapper/VG1-TETHYS > 152735744 78383976 71999272 53% /var > /dev/sda2 392192 26772 193660 13% /boot> root@tethys:~# btrfs filesystem show > failed to read /dev/sr0 > Label: ''TETHYS_BOOT'' uuid: b6b9e7ef-5aae-4c49-8b5a-39d6eec1d7d7 > Total devices 1 FS bytes used 25.76MB > devid 1 size 383.00MB used 240.50MB path /dev/sda2> Label: ''TETHYS'' uuid: 82c61fc2-8f8c-4cce-9d0d-ed446f671062 > Total devices 1 FS bytes used 74.11GB > devid 1 size 145.66GB used 77.54GB path /dev/dm-1Ok - just for your information the messages of my system, created with mkfs.btrfs -d raid0 -m raid1 ... # btrfs filesystem show Label: ''MMedia'' uuid: 120b036a-883f-46aa-bd9a-cb6a1897c8d2 Total devices 3 FS bytes used 1.68TB devid 2 size 1.81TB used 603.02GB path /dev/sdb1 devid 1 size 1.82TB used 599.51GB path /dev/sde1 devid 3 size 1.81TB used 603.01GB path /dev/sdc1 Btrfs Btrfs v0.19 # btrfs filesystem df /srv/MM Data, RAID0: total=1.75TB, used=1.67TB System, RAID1: total=16.00MB, used=116.00KB System: total=4.00MB, used=0.00 Metadata, RAID1: total=4.25GB, used=2.53GB # df -t btrfs Filesystem Type 1K-blocks Used Available Use% Mounted on /dev/sdb1 btrfs 5846053400 1803934240 2718410984 40% /srv/MM ---------------------------------------- I don''t know what''s the meaning of the type "DUP" (instead of "RAID0" or "RAID1" in my example). In your case "btrfs filesystem df" seems to show something about special informations and their need of space but nothing about used space or available space. Some weeks ago there has been a thread about the informations of "df", "btrfs filesystem df" and "btrfs filesystem show"; most times there may be shown the "at least available space". Viele Gruesse! Helmut -- 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
Hallo, Hugo, Du meintest am 15.05.11:>>>>> # btrfs fi df / >>>>> Data: total=74.01GB, used=72.77GB >>>>> System, DUP: total=8.00MB, used=16.00KB >>>>> System: total=4.00MB, used=0.00 >>>>> Metadata, DUP: total=1.75GB, used=657.48MB >>>>> Metadata: total=8.00MB, used=0.00>> I don''t know what''s the meaning of the type "DUP" (instead of >> "RAID0" or "RAID1" in my example).> DUP is a form of RAID-1 for single disks. Like RAID-1, it stores > two copies of the data, but where RAID-1 guarantees that the two > copies will be on different devices, DUP stores both copies on the > same device. btrfs uses DUP by default for metadata on single-device > filesystems, so that if part of the FS metadata is damaged (by, say, > unrecoverable bad blocks), there''s still a good copy.> If you add another disk to the filesystem and balance, the DUP > chunks are automatically converted to RAID-1.Sounds very interesting! In this special case: does that mean that> root@tethys:~# df -t btrfs > Sys. de fichiers 1K-blocs Utilisé Dispo. Uti% Monté > sur /dev/mapper/VG1-TETHYS > 152735744 78383976 71999272 53% / > /dev/mapper/VG1-TETHYS > 152735744 78383976 71999272 53% /tmpshows that that device with brutto 150 GByte is nearly full with its 78 GByte (or 73 GByte) data because it uses this kind of RAID1? Viele Gruesse! Helmut -- 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
Le dimanche 15 mai 2011 à 19:28 +0200, Helmut Hullen a écrit :> shows that that device with brutto 150 GByte is nearly full with its > 78 GByte (or 73 GByte) data because it uses this kind of RAID1?No. Here''s the current situation on same machine : # btrfs fi df / Data: total=85.01GB, used=84.56GB System, DUP: total=8.00MB, used=16.00KB System: total=4.00MB, used=0.00 Metadata, DUP: total=1.75GB, used=1.01GB Metadata: total=8.00MB, used=0.00 As far as I understood, only metadata (not data) are DUPed, and the DATA zone is allocated as needed by 1GB chunks. So I currently use 84.5 GB and the system has thus allocated 85 GB of filesystem DATA space. When they get full, the system will allocate 1 more GB, etc. Until the device itself gets full, of course. You notice here that there''s no indication about the device actual size (this df gives developper-useful data, not sysadmin-useful data ;-)) but this file system resides in : # mount /dev/mapper/VG1-TETHYS on / type btrfs (rw,relatime,subvol=UBUNTU,compress=zlib) [...] # lvs VG1/TETHYS LV VG Attr LSize Origin Snap% Move Log Copy% Convert TETHYS VG1 -wi-ao 145,66g -- 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