CentOS Stream 9安装系统(LVM扩容案例)
目录
- 1. CentOS Stream 9 安装系统
-
- 1.1 选择Install CentOS Stream 9
- 1.2 设置Language Support
- 1.3 设置Time & Date
- 1.4 选择上海
- 1.5 设置Software Selection
- 1.6 最小安装
- 1.7 设置Instllation Destination
- 1.8 点击Click here to create them automatically
- 1.9 默认分配
- 1.10 自定义LVM
- 1.11 点击Accept Changes
- 1.12 设置Root Password
- 1.13 点击Begin Installation
- 1.14 安装进度
- 1.15 点击Reboot System
- 1.16 查看
- 2 扩容
-
- 2.1 编辑虚拟机
- 2.2 新增硬盘
- 2.3 查看新增磁盘
- 2.4
- 2.5 PV操作
- 2.6 VG操作
- 2.7 LV操作
- 2.8 扩容前后对比
- 2.9 完成
1. CentOS Stream 9 安装系统
通过 LVM 管理磁盘,能极大提升 CentOS 系统的存储灵活性,特别适合服务器或需要长期使用的场景
1.1 选择Install CentOS Stream 9
1.2 设置Language Support
1.3 设置Time & Date
1.4 选择上海
1.5 设置Software Selection
1.6 最小安装
1.7 设置Instllation Destination
Storage Configuration选择Custom ,点击Done
1.8 点击Click here to create them automatically
1.9 默认分配
1.10 自定义LVM
1.11 点击Accept Changes
1.12 设置Root Password
1.13 点击Begin Installation
1.14 安装进度
1.15 点击Reboot System
1.16 查看
2 扩容
2.1 编辑虚拟机
2.2 新增硬盘
2.3 查看新增磁盘
[root@localhost ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 100G 0 disk
├─sda1 8:1 0 1G 0 part /boot
└─sda2 8:2 0 99G 0 part ├─CentOS_VG-root 253:0 0 91.1G 0 lvm /└─CentOS_VG-swap 253:1 0 7.9G 0 lvm [SWAP]
sdb 8:16 0 20G 0 disk
sr0 11:0 1 1024M 0 rom
2.4
[root@localhost ~]# fdisk /dev/sdbWelcome to fdisk (util-linux 2.37.4).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0xdc2d35c6.Command (m for help): n
Partition typep primary (0 primary, 0 extended, 4 free)e extended (container for logical partitions)
Select (default p): p
Partition number (1-4