Nachdem ich mich mit btrfs ein wenig auseinanderzusetzen begonnen habe, hab ich gleich mall einen Schnellschuß gemacht und natürlich gleich mal Mist gebaut...
Außerdem hab ich auf meiner HD eine GPT-Partitionstabelle installiert.
Code: Alles auswählen
root@debian: # gdisk -l /dev/sda
GPT fdisk (gdisk) version 0.8.10
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 976773168 sectors, 465.8 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 976773134
Partitions will be aligned on 2048-sector boundaries
Total free space is 325310445 sectors (155.1 GiB)
Number Start (sector) End (sector) Size Code Name
1 1032192 5126143 2.0 GiB 8200
2 40968192 81928191 19.5 GiB 8300
3 968581120 976773119 3.9 GiB 8300
4 960192512 968581119 4.0 GiB 8200
5 81928192 184328191 48.8 GiB 8300
6 184328192 593928191 195.3 GiB 8300
7 919232512 960192511 19.5 GiB 8300
8 6144 8191 1024.0 KiB EF02
9 8192 1032191 500.0 MiB EF00
10 5126144 40968191 17.1 GiB 8300
Ein funktionierendes Backup besteht auch.
Ich habe korrekterweise einen Partition grub_bios dann folgt eine Swap-Partition, dann kommt eine leere, dann mehrere btrfs-Partitionen, die ich alle zu einem btrfs-Filesystem verbunden habe (mit btrfs device add)...
Code: Alles auswählen
root@debian: # btrfs filesystem show
Label: 'SYSTEM' uuid: 6eacbed9-466c-400a-a7af-afd371036b78
Total devices 4 FS bytes used 265.79GiB
devid 1 size 19.53GiB used 19.50GiB path /dev/sda2
devid 2 size 48.83GiB used 48.83GiB path /dev/sda5
devid 3 size 19.53GiB used 19.53GiB path /dev/sda7
devid 4 size 195.31GiB used 195.31GiB path /dev/sda6
Ich hab mir das in etwa so vorgestellt...
Als erstes mounte ich die btrfs-Partition
Code: Alles auswählen
mount -t btrfs /dev/sda2 /mnt
Die erste leere Partition formatiere ich mit btrfs und füge sie dem btrfs hinzu.
Code: Alles auswählen
btrfs device add /dev/sda10 /mnt
Code: Alles auswählen
btrfs device delete /dev/sda2 /mnt
Als nächster Schritt muss ich btrfs auf /dev/sda10 vergrößern mit
Code: Alles auswählen
btrfs filesystem resize max /mnt
Anschließend wiederhole ich diesen Vorgang so oft, bis nur mehr eine einzige btrfs-Partition übrig ist.
Stimmt das so? Und kann ich das auch im laufenden Betrieb machen, oder muss ich das von einer Live-CD aus tun?
lg scientific