LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-10-2024, 12:07 AM   #1
mschaffner9239
LQ Newbie
 
Registered: Mar 2024
Posts: 2

Rep: Reputation: 0
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?
 
Old 03-10-2024, 01:07 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,129

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Quote:
Originally Posted by mschaffner9239 View Post
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.
 
Old 03-10-2024, 06:56 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
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.
 
Old 03-10-2024, 11:07 AM   #4
mschaffner9239
LQ Newbie
 
Registered: Mar 2024
Posts: 2

Original Poster
Rep: Reputation: 0
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to grow an LV on LVM2 on KVM instance using storage on an array via iSCSI +LVM donty Linux - Server 2 05-09-2014 02:44 PM
[SOLVED] pacemaker - iscsi: how to set up iscsi targets/logical units? eantoranz Linux - Server 9 01-02-2013 08:38 AM
problem to access iscsi storage with lvm dougbourne Linux - Server 0 07-21-2008 01:22 PM
changes on other iscsi nodes attached to an ext3 iscsi target not being seen sldahlin Linux - Server 1 06-07-2008 02:02 AM
LVM and multiple iSCSI disks performance of LVM xxx_anuj_xxx Linux - Server 4 05-01-2008 12:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration