This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
ubuntu:resizeiscsilvmdisk [2020/01/30 14:27] tschulz created |
ubuntu:resizeiscsilvmdisk [2020/01/30 14:43] tschulz [Proxmox Shell] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Proxmox 5 Resize LVM Disk from FreeBSD CTL iSCSI ====== | + | ====== Proxmox 5 Grow LVM Disk from FreeBSD CTL iSCSI ====== |
+ | ===== On FreeBSD CTL Server ===== | ||
+ | - Add lun to an iscsi Target and set size<code>lun 2 { | ||
+ | path /volX/diskimages/diskname.img | ||
+ | size 500G | ||
+ | }</code> | ||
+ | - touch the new diskimage<code>touch /volX/diskimages/diskname.img</code> | ||
+ | - restart ctld<code>service ctld restart</code> | ||
+ | |||
+ | ===== On Proxmox Server ===== | ||
+ | ==== Proxmox Shell ==== | ||
+ | |||
+ | - Reload iSCSI luns - needed after adding a target or lun of a target<code>iscsiadm -m node -R</code> | ||
+ | - List Volume Group names<code>vgdisplay | grep "VG Name"</code> | ||
+ | - Extend Volume Group<code>vgextend {VG Name} {Phyical Disk}</code> | ||
+ | <WRAP center round important 60%> | ||
+ | It might be tempting to extend the logical volume from the shell, but with Proxmox is much eaiser to work with if that is done from the Web GUI. | ||
+ | </WRAP> | ||
+ | |||
+ | |||
+ | |||
+ | ==== Web GUI ==== | ||
+ | - Go to VM | ||
+ | - Then "Hardware" | ||
+ | - Select "Hard Disk" | ||
+ | - Click on "Resize Disk" | ||
+ | {{:ubuntu:growdisk_proxmox.png?400|}} | ||