no way to compare when less than two revisions
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
Nächste Überarbeitung | |||
— | virtualisierung:proxmox_kvm_und_lxc:lvm_thin_unter_proxmox_durch_qcow2_ersetzen [2017/04/14 14:22] – angelegt admin | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ====== LVM Thin unter Proxmox durch QCOW2 ersetzen ====== | ||
+ | |||
+ | Ausgangspunkt ist ein einziges Raid. Hat man z.B. schon eine bestehende Maschine am laufen wo ein formatiertes LVM für QCOW2 auf ''/ | ||
+ | Sehen wir uns die StandardLVMs und das Filesystem des Servers an: | ||
+ | < | ||
+ | lvs | ||
+ | LV | ||
+ | data pve twi-a-tz-- 755.96g | ||
+ | root pve -wi-ao---- | ||
+ | swap pve -wi-ao---- | ||
+ | |||
+ | df -h | ||
+ | Filesystem | ||
+ | udev | ||
+ | tmpfs | ||
+ | / | ||
+ | tmpfs 18G | ||
+ | tmpfs | ||
+ | tmpfs 18G | ||
+ | / | ||
+ | </ | ||
+ | Drei LVM's, das data als LVM Thin. Wobei LVM Root hier 40GB füllt. Dies soll bleiben, wir möchten lediglich das '' | ||
+ | |||
+ | Entfernen es LVM Thin | ||
+ | < | ||
+ | lvremove pve/data | ||
+ | Do you really want to remove and DISCARD active logical volume data? [y/n]: y | ||
+ | Logical volume " | ||
+ | </ | ||
+ | Erstellen des normalen LVM's | ||
+ | < | ||
+ | lvcreate -L 755.96G -n data pve | ||
+ | Rounding up size to full physical extent 755.96 GiB | ||
+ | Logical volume " | ||
+ | </ | ||
+ | Formatieren des LVM's | ||
+ | < | ||
+ | mkfs.ext4 / | ||
+ | mke2fs 1.42.12 (29-Aug-2014) | ||
+ | Creating filesystem with 198170624 4k blocks and 49545216 inodes | ||
+ | Filesystem UUID: ba2e3970-184c-490b-92b9-dee4d6dbc59b | ||
+ | Superblock backups stored on blocks: | ||
+ | 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, | ||
+ | 4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, | ||
+ | 102400000 | ||
+ | |||
+ | Allocating group tables: done | ||
+ | Writing inode tables: done | ||
+ | Creating journal (32768 blocks): done | ||
+ | Writing superblocks and filesystem accounting information: | ||
+ | </ | ||
+ | Nun noch den neuen Speicher in die ''/ | ||
+ | < | ||
+ | / | ||
+ | </ | ||
+ | Bevor man nun diesen Pfad mountet ist es wichtig das man alle alten Daten unter ''/ | ||
+ | < | ||
+ | rm -rf / | ||
+ | </ | ||
+ | Ab jetzt hat man wieder den QCOW2 Standard am laufen. | ||
+ | < | ||
+ | Filesystem | ||
+ | udev | ||
+ | tmpfs | ||
+ | / | ||
+ | tmpfs 18G | ||
+ | tmpfs | ||
+ | tmpfs 18G | ||
+ | / | ||
+ | / | ||
+ | </ | ||
+ | < | ||
+ | LV | ||
+ | data pve -wi-ao---- 755.96g | ||
+ | root pve -wi-ao---- | ||
+ | swap pve -wi-ao---- | ||
+ | </ | ||
+ | ===== Links ===== | ||
+ | * Siehe auch [[virtualisierung: | ||