WARNING: This English version is translated by AI from the Chinese version.
After reviewing other tutorials, I found that most require operations within DSM. I’ll take a different approach and perform the operations directly in PVE.
First, power down the virtual machine.
1. Required Packages
|
|
2. Disk Expansion
Start by expanding the disk through the GUI interface, then open the Shell. Since I’m using zvol with a zpool named rp_01, the block device is located at /dev/zvol/rp_01/vm-200-disk-0, and the corresponding data partition (the third partition) is vm-200-disk-0-part3. Use the parted tool to expand the partition:
|
|
3. Partition Expansion
Begin by expanding the RAID array:
|
|
Next, mount the LVM volume. Start with a scan:
|
|
Then proceed with mounting. My volume group is named vg1 and the storage volume is volume_1 - adjust these names according to your setup:
|
|
Perform the expansion:
|
|
4. Unmounting from PVE
Execute the following commands:
|
|
You can now start DSM, but the process isn’t complete yet. Once DSM boots up, open the Storage Manager application. It will prompt you to expand the storage - simply accept the prompt.
Finally, here’s a crucial step! Remove the mdadm package. If you don’t, PVE will automatically mount any detected RAID arrays on the next boot, which will cause kernel crashes and DSM failures:
|
|
The expansion process is now complete.
References: