nouveau fichier : sio2/sisr/LVM/LVM-history.txt
This commit is contained in:
parent
8ef43e8740
commit
b831dfe26e
84
sio2/sisr/LVM/LVM-history.txt
Normal file
84
sio2/sisr/LVM/LVM-history.txt
Normal file
@ -0,0 +1,84 @@
|
||||
1 ip a
|
||||
2 ip r
|
||||
3 date
|
||||
4 timedatectl set-timezone Europe/Paris
|
||||
5 date
|
||||
6 apt autoclean
|
||||
7 apt autoremove
|
||||
8 poweroff
|
||||
9 ip a
|
||||
10 ifdown enp0s3
|
||||
11 ifup enp0s3
|
||||
12 ip a
|
||||
13 apt install lvm2
|
||||
14 lsblk
|
||||
15 fdisk /dev/sdb
|
||||
16 fdisk /dev/sdb
|
||||
17 lsblk
|
||||
18 cat /dev/sdb
|
||||
19 clear
|
||||
20 fdisk /dev/sdb
|
||||
21 lsblk
|
||||
22 fdisk /dev/sdb
|
||||
23 fdisk /dev/sdb
|
||||
24 lsblk
|
||||
25 sfdisk -d /dev/sdb | sfdisk -f /dev/sdc
|
||||
26 sfdisk -d /dev/sdb | sfdisk -f /dev/sdd
|
||||
27 lsblk
|
||||
28 pvcreate /dev/sdb1
|
||||
29 pvcreate /dev/sdc1
|
||||
30 pvcreate /dev/sdd1
|
||||
31 pvs
|
||||
32 vgcreate vg0 /dev/sdb1 /dev/sdc1
|
||||
33 vgs
|
||||
34 vgdisplay
|
||||
35 vgs
|
||||
36 pvs
|
||||
37 lvs
|
||||
38 lvs
|
||||
39 vgs
|
||||
40 lvcreate -n Vol1 -L 196m mvg
|
||||
41 lvcreate -n Vol1 -L 196,00m mvg
|
||||
42 man lvcreate
|
||||
43 lvcreate -n Vol1 -L 200 mvg
|
||||
44 lvcreate -n Vol1 -L 200 vg0
|
||||
45 lvcreate -n Vol2 -L 250 vg0
|
||||
46 lvcreate -n Vol2 -L 200 vg0
|
||||
47 lvcreate -n Vol2 -L 196 vg0
|
||||
48 lvcreate -n Vol2 -L 192 vg0
|
||||
49 lvs
|
||||
50 mkfs /dev/vg0-Vol1
|
||||
51 mkfs /dev/vg0/Vol1
|
||||
52 mkfs /dev/vg0/Vol2
|
||||
53 lvs
|
||||
54 mount /dev/vg0/Vol1 /lvs1
|
||||
55 mkdir /lvs1
|
||||
56 mkdir /lvs2
|
||||
57 mount /dev/vg0/Vol1 /lvs1
|
||||
58 mount /dev/vg0/Vol2 /lvs2
|
||||
59 lsblk
|
||||
60 df -h
|
||||
61 pvcreate /dev/sdd1
|
||||
62 vgextend /dev/vg0
|
||||
63 vgextend /dev/vg0
|
||||
64 vgextend vg0 /dev/sdd1
|
||||
65 lvresize --resizefs --size +200m /dev/vg0/Vol2
|
||||
66 lvresize --resizefs --size +100 /dev/vg0/Vol2
|
||||
67 lvresize --resizefs --size +100 /dev/vg0/Vol1
|
||||
68 lvresize --resizefs --size +90 /dev/vg0/Vol1
|
||||
69 lsblk
|
||||
70 df -h
|
||||
71 resize2fs -PM /dev/vg0/Vol1
|
||||
72 vgs
|
||||
73 lv
|
||||
74 lvs
|
||||
75 df -h
|
||||
76 history > historyLVM.txt
|
||||
77 ls
|
||||
78 nano /etc/ssh/ssh_config
|
||||
79 nano /etc/ssh/sshd_config
|
||||
80 systemctl restart ssh
|
||||
81 ip a
|
||||
82 history
|
||||
83 ls
|
||||
84 history > LVM-history.txt
|
Loading…
x
Reference in New Issue
Block a user