LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Extended LVM on iSCSI won't write to extended storage (https://www.linuxquestions.org/questions/debian-26/extended-lvm-on-iscsi-wont-write-to-extended-storage-4175734740/)

mschaffner9239 03-10-2024 12:07 AM

Extended LVM on iSCSI won't write to extended storage
 
Debian 12 -

Originally setup an iSCSI mount to 4 LUNS at 5TB for each LUN. The 4 LUNS have been formatted as GPT and then LVM created to make those 4 LUNs as one Logical Volume. When that storage was getting close to full, allocated 2 additional LUNS at 5TB for each. Partitioned each of the new LUNs that same and added them into the Logical Volume. Ran xfs_growfs to expand the file system with the additional storage. Now when writing to this LVM when the space used hits the 20TB of the original 4 LUNs it stops writing to the LVM. I'm sure it has something to do with the XFS filesystem, but unable to run xfs_repair as it runs out of memory before it completes, and I'm unable to allocate any additional memory to the system.

Any suggestions on how to get the system to write to the additional storage that has been added to the LVM?

syg00 03-10-2024 01:07 AM

Quote:

Originally Posted by mschaffner9239 (Post 6488705)
Partitioned each of the new LUNs that same and added them into the Logical Volume.

Explain in detail how you did this.
Quote:

I'm sure it has something to do with the XFS filesystem
Much more likely to have something to do with the carbon based lifeform issuing the commands.

Short solution is that you need to pvcreate first then add them to the vg before fiddling with the vg or filesystem.

onebuck 03-10-2024 06:56 AM

Moderator Response
 
Moved: This thread is more suitable in <Debian> and has been moved accordingly to help your thread/question get the exposure it deserves.

mschaffner9239 03-10-2024 11:07 AM

Yes, each of the LUNs was PVCREATE so that they can be added to the VG and then the LV. But the steps were as follows:

1) Create the LUNs on the Synology NAS
2) Connect to the NAS via iSCSI to see each of the LUNs.
3) Run Gdisk to partion each of the 2 new LUNs, since they are 5TB LUNs, fdisk doesn't work with them.
4) Run PVCREATE on each of the partitions /dev/sd(x)1
5) Run VGEXTEND <VG> /dev/sd(x)1
6) Run LVEXTEND <LV> -l +100%FREE
7) Run XFS_GROWFS to expand the filesystem.
8) df -h shows that the new filesystem is 30TB in size.
9) Start running program that writes data to the disk, when it hits the original 20TB size of the LV, watch it get an I/O error and crash the program.

Been attempting do run XFS_REPAIR to fix the filesystem, but it runs out of memory before it can complete.


All times are GMT -5. The time now is 07:21 PM.