Extending existing volume

RAID, Volume, storage pool, hard drive, USB, SSD cache and iSCSI LUN
Locked
User avatar
maaeel
Posts: 14
Joined: 04 May 2022, 04:17

Extending existing volume

Post by maaeel »

I got new disk for my F4-210 NAS, using regular raid 5. Slotted in, extended storage pool, waited long hours to sync, then finally extended the volume but... it seems that resize2fs was not run (and resize2fs throws "Permission denied to resize filesystem"), free space "disappeared" but the volume still is reporting 95% full. Storage pool is 10.9TB, but volume still is 7.2TB. How do I resize the volume? Is it safe to use standard linux procedure to unmount the volume, run fsck then extend, mount volume?

root@terra:~# df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 512.0K 0 512.0K 0% /dev
/dev/mapper/vg0-lv0 7.2T 6.9T 314.3G 96% /mnt/md0
root@terra:~# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
lv0 vg0 -wi-ao---- 10.90t
root@terra:~# vgs
VG #PV #LV #SN Attr VSize VFree
vg0 1 1 0 wz--n- 10.90t 4.00m
root@terra:~# lsblk -f -m | grep ext4
`-sda1 ext4 UTOSBOOT-X86-S64 b6774192-d16a-4cbe-8c7e-2c6876477aa5 /mnt/bootdev `-sda1 7.2G root root brw-r--r--
|-sdb1 ext4 UTOSDISK-X86-S64 ab5371a4-3f8f-44bb-8975-f4dd368cc56e |-sdb1 285M root root brw-r--r--
| `-md9 ext4 b4002d83-cf00-4429-8dfd-f5cf50f81849 / | `-md9 2.9G root root brw-r--r--
`-vg0-lv0 ext4 TOS_VOLUME_2022- 51e92eaa-c6eb-11ec-afd7-6cbfb50246db /mnt/md0 `-vg0-lv0 10.9T root root brw-------
|-sdc1 ext4 UTOSDISK-X86-S64 622c0171-78be-4673-85e8-df00241d69f4 |-sdc1 285M root root brw-r--r--
| `-md9 ext4 b4002d83-cf00-4429-8dfd-f5cf50f81849 / | `-md9 2.9G root root brw-r--r--
`-vg0-lv0 ext4 TOS_VOLUME_2022- 51e92eaa-c6eb-11ec-afd7-6cbfb50246db /mnt/md0 `-vg0-lv0 10.9T root root brw-------
|-sdd1 ext4 UTOSDISK-X86-S64 1c201e03-5271-403f-9457-c3e36819f075 |-sdd1 285M root root brw-r--r--
| `-md9 ext4 b4002d83-cf00-4429-8dfd-f5cf50f81849 / | `-md9 2.9G root root brw-r--r--
`-vg0-lv0 ext4 TOS_VOLUME_2022- 51e92eaa-c6eb-11ec-afd7-6cbfb50246db /mnt/md0 `-vg0-lv0 10.9T root root brw-------
|-sde1 ext4 UTOSDISK-X86-S64 832e6609-655d-4503-9fdd-6b10fb70912d |-sde1 285M root root brw-r--r--
| `-md9 ext4 b4002d83-cf00-4429-8dfd-f5cf50f81849 / | `-md9 2.9G root root brw-r--r--
`-vg0-lv0 ext4 TOS_VOLUME_2022- 51e92eaa-c6eb-11ec-afd7-6cbfb50246db /mnt/md0 `-vg0-lv0 10.9T root root brw-------
root@terra:~#
User avatar
TMzethar
TM Support
Posts: 2827
Joined: 27 Oct 2020, 16:43

Re: Extending existing volume

Post by TMzethar »

Before performing resize2fs /dev/mapper/vg0-lv0, you need to unmount the volume first.
The prompt about "no permission" may be due to a file system error.
You can consider to check and fix possible file systems errors. Then try again.
viewtopic.php?f=79&t=2575
To contact our team, please send email to following addresses, remember to replace (at) with @:
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
Locked

Return to “Storage”