调整LVM分区的大小
调整LVM分区的大小
365 2023-07-07 11:15:43 fdisk -l
366 2023-07-07 11:18:59 ls opt/
367 2023-07-07 12:54:48 uname -s
368 2023-07-07 14:19:39 ping www.baidu.com
369 2023-07-07 14:52:27 uname -s
370 2023-07-07 15:38:19 fdisk -l
371 2023-07-07 15:38:47 df -h
372 2023-07-07 15:39:04 cd /opt/
373 2023-07-07 15:39:04 ls
374 2023-07-07 15:45:57 ip
375 2023-07-07 15:45:58 ip a
376 2023-07-07 15:49:52 du -ah
377 2023-07-07 15:49:58 df -sh .
378 2023-07-07 15:50:01 df -h .
379 2023-07-07 16:01:50 tar -cfv opt.tar ./*
380 2023-07-07 16:02:00 tar -cvf opt.tar ./*
381 2023-07-07 16:02:04 ls -al
382 2023-07-07 16:02:09 rm opt.tar
383 2023-07-07 16:02:13 cd /opt/
384 2023-07-07 16:02:17 tar -cvf opt.tar ./*
385 2023-07-07 16:02:53 df -a
386 2023-07-07 16:03:09 fdisk -l
387 2023-07-07 16:03:35 du -h
388 2023-07-07 16:03:38 df -h
389 2023-07-07 16:09:46 umount /opt/
390 2023-07-07 16:10:26 fusermount -km /opt/
391 2023-07-07 16:10:31 fusermount -h
392 2023-07-07 16:10:44 fusermount -u /opt/
395 2023-07-07 16:11:47 yum search all fuser
396 2023-07-07 16:12:02 yum install -y psmisc
397 2023-07-07 16:12:11 fuser -h
398 2023-07-07 16:37:23 ls /opt/
399 2023-07-07 16:37:25 ls
400 2023-07-07 16:37:28 df -h
401 2023-07-07 16:37:44 fuser -km /opt
402 2023-07-07 16:38:08 lvremove /dev/mapper/centos-opt
403 2023-07-07 16:38:14 umount /opt
404 2023-07-07 16:38:16 lvremove /dev/mapper/centos-opt
405 2023-07-07 16:38:30 fdisk -l
406 2023-07-07 16:38:35 df -h
407 2023-07-07 16:38:47 vgdisplay
413 2023-07-07 16:41:17 lvremove /dev/mapper/centos-opt
414 2023-07-07 16:41:32 umount /opt
415 2023-07-07 16:41:34 lvremove /dev/mapper/centos-opt
416 2023-07-07 16:41:54 fdisk -l
417 2023-07-07 16:41:57 df -h
418 2023-07-07 16:42:05 vgdisplay
419 2023-07-07 16:42:19 lvcreate -L 349.19G -n /dev/mapper/centos-opt
420 2023-07-07 16:42:35 mkfs.xfs /dev/mapper/centos-opt
421 2023-07-07 16:42:45 vgdisplay
422 2023-07-07 16:42:56 fdisk -l
423 2023-07-07 16:44:14 lsblk
424 2023-07-07 16:44:41 df -h
425 2023-07-07 16:45:16 mount /dev/mapper/centos-opt /opt
426 2023-07-07 16:45:20 df -h
427 2023-07-07 16:48:19 tar -xvf /opt/opt.tar -C /opt
428 2023-07-07 16:48:54 rm /opt/opt.tar
429 2023-07-07 16:48:59 ls /opt/
430 2023-07-07 16:49:06 ls -l /opt/
参考链接
作者: 咕咚!
出处: https://www.cnblogs.com/linga/
关于作者:专注虚拟化,运维开发,RPA,Rust,Go,Python!
本文版权归作者和博客园共有,禁止*.csdn.net转载,禁止以盈利为目的的转载,转载文章,但未经作者同意必须保留此段声明,且在文章页面明显位置给出, 原文链接 如有问题, 可邮件(oldsixa@163.com)咨询.