Proxmox VE虚拟化服务器添加硬盘
公司业务需求需要在虚拟化服务器上添加4T的硬盘,特记录一下,以供备用
因为添加硬盘大小超过2T,所以常规的fdisk工具就不能使用了,这里使用的parted工具
列出磁盘列表
1 | root@vhpve03:~# parted -l |
可以看出系统现在有两块磁盘,model就是磁盘对应的型号,操作前一定注意磁盘型号,以免操作错误,造成数据丢失
进入硬盘,显示分区
1 | root@vhpve03:~# parted /dev/sda |
创建分区,一般步骤为创建一般步骤为创建disklable—->创建分区—–>格式分区—–>挂载分区
创建分区
1 | ##创建 gpt格式的disklable,warnging提示会删除硬盘中的所有数据,确定此硬盘为要操作的硬盘后yes即可 |
格式化分区
1 | root@vhpve03:~# mkfs.ext4 /dev/sda1 |
挂载分区
1 | root@vhpve03:~# mkdir /datacenter |
添加到promox集群
1 | pvesm add datacenter -type dir --path /datacenter |
- 本文作者: ChuLinx
- 本文链接: http://yoursite.com/2019/11/30/Proxmox VE虚拟化服务器添加硬盘/
- 版权声明: 本博客所有文章除特别声明外,均采用 MIT 许可协议。转载请注明出处!