Resize LXC Container Disk in Proxmox VE (ZFS)
To change the volume size of an LXC container in Proxmox Virtual Environment (PVE) using ZFS, follow these steps:
- Log in to the Proxmox web interface.
- Navigate to the 'Datacenter' view.
- Select the appropriate storage pool that contains the LXC container.
- Locate the ZFS dataset associated with the LXC container and note its name. The dataset name typically starts with 'rpool/data'.
- SSH into the Proxmox host server.
- Run the following command to resize the ZFS dataset:
zfs set volsize=new_size dataset_name
Replace 'new_size' with the desired new size for the dataset and 'dataset_name' with the actual dataset name.
7. Verify that the dataset size has been updated by running the following command:
zfs list dataset_name
The output should now reflect the new size.
8. Return to the Proxmox web interface and navigate to the 'LXC' view.
9. Find the LXC container you want to resize and click on it.
10. In the container settings, click on the 'Hardware' tab.
11. Under 'Disks', you should see the disk associated with the LXC container.
12. Click on the 'Edit' button next to the disk.
13. Change the 'Size' field to the desired new size for the container's disk.
14. Click 'OK' to save the changes.
15. Start or restart the LXC container to apply the new disk size.
Note: Resizing a disk does not automatically resize the filesystem within the container. You may need to use appropriate tools within the LXC container to resize the filesystem to match the new disk size.
原文地址: https://www.cveoy.top/t/topic/qx2C 著作权归作者所有。请勿转载和采集!