Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| system_administration:faq [2022/12/29 13:36] – aziz | system_administration:faq [2023/08/11 20:01] (current) – aziz | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ===== FAQ ===== | ||
| ~~FAQ~~ | ~~FAQ~~ | ||
| + | ??? Rendre persistant le journal system | ||
| + | !!! | ||
| + | <cli> | ||
| + | $ sudo mkdir -p / | ||
| + | $ grep -v ' | ||
| + | [Journal] | ||
| + | Storage=persistent | ||
| + | SystemMaxUse=300M | ||
| + | $ sudo systemctl restart systemd-journald.service | ||
| + | </ | ||
| + | |||
| + | |||
| + | ??? journalctl --list-boots Failed No data available | ||
| + | !!! | ||
| + | <cli> | ||
| + | $ LANG=C sudo journalctl --list-boots | ||
| + | Failed to determine boots: No data available | ||
| + | $ sudo journalctl --verify | ||
| + | File corruption detected at / | ||
| + | 8 bytes, 29%). | ||
| + | FAIL: / | ||
| + | $ # remove corrupted files | ||
| + | $ sudo rm / | ||
| + | </ | ||
| + | |||
| ??? Convertir un CD en fichier ISO | ??? Convertir un CD en fichier ISO | ||
| !!! | !!! | ||
| - | <code -> | + | <cli> |
| [root@testserver ~]# isoinfo -d -i /dev/cdrom | grep -i -E 'block size|volume size' | [root@testserver ~]# isoinfo -d -i /dev/cdrom | grep -i -E 'block size|volume size' | ||
| Logical block size is: 2048 | Logical block size is: 2048 | ||
| Line 9: | Line 35: | ||
| [root@testserver ~]# dd if=/ | [root@testserver ~]# dd if=/ | ||
| - | </code> | + | </cli> |
| - Sources : | - Sources : | ||
| Line 19: | Line 45: | ||
| ??? Réduire la taille d'un PDF | ??? Réduire la taille d'un PDF | ||
| !!! | !!! | ||
| - | <code -> | + | <cli> |
| - | ps2pdf -dPDFSETTINGS=/ | + | $ ps2pdf -dPDFSETTINGS=/ |
| - | </code> | + | </cli> |
| Les autres | Les autres | ||
| Line 31: | Line 57: | ||
| !!! | !!! | ||
| - | <code bash> | + | <cli> |
| - | convert logo_elosys.png -resize | + | $ convert logo_elosys.png -resize |
| - | </code> | + | </cli> |
| Line 39: | Line 65: | ||
| !!! | !!! | ||
| - | <code bash> | + | <cli> |
| - | convert -resize x48 -gravity center logo.png -flatten -colors 256 -background transparent favicon.ico | + | $ convert -resize x48 -gravity center logo.png -flatten -colors 256 -background transparent favicon.ico |
| - | </code> | + | </cli> |
| - | ??? Pusher en utilisant une clé ssh spécifique | + | ??? Pusher |
| !!! | !!! | ||
| <cli> | <cli> | ||
| - | GIT_SSH_COMMAND=' | + | $ GIT_SSH_COMMAND=' |
| </ | </ | ||
| Line 80: | Line 106: | ||
| slave si les commande suivantes ne sont pas exécutées: | slave si les commande suivantes ne sont pas exécutées: | ||
| - | <code bash> | + | <cli> |
| - | sudo rndc freeze | + | $ sudo rndc freeze |
| - | sudo rndc thaw | + | $ sudo rndc thaw |
| - | </code> | + | </cli> |
| ??? Obtenir le log de bind9 nameserver | ??? Obtenir le log de bind9 nameserver | ||
| - | !!! < | + | !!! |
| + | < | ||
| Line 97: | Line 124: | ||
| **Step 1 - Enable NBD on the Host** | **Step 1 - Enable NBD on the Host** | ||
| - | <code bash> | + | <cli>$ modprobe nbd max_part=8</ |
| **Step 2 - Connect the QCOW2 as network block device** | **Step 2 - Connect the QCOW2 as network block device** | ||
| - | <code bash> qemu-nbd --connect=/ | + | <cli>$ qemu-nbd --connect=/ |
| **Step 3 - Find The Virtual Machine Partitions** | **Step 3 - Find The Virtual Machine Partitions** | ||
| - | <code bash>fdisk /dev/nbd0 -l</code> | + | <cli>$ fdisk /dev/nbd0 -l</cli> |
| **Step 4 - Mount the partition from the VM** | **Step 4 - Mount the partition from the VM** | ||
| - | <code bash>mount /dev/nbd0p1 / | + | <cli>$ mount /dev/nbd0p1 / |
| **Step 5 - After you're done, unmount and disconnect** | **Step 5 - After you're done, unmount and disconnect** | ||
| - | <code bash> | + | <cli> |
| - | umount / | + | $ umount / |
| - | qemu-nbd --disconnect /dev/nbd0 | + | $ qemu-nbd --disconnect /dev/nbd0 |
| - | rmmod nbd | + | $ rmmod nbd |
| - | </code> | + | </cli> |