Wiki source code of Storage
Version 2.1 by Kevin Wiki on 2024/08/26 21:40
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
1.1 | 1 | Adding external high speed VM storage to proxmox. Find the new drive and erase it and then format using parted: |
| 2 | |||
| 3 | ```bash | ||
| 4 | # format drive and create partition | ||
| 5 | parted /dev/nvme0n1 mklabel gpt | ||
| 6 | parted /dev/nvme0n1 mkpart primary ext4 0% 100% | ||
| 7 | |||
| 8 | # create a ext4 filesystem | ||
| 9 | mkfs.ext4 /dev/nvme0n1p1 | ||
| 10 | |||
| 11 | # add to fstab | ||
| 12 | printf "\n/dev/nvme0n1p1 /mnt/vmstorage ext4 defaults 0 0" >> /etc/fstab | ||
| |
2.1 | 13 | |
| 14 | # mount drives defined in fstab | ||
| 15 | mount | ||
| |
1.1 | 16 | ``` |