Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung Nächste Überarbeitung Beide Seiten, nächste Überarbeitung | ||
lpi2:xfs [2014/02/11 20:22] ingo_wichmann [xfsrestore] |
lpi2:xfs [2017/01/24 17:01] ingo_wichmann [xfsdump] |
||
---|---|---|---|
Zeile 3: | Zeile 3: | ||
Debian 6: xfsprogs xfsdump | Debian 6: xfsprogs xfsdump | ||
===== xfs Dateisystem anlegen ===== | ===== xfs Dateisystem anlegen ===== | ||
+ | Dieses Beispiel setzt voraus, dass eine [[lpi1:lvm|LVM VolumeGroup]] namens ''vg_centos6'' existiert, und darin noch mindestens 3 G frei sind. | ||
+ | |||
Logical Volumes anlegen: | Logical Volumes anlegen: | ||
- | pvcreate /dev/sda2 | ||
- | vgextend vg_centos6 /dev/sda2 | ||
lvcreate --name xfs_production --size 1G vg_centos6 | lvcreate --name xfs_production --size 1G vg_centos6 | ||
lvcreate --name xfs_backup --size 2G vg_centos6 | lvcreate --name xfs_backup --size 2G vg_centos6 | ||
Zeile 22: | Zeile 22: | ||
===== xfsdump ===== | ===== xfsdump ===== | ||
- | Backup anlegen: | + | Voll-Backup anlegen: |
year=$(date '+%G') | year=$(date '+%G') | ||
week=$(date '+%V') | week=$(date '+%V') | ||
Zeile 54: | Zeile 54: | ||
(xfsrestore dialog) | (xfsrestore dialog) | ||
add test1.txt | add test1.txt | ||
- | quit | + | extract |
(bash) | (bash) | ||
ls /mnt/xfs_production/test1.txt | ls /mnt/xfs_production/test1.txt |