proxmox:add_storage_drives:zfs_pools
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
proxmox:add_storage_drives:zfs_pools [2021/06/04 00:50] – peter | proxmox:add_storage_drives:zfs_pools [2021/06/19 11:25] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Proxmox - Add Storage Drives - ZFS Pools ====== | ||
- | |||
- | It is recommended by Proxmox to use ZFS Pools for Storing your VMs. | ||
- | |||
- | ZFS gives you more performance and Redundancy. | ||
- | |||
- | ---- | ||
- | |||
- | ===== List Drives ===== | ||
- | |||
- | <code bash> | ||
- | ls / | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== Create a pool ===== | ||
- | |||
- | <code bash> | ||
- | zpool create -f -m < | ||
- | </ | ||
- | |||
- | returns: | ||
- | |||
- | <WRAP info> | ||
- | **NOTE: | ||
- | |||
- | * **create**: subcommand to create the pool. | ||
- | * **-f**: Force creating the pool to bypass the “EFI label error”. | ||
- | * **-m**: The mount point of the pool. If this is not specified, then the pool will be mounted to root as /pool. | ||
- | * **pool**: This is the name of the pool. | ||
- | * **type**: mirror, raidz, raidz2, raidz3. If omitted, the default type is a stripe or raid 0. | ||
- | * **ids**: The names of the drives/ | ||
- | |||
- | Example: | ||
- | |||
- | <code bash> | ||
- | zpool create -f -m / | ||
- | </ | ||
- | |||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== Check the pool ===== | ||
- | |||
- | <code bash> | ||
- | zpool list | ||
- | zpool list -v | ||
- | zpool iostat | ||
- | zpool iostat -v | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== Check Proxmox Storage Manager to Know it exists ===== | ||
- | |||
- | <code bash> | ||
- | pvesm zfsscan | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== Configure the ZFS Pool ===== | ||
- | |||
- | <code bash> | ||
- | zfs create zstorage/ | ||
- | zsf create zstorage/ | ||
- | zsf create zstorage/ | ||
- | zsf create zstorage/ | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== Set quota ===== | ||
- | |||
- | <code bash> | ||
- | zfs set quota=1000G zstorage/ | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== Check ===== | ||
- | |||
- | <code bash> | ||
- | zfs list | ||
- | zpool status | ||
- | zpool iostat -v | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | Navigate to **Datacenter -> Storage -> Add -> Directory -> zstorage/ | ||
- | |||
- | <WRAP important> | ||
- | **IMPORTANT: | ||
- | </ | ||
- | |||
- | |||
- | Navigate to **Directory -> Add -> ZFS -> Id: vmstorage -> ZFS Pool: / | ||
- | |||
- | |||
- | ---- | ||
- | |||
proxmox/add_storage_drives/zfs_pools.1622767812.txt.gz · Last modified: 2021/06/04 00:50 by peter