I have a Volume Group which consist two physical volume of size 10TB each SSD & NLSAS (yes one very slow and other very fast) so total 20TB.
- I created Volume backupvg with the 10TB SSD & formatted the lv with (ext4) (PV0)
- While formatting Nlsas (ext4) (it consisted some previous data) I had too many problem with related infrastructure and do not want to do it again . Just imagine a company all infra is down for 24hrs during the format.
- After formatting i added the Physical volume NL-SAS 10TB to the VOL GROUP backupvg (PV1)
- Now when i tried to resize this LV i hit the limit of ext4 32bit that is 16TB max. So only resize2fs /dev/backupvg/backuplv01 16777216M worked
- After some research about the solution and replicated the same on differnet infra and found that it will again create issue such as number 2 (SLOW NL-SAS & infra affection) So thought of not to convert to 64bit.
Now my only option is to add additional 6.xxTB SSD which is max i got and transfer the PE to it from the NLSAS and remove the NLSAS from the LV & VOLUME GROUP and convert the existing to XFS (after some time as i do not want to format number 2).
Now i want to know how will i know how much ACTUAL data is used by the NLSAS and how much by the SSD in the LV/VG which i think is giving issue due to 32bit.
- The 16tb is almost 98% full
pvdisplay -m
--- Physical volume ---
PV Name /dev/mapper/SSD1
VG Name backupvg
PV Size <10.00 TiB / not usable 2.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 2621439
Free PE 0
Allocated PE 2621439
--- Physical Segments ---
Physical extent 0 to 2621438:
Logical volume /dev/backupvg/backuplv01
Logical extents 0 to 2621438
--- Physical volume ---
PV Name /dev/mapper/NLSAS1
VG Name backupvg
PV Size <10.00 TiB / not usable 2.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 2621439
Free PE 0
Allocated PE 2621439
--- Physical Segments ---
Physical extent 0 to 2621438:
Logical volume /dev/backupvg/backuplv01
Logical extents 2621439 to 5242877
vgdisplay backupvg
--- Volume group ---
VG Name backupvg
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 4
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 1
Max PV 0
Cur PV 2
Act PV 2
VG Size <20.00 TiB
PE Size 4.00 MiB
Total PE 5242878
Alloc PE / Size 5242878 / <20.00 TiB
Free PE / Size 0 / 0
lvdisplay /dev/backupvg/backuplv01
--- Logical volume ---
LV Path /dev/backupvg/backuplv01
LV Name backuplv01
VG Name backupvg
LV Write Access read/write
LV Status available
# open 1
LV Size <20.00 TiB
Current LE 5242878
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:57
Kindly suggest how to break the limit of 16TB but not format/convert NLSAS to 64bit. And how to check which PV is used 6TB and which is used full 10TB. If PV NLSAS is used 6TB and 4tb is not used than i can attach 6tb ssd lun than how to proceed with the movement from PV NLSAS 6tb data to SSD 6TB DATA
update As requested
pvdisplay
--- Physical volume ---
PV Name /dev/mapper/LUN_10TB_SSD1
VG Name backupvg
PV Size <10.00 TiB / not usable 2.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 2621439
Free PE 0
Allocated PE 2621439
PV UUID OjUFfu-*removed*
--- Physical volume ---
PV Name /dev/mapper/LUN_10TB_NLSAS1
VG Name backupvg
PV Size <10.00 TiB / not usable 2.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 2621439
Free PE 0
Allocated PE 2621439
PV UUID 57YeFo-*removed*
vgdisplay
--- Volume group ---
VG Name backupvg
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 4
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 1
Max PV 0
Cur PV 2
Act PV 2
VG Size <20.00 TiB
PE Size 4.00 MiB
Total PE 5242878
Alloc PE / Size 5242878 / <20.00 TiB
Free PE / Size 0 / 0
VG UUID 0m9T8d-bSa7-*removed*
lvdisplay
--- Logical volume ---
LV Path /dev/backupvg/backuplv01
LV Name backuplv01
VG Name backupvg
LV UUID DT0rXQ-*removed*
LV Write Access read/write
LV Creation host, time hostnameremoved, 2020-02-01 22:02:51 +0400
LV Status available
# open 1
LV Size <20.00 TiB
Current LE 5242878
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:57