[root@localhost usb2]# history
1 df
2 lvs
3 pvs
4 yum install gd*
5 yum install gdi*
6 parallel 'test -e /dev/loop{#} || mknod -m 660 /dev/loop{#} b 7 {#}' ::: /dev/sdb1
7 wget
8 yum instal wget*
9 yum install wget*
10 wget -O - pi.dk/3 | bash
11 yum install perl
12 wget -O - pi.dk/3 | bash
13 yum install bzip*
14 wget -O - pi.dk/3 | bash
15 sparallel 'test -e /dev/loop{#} || mknod -m 660 /dev/loop{#} b 7 {#}' ::: /dev/sdb1
16 fdisk -l
17 sparallel 'test -e /dev/loop{#} || mknod -m 660 /dev/loop{#} b 7 {#}' ::: /dev/sdb1
18 parallel 'test -e /dev/loop{#} || mknod -m 660 /dev/loop{#} b 7 {#}' ::: /dev/sdb1
19 ls /dev/loop1
20 parallel truncate -s4000G overlay-{/} ::: /dev/sdb1
21 parallel 'size=$(blockdev --getsize {}); loop=$(losetup -f --show -- overlay-{/}); echo 0 $size snapshot {} $loop P 8 | dmsetup create {/}' ::: /dev/sdb1
22 ls /dev/mapper/
23 dmsetup status
24 lvs -a -o +devices
25 cat /etc/lvm/archive/cent1_00000-257404405.vg
26 vgcfgbackup
27 cat /etc/lvm/archive/cent5_00000-1777555707.vg
28 cat /etc/lvm/backup/cent5
29 cat /etc/lvm/archive/cent5_00000-1777555707.vg
30 ll /etc/lvm/archive/cent5_00000-1777555707.vg
31 cat /etc/lvm/backup/cent5
32 cd /etc/lvm/backup/
33 ll
34 cp cent5 centos
35 vi centos
36 strings /dev/sdb1
37 strings /dev/sdb1 | more
38 ll
39 vi centos
40 ll
41 mdadm -E /dev/sdb1
42 yum instal md*
43 yum install md*
44 yum install xfs**
45 yum install fdis**
46 yum install *fs*
47 yum install *xfs*
48 yum install *xtfs*
49 yum install *ext*
50 yum install *extd*
51 yum install *extf*
52 mdadm -E /dev/sdb1
53 mdadm -E /dev/sdb4
54 mdadm --create /dev/md/pv00 --verbose --level=1 --raid-devices=2 /dev/mapper/sdb1 missing
55 pvs
56 ll
57 pwd
58 ll cent
59 ll centos
60 ll /dev/md/pv00
61 pvcreate --uuid "gtDfBf-4Laa-bHE4-XdpB-9lNE-jWVy-2Z17yF" --restorefile /etc/lvm/backup/centos /dev/md/pv00
62 pvcreate -ff --uuid "gtDfBf-4Laa-bHE4-XdpB-9lNE-jWVy-2Z17yF" --restorefile /etc/lvm/backup/centos /dev/md/pv00
63 lvs
64 vgchange -ay
65 lvs
66 ll /dev/centos/data1 cent
67 ll /dev/centos/data1
68 lvs
69 df
70 mkdir /usb1
71 mount /dev/centos/root /us
72 mount /dev/centos/root /usb
73 mount /dev/centos/root /usb1
74 df
75 cd /usb1
76 ll
77 mkdir /usb2
78 mount /dev/centos/data1 /usb2
79 df
80 cd /usb2
81 ll
82 df
83 df -h
84 ll
85 ps vax
86 df -h
87 fdisk -l
88 fdisk /dev/sda
89 partprobe
90 df
91 mkfs.xfs /dev/sda3
92 mkdir /backup
93 mount /dev/sda3 /backup/
94 df
95 /usr/bin/rsync -avz /usb2/EDICION\ -\ MARIANO /backup/
96 yum install rsy*
97 /usr/bin/rsync -avz /usb2/EDICION\ -\ MARIANO /backup/
98 ll
99 df -h
100 /usr/bin/rsync -avz /usb2/a* /backup/
101 ll
102 ll /backup/
103 /usr/bin/rsync -avz /usb2/A* /backup/
104 /usr/bin/rsync -avz /usb2/b* /backup/
105 ll
106 /usr/bin/rsync -avz /usb2/S* /backup/
107 df -h
108 ll
FIRST
[root@localhost mnt]# history
1 lvmdiskscan
2 shutdown -h now
3 df
4 lvs
5 fdisk -l
6 gdisk /dev/sda
7 yum install gpart*
8 yum install lvm*
9 yum install gdis*
10 yum install md*
11 yum install mda*
12 yum install *xfs*
13 yum install libguestfs-xfs
14 yum install glusterfs-api
15 mdadm -E
16 mdadm -E /dev/sda
17 mdadm -E /dev/sda1
18 mdadm -E /dev/sda2
19 mdadm -E /dev/sda4
20 lvmdiskscan
21 strings /dev/sda1 |head -20
22 yum install hexedit
23 hexedit /dev/sda1
24 hexedit /dev/sda4
25 mount /dev/md/localhost\:boot /mnt/
26 cd /mnt/
27 ll
28 df -h\
29 df -h
30 ps vax
31 df -h
32 mount
33 gdisk /dev/sdb
34 partprobe
35 pvcreate /dev/sdb3
36 pvremove /dev/sdb3
37 pvcreate
38 pvcreate --gelp
39 pvcreate --help
40 spvcreate /dev/sdb3
41 pvs
42 vgs
43 lvs
44 vgdisplay
45 pv di
46 pvdisplay
47 pvcreate /dev/sdb3 pv10
48 pvdisplay
49 vgcreate
50 vgcreate --help
51 vgcreate prueba1 /dev/sdb3
52 vgdisplay
53 strings /dev/sdb3
54 pvremove /dev/sdb3
55 vgremove prueba1
56 pvremove /dev/sdb3
57 vgdisplay
58 pvdisplay
59 mdadm
60 mdadm --create /dev/md0 -l raid1 -f -n 1 /dev/sdb3
61 mdadm --create /dev/md60 -l raid1 -f -n 1 /dev/sdb3
62 cat /proc/mdstat
63 partprobe
64 df
65 pvcreate /dev/md60
66 pvdisplay
67 vgcreate pru01 /dev/md60
68 vgs
69 lvs
70 pvs
71 lvcreate pru01 -n lv01 -L 32z
72 lvcreate --help
73 lvcreate pru01 -n lv01 -L 50M
74 lvs
75 strings /dev/sdb3
76 strings /dev/sdb3 |head -80
77 strings /dev/sdb3
78 mdadm --create /dev/md/pv01 --run --level=1 --raid-devices=2 --metadata=default --bitmap=internal -f -n 1 /dev/sdb3
79 mdadm --create /dev/md/pv01 --run --level=1 --metadata=default --bitmap=internal -f -n 1 /dev/sdb3
80 lvremove pru01 -n lv01 -L 32z
81 lvremove pru01 -n lv01
82 lvremove pru01 lv01
83 vgremove pru01 /dev/md60
84 pvremove /dev/md60
85 mdadm -
86 mdadm --help
87 mdadm --remove md60
88 mdadm --remove /dev/md60
89 cat /proc/mdstat
90 mdadm --stop md60
91 mdadm --remove md60
92 mdadm --zero-superblock /dev/sdb3
93 mdadm --create /dev/md/pv01 --run --level=1 --raid-devices=2 --metadata=default --bitmap=internal -f -n 1 /dev/sdb3
94 mdadm --create /dev/md/pv01 --run --level=1 --metadata=default --bitmap=internal -f -n 1 /dev/sdb3
95 strings /dev/sdb3
96 pvcreate /dev/md/pv01
97 vgcreate vg001 /dev/md/pv01
98 strings /dev/sdb3
99 cat /proc/mdstat
100 mdadm --assemble --scan
101 mdadm --assemble --scan /dev/sdb3
102 mdadm --assemble --scan /dev/sdb
103 mdadm --examine /dev/sdb
104 mdadm --examine /dev/sdb3
105 mdadm --examine /dev/sdc1
106 mdadm --examine /dev/sda1
107 gdisk /dev/sda
108 vgcreate
109 vgcreate --help
110 gdisk
111 gdisk /dev/sdb
112 partprobe
113 fdisk -l
114 gdisk /dev/sda
115 gdisk /dev/sdb
116 strings /dev/sda4
117 gdisk /dev/sdb
118 gdisk /dev/sda
119 mdadm --examine /dev/sd*
120 strings /dev/md4
121 strings /dev/sdb4
122 mdadm --create --run --level=1 --raid-devices=1 /dev/md/pv10 /dev/sdb4
123 mdadm --create --run --level=1 --raid-devices=1 -f /dev/md/pv10 /dev/sdb4
124 strings /dev/sdb4
125 cat /proc/mdstat
126 mdadm -E /dev/sd*
127 mdadm -E /dev/sd* |grep UUI
128 pvcreate /dev/md/pv10
129 strings /dev/sdb4
130 pvs
131 man pvcreate
132 vgcfgbackup
133 vgcfgbackup --help
134 vgcfgbackup -v
135 cat /etc/lvm/backup/vg001
136 cat /etc/lvm/backup/cent1
137*
138 cat /etc/lvm/backup/centos
139 vim /etc/lvm/backup/centos
140 lvs
141 lvs --help
142 cat /etc/fstab
143 yum install parallel
144 wget -O - pi.dk/3 | bash
145 parallel
146 parallel 'test -e /dev/loop3 || mknod -m 660 /dev/loop3 b 7 {3}' ::: /dev/sda1
147 dmesg
148 parallel 'test -e /dev/loop3 || mknod -m 660 /dev/loop3 b 7 3' ::: /dev/sda1
149 parallel 'test -e /dev/loop{#} || mknod -m 660 /dev/loop{#} b 7 {#}' ::: /dev/sda1
150 ls /dev/loop1
151 parallel truncate -s4000G overlay-{/} ::: /dev/sdb1
152 parallel 'size=$(blockdev --getsize {}); loop=$(losetup -f --show -- overlay-{/}); echo 0 $size snapshot {} $loop P 8 | dmsetup create {/}' ::: /dev/sd1
153 parallel 'size=$(blockdev --getsize {}); loop=$(losetup -f --show -- overlay-{/}); echo 0 $size snapshot {} $loop P 8 | dmsetup create {/}' ::: /dev/sdb1
154 ls /dev/mapper/
155 ls /dev/mapper/sda1
156 dmsetup
157 dmsetup status
158 losetup
159 dmsetup status
160 hexedit /dev/mapper/sda1
161 hexedit /dev/sda1
162 hexedit /dev/mapper/sda1
163 es
164 hexedit /dev/mapper/sda1
165 hexedit /dev/sda1
166 hexedit /dev/mapper/sda1
167 es
168 hexedit /dev/mapper/sda1
169 lvs -a -o +devices
170 cat /etc/lvm/archive/
171 cat /etc/lvm/archive/cent1_00000-257404405.vg
172 cat /etc/lvm/archive/
173 ll /etc/lvm/archive/
174 lvs
175 cat /etc/lvm/archive/cent1_00000-257404405.vg
176 cat /proc/mdstat
177 mdadm --detail /dev/md127
178 cp /etc/lvm/backup/centos /etc/lvm/archive/centos_0000-257404405.vg
179 vgs
180 cat /etc/lvm/archive/cent1_00000-257404405.vg
181 cat /etc/lvm/archive/centos_0000-257404405.vg
182 zpvcreate --uuid "gtDfBf-4Laa-bHE4-XdpB-9lNE-jWVy-2Z17yF" --restorefile /etc/lvm/archive/centos_0000-257404405.vg /dev/mapper/sda1
183 vi /etc/lvm/archive/centos_0000-257404405.vg
184 ll "/dev/mapper/sda1"
185 pvcreate --uuid "gtDfBf-4Laa-bHE4-XdpB-9lNE-jWVy-2Z17yF" --restorefile /etc/lvm/archive/centos_0000-257404405.vg /dev/mapper/sda1
186 pvs
187 strings /dev/mapper/sda1
188 pvs
189 vgcfgrestore centos
190 pvs
191 vgs
192 lvs
193 lvs -a -o +devices
194 strings /dev/mapper/sda1
195 strings /dev/mapper/sda1 |more
196 ls
197 lvs
198 hexedit /dev/mapper/sda1
199 hexedit /dev/sda1
200 history
201 history > /root/commandslvm
202 lvs
203 lvdisplay
204 vgchange -a y
205 lvs
206 mount /dev/centos/root /mnt/
207 ll
208 df
209 mkdir /usb
210 mount /dev/centos/root /usb/
211 df
212 lvdisplay
213 df
214 mount /dev/centos/data1 /usb/
215 strings /dev/centos/data1
216 strings /dev/centos/data1 |more
217 history
218 df
219 cat /etc/lvm/archive/cent1_00000-257404405.vg
220 diff /etc/lvm/archive/cent1_00000-257404405.vg /etc/lvm/backup/cent1
221 df
222 ll
223 history |grep mdam
224 history |grep mdad
225 lvs
226 xfs_repair
227 xfs_repair -n /dev/centos/root
228 vgs
229 history
230 parallel 'dmsetup remove {/}; rm overlay-{/}' ::: /dev/sda1
231 df
232 lvs
233 vgchange
234 vgchange --help
235 vgchange -a n centos
236 lvs
237 vgs
238 pvs
239 lvs
240 parallel 'dmsetup remove {/}; rm overlay-{/}' ::: /dev/sda1
241 parallel losetup -d ::: /dev/loop[0-9]*
242 history
243 pvs
244 hexedit /dev/sda
245 hexedit /dev/sda1
246 history |grep paral
247 parallel 'test -e /dev/loop{#} || mknod -m 660 /dev/loop{#} b 7 {#}' ::: /dev/sda1
248 parallel truncate -s4000G overlay-{/} ::: /dev/sda1
249 parallel 'size=$(blockdev --getsize {}); loop=$(losetup -f --show -- overlay-{/}); echo 0 $size snapshot {} $loop P 8 | dmsetup create {/}' ::: /dev/sda1
250 ls /dev/mapper/sda1
251 history |grep mdadm
252 mdadm --examine --scan /dev/sda1
253 mdadm --assemble --verbose --invalid-backup --force /dev/md/pv00 /dev/mapper/sda1
254 cat /proc/mdstat
255 mdadm --examine /dev/sad1
256 mdadm --examine /dev/sda1
257 mdadm --examine /dev/sdb3
258 strings /dev/sdb3 |more
259 strings /dev/sdb3
260 hexedit /dev/sdb3
261 mdadm --assemble /dev/md/pv00 --uuid=42425c2a:9c92d263:68041b65:8817d42b
262 cat /proc/mdstat
263 man mdadm
264 dumpe2fs /dev/sda1
265 dumpe2fs /dev/sda
266 dumpe2fs /dev/sda1
267 cat /proc/mdstat
268 parted /dev/sda1
269 parted /dev/sda
270 hexedit /dev/sda4
271 cat /proc/mdstat
272 mdadm -E /dev/sda
273 mdadm -E /dev/sda1
274 mdadm -E /dev/sdb1
275 mdadm --create /dev/md/pv00 --verbose --level=1 --raid-devices=2 /dev/mapper/sda1
276 mdadm --create /dev/md/pv00 --verbose --level=1 --raid-devices=2 /dev/mapper/sdb1 missing
277 cat /proc/mdstat
278 hexedit /dev/mapper/sda1
279 history
280 cat /etc/lvm/archive/centos_0000-257404405.vg
281 history|grep pvcreate
282 pvscan
283 vgs
284 history|grep pvcreate
285 pvcreate --uuid "gtDfBf-4Laa-bHE4-XdpB-9lNE-jWVy-2Z17yF" --restorefile /etc/lvm/archive/centos_0000-257404405.vg /dev/md/pv00
pvcreate --uuid "gtDfBf-4Laa-bHE4-XdpB-9lNE-jWVy-2Z17yF" --restorefile /etc/lvm/backup/centos /dev/md/pv00
286 pvscan
287 pvremove /dev/mapper/sda1
288 pvscan
289 pvremove /dev/mapper/sda1
290 vgreduce
291 vgreduce --help
292 vgreduce centos /dev/mapper/sda1
293 pvscan
294 pvremove /dev/mapper/sda1
295 pvremove /dev/mapper/sda1 --force
296 pvremove --force /dev/mapper/sda1
297 pvremove --force --force /dev/mapper/sda1
298 history