Fehler beim vorhandenen Dateisystem beim Hinzufügen eines alten Btrfs-Speichervolumes in die neue Installation von Ubuntu LXD

451
Kundarsa
lxc storage create default btrfs source=/dev/sdc error: Failed to create the BTRFS pool: /dev/sdc appears to contain an existing filesystem (btrfs). ERROR: use the -f option to force overwrite of /dev/sdc btrfs-progs v4.9.1 See http://btrfs.wiki.kernel.org for more information. 

Ich bin eine Skizze, die -f-Optionen zu geben, da ich meine vorhandenen Container nicht verlieren möchte und befürchten, dass die Festplatte verstopft wird.

1
Haben Sie den Befehl "mount / dev / sdc / mnt" ausprobiert, da ich den ursprünglichen Befehl nicht kenne, den Sie ausgeführt haben, um diese Ausgabe zu erhalten? In den meisten modernen Linux-Betriebssystemen ist der Mount-Befehl intelligent genug, um den Typ des Dateisystems auf der Festplatte zu interpretieren und auch zu mounten. Dooley_labs vor 6 Jahren 0
Der Befehl lautet "lxc storage create default btrfs source = / dev / sdc". Der fs-Typ ist btrfs, aber Lxd gibt diesen Fehler aus. Kundarsa vor 6 Jahren 0

1 Antwort auf die Frage

0
Kundarsa

i gave up on simply adding the existing storage volume to a storage pool. i got up quickly with access to the previous install by restoring the lxd config.

service lxd stop mkdir /mnt/old mount /dev/OLDDRIVE /mnt/old mv /var/lib/lxd /var/lib/lxd.old cp -R /mnt/old/var/lib/lxd /var/lib/ service lxd start lxc list 

i still have the rest of the install to test...