Proxmox
Source: https://pve.proxmox.com/wiki/Package_Repositories
Edit the repo list
nano /etc/apt/sources.list.d/pve-enterprise.list and make sure it looks like this
#deb https://enterprise.proxmox.com/debian/pve stretch pve-enterprise
Save and Exit.
Fill in your particular drive name/identifier/size where necessary.
dd if=/dev/zero of=/dev/sd<letter> sgdisk -N 1 /dev/sd<letter> pvcreate --metadatasize 250k -y -ff /dev/sd<letter><partition> vgcreate <name> /dev/sd<letter><partition> lvcreate -n <name> -V <size (M/G/T)> pve/<name> mkfs.ext4 /dev/pve/<name> -m 1 echo '/dev/pve/<name> /var/lib/<folder> ext4 defaults 0 0' >> /etc/fstab mkdir /var/lib/<folder> mount -a
dd if=/dev/zero of=/dev/sdb sgdisk -N 1 /dev/sdb pvcreate --metadatasize 250k -y -ff /dev/sdb1 vgcreate vmdata /dev/sdb1 lvcreate -n data2 -L <size> vmdata mkfs.ext4 /dev/vmdata/data2 -m 1 echo '/dev/vmdata/data2 /var/lib/vz2 ext4 defaults 0 0' >> /etc/fstab mkdir /var/lib/vz2 mount -a
From the WebUI add the new mount point's path to the storage and select the proper content type(s) of data that will be stored on the system.
Use this as an example.
Fill in your particular drive name/identifier/size where necessary.
dd if=/dev/zero of=/dev/sd<letter> sgdisk -Z /dev/sd<letter> sgdisk -N 1 /dev/sd<letter> mkfs.ext4 -L <personal label> /dev/sd<letter><partition> -m 1 echo '/dev/disk/by-label/<personal label> /mnt/<personal label> ext4 defaults 0 2' >> /etc/fstab mkdir /mnt/<personal label> mount -a
dd if=/dev/zero of=/dev/sdc sgdisk -Z /dev/sdc sgdisk -N 1 /dev/sdc mkfs.ext4 -L 4tb-ext-bu0 /dev/sdc1 -m 1 echo '/dev/disk/by-label/4tb-ext-bu0 /mnt/4tb-ext-bu0 ext4 defaults 0 2' >> /etc/fstab mkdir /mnt/4tb-ext-bu0 mount -a
From the WebUI add the new mount point's path to the storage and select the proper content type(s) of data that will be stored on the system.
Use this as an example.
Use the instructions above but do not add the mount point via the WebUI since it is not necessary. This is done to the internal USB drive.
Enter the following in your crontab entry using:
crontab -e
1 0 * * * /usr/bin/rsync -a --progress /etc/pve /mnt/8gb-int-bu0/
dd if=/dev/zero of=/dev/sdd sgdisk -Z /dev/sdd sgdisk -N 1 /dev/sdd mkfs.ext4 -L 8gb-int-bu0 /dev/sdd1 -m 1 echo '/dev/disk/by-label/8gb-int-bu0 /mnt/8gb-int-bu0 ext4 defaults 0 2' >> /etc/fstab mkdir /mnt/8gb-int-bu0 mount -a
Source: https://help.ubuntu.com/lts/serverguide/iscsi-initiator.html.en
edit /etc/iscsi/iscsid.conf add or uncomment
node.startup = automatic
Run the following command
iscsiadm -m discovery -t st -p <target server IP> iscsiadm -m node --login fdisk -l
Use find the proper device and partition it. Example of the iSCSI LUN shows as a "sda" and "mapper" device.
Disk /dev/sdd: 17.5 TiB, 19178102718464 bytes, 37457231872 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/mapper/36001405e1a17391d2e68d418cd8e26d9: 17.5 TiB, 19178102718464 bytes, 37457231872 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes
Partition disk and apply a filesystem
sgdisk -Z /dev/sd<letter> sgdisk -N 1 /dev/sd<letter>
Mount qcow2 image as drive/device for partitioning: https://xliska.wordpress.com/2012/09/13/partitioning-qemukvm-disk-images-using-qcow2-format/