The storage pool has been expanded, but the volume cannot be expanded?
Posted: 27 Aug 2021, 12:26
Troubleshooting
Applicable model:All TNAS
Applicable version:TOS 4.1.x & TOS 4.2.x & TOS 5.x
Follow the instructions to resolve this issue:
1. login in ssh. How to log in to the SSH terminal?
2. Modifying Storage Settings
The following example is based on Storage Pool1,Volume1(md0, vg0, lv0)
Your "Storage Pool, Volume" may be different.
Please use the following instructions to confirm:
Let's start modifying the storage Settings. Press Enter after entering each command:
TOS 4.1.x & TOS 4.2.x:
TOS 5.x:
If the prompt "Target is busy", Please cancel the occupancy of the volume by the service processes, disable the SSD cache (if no SSD cache, please ignore it), and then execute the command above again.
TOS 4.1.x & TOS 4.2.x:
TOS 5.x:
Note: After running this command, SSH will disconnect automatically. Once disconnected, please log in to the NAS via SSH again.
3. Adjust the file system size
You need to know the file system of your volume first (btrfs/ext4):
Select commands to execute based on the type of file system you have learned previously:
btrfs
You should see the storage value slowly increase. After a few ten seconds, the process will be finished.
ext4
You should see the storage value slowly increase. After a few ten seconds, the process will be finished. Then execure the conmmand to mount:
Applicable model:All TNAS
Applicable version:TOS 4.1.x & TOS 4.2.x & TOS 5.x
Follow the instructions to resolve this issue:
1. login in ssh. How to log in to the SSH terminal?
2. Modifying Storage Settings
The following example is based on Storage Pool1,Volume1(md0, vg0, lv0)
Your "Storage Pool, Volume" may be different.
Please use the following instructions to confirm:
Code: Select all
[root@TNAS-???? ~]# lsblk
TOS 4.1.x & TOS 4.2.x:
Code: Select all
[root@TNAS-???? ~]#cd /
[root@TNAS-???? ~]# mdadm --grow /dev/md0 --size=max
[root@TNAS-???? ~]# umount /mnt/md0
[root@TNAS-???? ~]# umount /home
[root@TNAS-???? ~]# vgchange -an vg0
[root@TNAS-???? ~]# pvresize /dev/md0
[root@TNAS-???? ~]# vgchange -ay vg0
[root@TNAS-???? ~]# lvextend -l +100%FREE /dev/vg0/lv0
Code: Select all
[root@TNAS-???? ~]#cd /
[root@TNAS-???? ~]# mdadm --grow /dev/md0 --size=max
[root@TNAS-???? ~]# umount /Volume1
[root@TNAS-???? ~]# umount /home
[root@TNAS-???? ~]# vgchange -an vg0
[root@TNAS-???? ~]# pvresize /dev/md0
[root@TNAS-???? ~]# vgchange -ay vg0
[root@TNAS-???? ~]# lvextend -l +100%FREE /dev/vg0/lv0
TOS 4.1.x & TOS 4.2.x:
Code: Select all
[root@TNAS-???? ~]# fuser -mk /mnt/md0
Code: Select all
[root@TNAS-???? ~]# fuser -mk /Volume1
3. Adjust the file system size
You need to know the file system of your volume first (btrfs/ext4):
Code: Select all
[root@TNAS-???? ~]# blkid /dev/vg0/lv0
btrfs
Code: Select all
[root@TNAS-???? ~]# /etc/tos/script/mntdata
[root@TNAS-???? ~]# btrfs filesystem resize max /mnt/md0
ext4
Code: Select all
[root@TNAS-???? ~]# resize2fs /dev/mapper/vg0-lv0
Code: Select all
[root@TNAS-???? ~]# /etc/tos/script/mntdata