[SOLVED] Resize shared FC LUN without having to reboot

Kordian

Well-Known Member
Mar 31, 2018
30
0
46
52
Hello,
I have a proxmox cluster and a shared FC LUN. I am trying to extend currently used storage, following this:

Rescan should be done on ALL nodes:
pvs -o +tags
multipath -ll LUN_name
echo 1 >/sys/block/sdX/device/rescan
echo 1 >/sys/block/sdY/device/rescan
echo 1 >/sys/block/sdZ/device/rescan
echo 1 >/sys/block/sdQ/device/rescan
multipath -r
multipath -ll LUN_name

Then from any node you can resize the PV:
pvresize /dev/mapper/LUN_name

However by pvresize I am getting the "device is partitioned" error.
I would like to have a storage, that I can freely expand in the future without having to restart the whole cluster.
Thank you in advance for a hint how to achieve it (if at all possible).
Regards
 
Looks like for every lun you created in your FC SAN you made a label and partiton on before you pvcreate'd it as a lvm device which isn't nessesary.
Take a look with parted/gparted/gdisk/... on the resized lun and resize partition on first now, following then your pvresize cmd.
 
Thank you. So if I do not create any label nor "partition" on FC SAN, this should then go without problems?
 
Yes. All what isn't there cannot fail, don't need config, eats no performance, make all easier to understand and support.
 
Last edited:
Thank you for the help.
In my case I think it was the problem how proxmox and the storage communicate and cooperate.
But using parted solved the issue and now I can freely expand the resources.
 
In my case I think it was the problem how proxmox and the storage communicate and cooperate.
But using parted solved the issue and now I can freely expand the resources.
This is a bit like blaming your house foundation on the fact that you had to break a wall to expand a room on the second floor.
Nevertheless, I am glad it all worked out for you.

Cheers


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
  • Like
Reactions: waltar