32 lines
1.4 KiB
Markdown
32 lines
1.4 KiB
Markdown
# Create a new logical volume
|
|
|
|
*[Move ISO storage](https://www.virtualizationhowto.com/community/proxmox-help/proxmox-move-an-iso-from-local-to-another-location/)*
|
|
|
|
**Note**: This example uses the `data_2tb` group as base and `ISO` as the datastore to be created. Change this according to need.
|
|
|
|
- Create logical volume (example is 32GB): `lvcreate -V 32GiB -T data_2tb/data_2tb -n ISO`
|
|
- Format new volume: `mkfs.ext4 /dev/data_2tb/ISO`
|
|
- Make mount point: `mkdir /mnt/ISO`
|
|
- Mount logical volume to mount point: `mount /dev/data_2tb/ISO /mnt/ISO`
|
|
- Test write a file to the new volume: `dd if=/dev/zero of=/mnt/ISO/test bs=1M count=1024`
|
|
- If the test works correctly, then remove the test file: `rm /mnt/ISO/test`
|
|
- Go to Proxmox GUI and add the new location:
|
|
1. Go to Datacenter
|
|
2. Storage
|
|
3. Add, and add the new storage into Proxmox.
|
|
- Use `iso` for ID
|
|
- `/mnt/ISO` for Directory
|
|
- Select the appropriate content for this datastore
|
|
- List ISOs in the default location: `ls -lh /var/lib/vz/template/iso/`
|
|
- Move ISOs to the new location: `mv /var/lib/vz/template/iso/*.iso /mnt/ISO/template/iso`
|
|
|
|
**Note**: If you only want to move a specific ISO, then move just the required file, example:
|
|
`mv /var/lib/vz/template/iso/netgate-installer-v1.0-RC-amd64-20240919-1435.iso /mnt/ISO/template/iso`
|
|
|
|
## Make the new datastore available after reboot
|
|
|
|
Edit `/etc/fstab` and add the new datastore to the end.
|
|
```
|
|
/dev/data_2tb/ISO /mnt/ISO ext4 defaults 0 2
|
|
```
|