btrfs replace - "not a btrfs filesystem"

Welches Modul/Treiber für welche Hardware, Kernel compilieren...
Antworten
knebb
Beiträge: 19
Registriert: 08.06.2019 09:08:18

btrfs replace - "not a btrfs filesystem"

Beitrag von knebb » 08.06.2019 09:27:28

Hi,

ich htte mit btrfs-progs v4.9.1 ein btrfs als RAID1 laufen- ohne Probleme.
Jetzt wollte ich das system allerdings verschlüsseln. Also unterhalb von btrfs die devices verschlüsseln.
Ok, weitere Platte hinzugefügt, crypto-Device erzeugt und dann ein

Code: Alles auswählen

 btrfs replace start /dev/sdc /dev/mapper/crypt_btrfs1 /dev/sdc
Es gab keine Fehlermeldung zurück und offensichtlich passiert auch etwas auf dem System, die IO-wait ist bei 20-50%, vmstat 1 10 sagt:

Code: Alles auswählen

root@ucs:~# vmstat 1 10
procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 3  1  82388 1588788  36976 1223304    0    0  1005   697   23   19  1  1 97  1  0
 3  1  82388 1357056  36976 1223304    0    0 226688 226688 3688 6695  0 93  3  4  0
 3  1  82388 1059828  36976 1223304    0    0 209408 209408 2419 5038  0 85  7  9  0
 3  1  82388 740120  36984 1223312    0    0 225664 225676 4370 7522  1 91  5  4  0
 0  1  82388 540888  36984 1223304    0    0 146304 154496 2054 4798  0 65 18 18  0
 0  1  82388 637792  36984 1223308    0    0     0     0  335  767  1  1 50 49  0
 0  1  82388 765280  36984 1223308    0    0     0     0  352  817  0  2 50 49  0
 0  1  82388 905804  36984 1223308    0    0     0     0  360  860  0  0 50 50  0
 0  1  82388 1030680  36992 1223292    0    0     0    12  395  809  0  2 47 51  0
 0  1  82388 1145644  36992 1223292    0    0     0     0  206  415  0  1 50 49  0
Das Dateisystem ist auch eingehängt und ich kann problemlos auf die Dateien zugreifen:

Code: Alles auswählen

root@ucs:~# df -h
Dateisystem                Größe Benutzt Verf. Verw% Eingehängt auf
[...]
/dev/mapper/vg_ucs-root      58G     17G   38G   31% /
/dev/mapper/crypt_btrfs1    1,3T   1013G  235G   82% /srv
Nun wollte ich prüfen, wie weit der replace denn schon gelaufen ist, bekomme aber eine Fehlermeldung, die mich vorsichtig werden läßt, ob das alles so richtig ist:

Code: Alles auswählen

root@ucs:~# btrfs replace status /dev/sdc
ERROR: not a btrfs filesystem: /dev/sdc
root@ucs:~# btrfs replace status /dev/mapper/crypt_btrfs1
ERROR: not a btrfs filesystem: /dev/mapper/crypt_btrfs1
root@ucs:~# btrfs replace status /dev/sdd
ERROR: not a btrfs filesystem: /dev/sdd
Aber auch fi show meint, es ist alles ok:

Code: Alles auswählen

root@ucs:~# btrfs fi show
Label: 'RAID1'  uuid: 368826d9-1d15-4e67-ba44-48e3966ebbba
        Total devices 3 FS bytes used 1011.69GiB
        devid    0 size 1.22TiB used 1.12TiB path /dev/mapper/crypt_btrfs1
        devid    1 size 1.22TiB used 1.12TiB path /dev/sdc
        devid    2 size 1.22TiB used 1.12TiB path /dev/sdd
Ja, ich werde jetzt ca. 2 Tage warten und hoffen, dass es dann durchgelaufen ist- aber was mich halt beunruhigt ist das "not a btrfs filesystem"....

Jemand eine Idee, was da los ist und wie ich den replace-Status überwachen kann?

Danke!

/KNEBB

knebb
Beiträge: 19
Registriert: 08.06.2019 09:08:18

Re: btrfs replace - "not a btrfs filesystem"

Beitrag von knebb » 08.06.2019 09:59:56

Erledigt!

Man muss für btrfs replace status den mount-Point angeben, nicht die devices...

Code: Alles auswählen

root@ucs:~# btrfs replace status /srv
63.9% done, 0 write errs, 0 uncorr. read errs

Antworten