Fix code highlighting

This commit is contained in:
Digital Studium
2023-07-23 15:55:12 +03:00
parent 7a3d0fc7bd
commit cdac09052a
19 changed files with 146 additions and 58 deletions

View File

@@ -14,7 +14,7 @@ sudo fdisk -l
```
to make sure the drive is recognized by the operating system, and to identify the drive name. Output
of command will be something like this:
```plaintext
```
Disk /dev/vdb: 10 GiB, 10737418240 bytes, 20971520 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes/512 bytes
@@ -26,7 +26,7 @@ physical volume using the command:
sudo pvcreate /dev/vdb
```
You will see output like this:
```plaintext
```
kostya@ubuntu-21-04:~$ sudo pvcreate /dev/vdb
Physical volume "/dev/vdb" successfully created.
kostya@ubuntu-21-04:~$
@@ -41,7 +41,7 @@ In our case, the command will look like this:
sudo vgcreate vg-example /dev/vdb
```
The command output will look like this:
```plaintext
```
kostya@ubuntu-21-04:~$ sudo vgcreate vg-example/dev/vdb
Volume group "vg-example" successfully created
kostya@ubuntu-21-04:~$
@@ -56,7 +56,7 @@ In our case, it will be:
sudo lvcreate --size 5G --name lv-example vg-example
```
You will see output like this:
```plaintext
```
kostya@ubuntu-21-04:~$ sudo lvcreate --size 5G --name lv-example vg-example
Logical volume "lv-example" created.
kostya@ubuntu-21-04:~$
@@ -71,7 +71,7 @@ To create an xfs filesystem, type the command:
sudo mkfs.xfs /dev/vg-example/lv-example
```
The command output will look like this:
```plaintext
```
kostya@ubuntu-21-04:~$ sudo mkfs.xfs/dev/vg-example/lv-example
meta-data =/dev/vg-example/lv-example isize = 512 agcount = 4, agsize = 327680 blks
= sectsz = 512 attr = 2, projid32bit = 1
@@ -102,7 +102,7 @@ You can verify that the logical volume has been mounted successfully using the c
df -h /opt
```
The output should be like this:
```plaintext
```
kostya@ubuntu-21-04:~$ df -h /opt/
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg--random-lv--random 5.0G 68M 5.0G 2% /opt

View File

@@ -17,7 +17,7 @@ sudo fdisk -l
This is to make sure the drive is recognized by the operating system, and to identify the drive name. Output of the command will be something like this:
```plaintext
```
Disk /dev/vdc: 5 GiB, 5368709120 bytes, 10485760 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes/512 bytes
@@ -32,7 +32,7 @@ sudo pvcreate /dev/vdc
You will see output like this:
```plaintext
```
kostya@ubuntu-21-04:~$ sudo pvcreate /dev/vdc
Physical volume "/dev/vdc" successfully created.
kostya@ubuntu-21-04:~$
@@ -42,7 +42,7 @@ You will see output like this:
To get a list of available volume groups run this command:
```shell
```bash
vgdisplay
```
@@ -60,7 +60,7 @@ sudo vgextend vg-example /dev/vdc
You will see output like this:
```plaintext
```
kostya@ubuntu-21-04:~$ sudo vgextend vg-example /dev/vdc
Physical volume "/dev/vdc" successfully created.
Volume group "vg-example" successfully extended
@@ -83,7 +83,7 @@ sudo lvextend --size +2G vg-example/lv-example
You will see output like this:
```plaintext
```
kostya@ubuntu-21-04:~$ sudo lvextend --size +2G vg-example/lv-example
Size of logical volume vg-example/lv-example changed from 5.00 GiB (1280 extents) to 7.00 GiB (1792 extents).
Logical volume vg-example/lv-example successfully resized.

View File

@@ -21,7 +21,7 @@ Logrotate rotates almost all log files in the `/var/log` folder every day. For e
```bash
ls /var/log/kern*
```
```plaintext
```
/var/log/kern.log /var/log/kern.log.2.gz /var/log/kern.log.4.gz
/var/log/kern.log.1 /var/log/kern.log.3.gz
```
@@ -30,7 +30,7 @@ To limit the number of log files, edit the file `/etc/logrotate.d/rsyslog`. Look
```bash
cat /etc/logrotate.d/rsyslog
```
```plaintext
```
/var/log/syslog
/var/log/mail.info
/var/log/mail.warn

View File

@@ -57,7 +57,7 @@ docker ps
```
The command output should contain 5 containers: prometheus, grafana, alertmanager, node-exporter, grafana.
```plaintext
```
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
46fba26e7234 gcr.io/cadvisor/cadvisor:v0.47.0 "/usr/bin/cadvisor -…" 5 days ago Up 5 days (healthy) 8080/tcp monitoring_cadvisor.1.q02qcn798dh0rydo1dzslylse
f212e3c66786 prom/alertmanager:v0.25.0 "/bin/alertmanager -…" 6 days ago Up 6 days 9093/tcp monitoring_alertmanager.1.oysziztrqnur7xr0hr82avunz