[TOC]
背景
运维人员图方便,直接克隆了一台机子,但是内存分配不够用
其他内容
组是 cl
PART1
备份/home文件夹下内容
cp -r /home/ homebak/
卸载 /home
umount /home
如果失败通过以下指令终止/home下的进程
fuser -m -v -i -k /home
删除/home所在的lv
lvremove -y /dev/mapper/cl_smartmsp125-home
PART2 vgdisplay命令显示LVM卷组的信息
vgdisplay
引用
历史的命令行
扩容命令行
216 docker-compose -f /development/docker/docker-compose-confluence-postgresql.yml restart
217 cd /development/docker/
218 ls
219 reboot
220 docker-compose -f /development/docker/docker-compose-confluence-postgresql.yml restart
221 reboot
222 docker-compose -f /development/docker/docker-compose-confluence-postgresql.yml restart
223 cd
224 cd /development/docker/
225 ls
226 cd confluence/
227 ls
228 cd confluence-data/
229 ls
230 ls -i
231 reboot
232 reboot
233 docker-compose -f /development/docker/docker-compose-confluence-postgresql.yml restart
234 reboot
235 docker-compose -f /development/docker/docker-compose-confluence-postgresql.yml restart
236 reboot
237 docker-compose -f /development/docker/docker-compose-confluence-postgresql.yml restart
238 shutdown
239 shutdown -t
240 shutdown -t 0
241 shutdown -t 0s
242 shutdown now
243 docker-compose -f /development/docker/docker-compose-confluence-postgresql.yml restart
244 reboot
245 shutdown noew
246 shutdown now
247 cat /development/docker/docker-compose-confluence-postgresql.yml restart
248 vi /development/docker/docker-compose-confluence-postgresql.yml restart
249 shutdown now
250 dh -f
251 df -h
252 cp -r /home/ homebak/
253 du -h –max-depth=1
254 du -h –max-depth=1 /home
255 rx
256 rz
257 dz
258 sz
259 cd /
260 ls
261 sz home
262 sz /home
263 df- h
264 df -h
265 cp /home /dev/mapper/cl-home/home_tmp
266 cp /home /dev/mapper/cl-home/home_tmp -r
267 mkdir /dev/mapper/cl-home/home_tmp
268 cd /dev/mapper/cl-home
269 sftp
270 cd /etc/group
271 whereis vsftpd
272 ls
273 cd /etc/vsftpd/
274 whereis vsftpd
275 cat /development/docker/docker-compose-confluence-postgresql.yml stop
276 history
277 docker-compose -f /development/docker/docker-compose-confluence-postgresql.yml stop
278 /etc/init.d/sshd start
279 df -h
280 shutdown now
281 df -h
282 vgdisplay
283 fdisk -l
284 fdisk /dev/sdb
285 vgdisplay
286 fdisk -l
287 fdisk /dev/sdb
288 pvcreate /dev/sdb1
289 vgdisplay
290 vgextend cl /dev/sdb1
291 df -h
292 pvdisplay
293 vgextend cl /dev/sdb1
294 echo $?
295 pvs
296 cd /v
297 cd /var/lo
298 cd /var/log
299 ls
300 rm -rf *
301 ls
302 vgextend cl /dev/sdb1
303 df -h
304 vgdisplay
305 lvresize -L +190G /dev/mapper/cl-root
306 df -h
307 lvresize -L +190G /dev/mapper/cl-root
308 df -h
309 reboot
310 df -h
311 history