Matebook更新了1个文件
Affected files: 工具/甲骨文.md
This commit is contained in:
parent
6dad7428ac
commit
614247bcdf
26
工具/甲骨文.md
26
工具/甲骨文.md
@ -49,3 +49,29 @@ sudo mount /dev/<Volume Group Name>/<Logical Volume Name> /mnt/bak
|
|||||||
> 访问完成后记得`umount /mnt/bak`
|
> 访问完成后记得`umount /mnt/bak`
|
||||||
## 卸载卷
|
## 卸载卷
|
||||||
查看`iscsi指令`,复制指令并运行
|
查看`iscsi指令`,复制指令并运行
|
||||||
|
# 扩容
|
||||||
|
## 调整引导卷大小
|
||||||
|
直接编辑引导卷,设为目的大小
|
||||||
|
## 重新扫描
|
||||||
|
复制给出的指令运行即可
|
||||||
|
## 重建分区表
|
||||||
|
1. 安装所需软件
|
||||||
|
Debian/Ubuntu
|
||||||
|
`apt -y install cloud-guest-utils gdisk`
|
||||||
|
Centos/Oracle
|
||||||
|
`yum install cloud-guest-utils gdisk`
|
||||||
|
2. 调整分区表
|
||||||
|
df -hl 看下容量最多的区是多少就写几,例如:/dev/sda1 ,就是growpart /dev/sda 1
|
||||||
|
`growpart /dev/sda 3`
|
||||||
|
> 如果报错: unexpected output in sfdisk –version [sfdisk,来自 util-linux 2.23.2]
|
||||||
|
执行`LANG=en_US.UTF-8`修复,之后再执行 `growpart /dev/sda 3`
|
||||||
|
3. 调整分区
|
||||||
|
Debian/Ubuntu
|
||||||
|
`resize2fs /dev/sda1`
|
||||||
|
调整ext4的分区
|
||||||
|
Centos/Oracle
|
||||||
|
`xfs_growfs /`
|
||||||
|
4. 查看是否生效
|
||||||
|
`df -h`或`lsblk`
|
||||||
|
5. 重启
|
||||||
|
`reboot`
|
Loading…
Reference in New Issue
Block a user