Cannot expand volume when adding new disk to RAID5

Questions about SNMP, Power, System, Logs, disk, & RAID.
Post Reply
nimbus
Starting out
Posts: 10
Joined: Tue Mar 03, 2009 12:09 am

Cannot expand volume when adding new disk to RAID5

Post by nimbus »

Hi,

System Details:
QNAP TS-853 Pro (8GB ram)
Firmware: 4.2.0 (2016/01/19)
5x WD RED 3TB (RAID5 > 1 Storage Pool > 1 Volume)

Until recently I was running with 4x 3TB WD RED drives. I recently purchased an additional drive (exactly the same: 3TB WD RED). I installed the drive. I added it to the RAID5 set and expanded the capacity of the storage pool. It went from ~8TB to ~10TB.

In QTS under Storage Manager > Storage Space I can see my storage pool with capacity of 10.88TB. Expanding that node reveals my one volume. This volume is listed with a capacity of 8.08TB. When I click 'Manage' for that volume it shows details for that volume, however the 'Expand Volume' button is greyed out.
Screen Shot 2016-01-30 at 13.54.17.png
How do I allocate the new space available to the volume?

Cheers for any help!
You do not have the required permissions to view the files attached to this post.
QNAP TS-853-PRO-8G w/4x 3TB WD RED (so far)
User avatar
MrVideo
Experience counts
Posts: 4742
Joined: Fri May 03, 2013 2:26 pm

Re: Cannot expand volume when adding new disk to RAID5

Post by MrVideo »

With the potential of using 8 drives in your NAS, you should be using RAID6. The potential for having two drives to go bad is too risky for RAID5.

Run the following to resize the RAID:

Code: Select all

device=md1

/etc/init.d/services.sh stop
/etc/init.d/opentftp.sh stop
/etc/init.d/Qthttpd.sh stop
/etc/init.d/rsnap.sh stop

umount /dev/$device

e2fsck -f -v -C 0 /dev/$device

tune2fs -O ^has_journal /dev/$device

mdadm --grow /dev/$device --size max
resize2fs -p /dev/$device

e2fsck -f -v -C 0 /dev/$device

tune2fs -j /dev/$device

reboot
Change md1 to match your configuration. If you don't know what it is, do the following to see what it is:

Code: Select all

cat /proc/mdstat
Do a group of commands at a time. A group is separated by a blank line.
QTS MANUALS
Submit QNAP Support Ticket - QNAP Tutorials, FAQs, Downloads, Wiki - Product Support Status - Moogle's QNAP FAQ help V2
Asking a question, include the following
(Thanks to Toxic17)
QNAP md_checker nasreport (release 20210309)
===============================
Model: TS-869L -- RAM: 3G -- FW: QTS 4.1.4 Build 20150522 (used for data storage)
WD60EFRX-68L0BN1(x1)/68MYMN1(x7) Red HDDs -- RAID6: 8x6TB -- Cold spare: 1x6TB
Entware
===============================
Model: TS-451A -- RAM: 2G -- FW: QTS 4.5.2 Build 20210202 (used as a video server)
WL3000GSA6472(x3) White label NAS HDDs -- RAID5: 3x3TB
Entware -- MyKodi 17.3 (default is Kodi 16)
===============================
My 2017 Total Solar Eclipse Photos | My 2019 N. Ireland Game of Thrones tour
nimbus
Starting out
Posts: 10
Joined: Tue Mar 03, 2009 12:09 am

Re: Cannot expand volume when adding new disk to RAID5

Post by nimbus »

Hey thanks for the answer. I will give it a shot and also look to migrate to RAID6 when I get more drives.
QNAP TS-853-PRO-8G w/4x 3TB WD RED (so far)
nimbus
Starting out
Posts: 10
Joined: Tue Mar 03, 2009 12:09 am

Re: Cannot expand volume when adding new disk to RAID5

Post by nimbus »

By the way - why can't I do this in the web gui??
QNAP TS-853-PRO-8G w/4x 3TB WD RED (so far)
User avatar
MrVideo
Experience counts
Posts: 4742
Joined: Fri May 03, 2013 2:26 pm

Re: Cannot expand volume when adding new disk to RAID5

Post by MrVideo »

nimbus wrote:By the way - why can't I do this in the web gui??
Good question. I have no idea why the Expand Volume button is greyed out.
QTS MANUALS
Submit QNAP Support Ticket - QNAP Tutorials, FAQs, Downloads, Wiki - Product Support Status - Moogle's QNAP FAQ help V2
Asking a question, include the following
(Thanks to Toxic17)
QNAP md_checker nasreport (release 20210309)
===============================
Model: TS-869L -- RAM: 3G -- FW: QTS 4.1.4 Build 20150522 (used for data storage)
WD60EFRX-68L0BN1(x1)/68MYMN1(x7) Red HDDs -- RAID6: 8x6TB -- Cold spare: 1x6TB
Entware
===============================
Model: TS-451A -- RAM: 2G -- FW: QTS 4.5.2 Build 20210202 (used as a video server)
WL3000GSA6472(x3) White label NAS HDDs -- RAID5: 3x3TB
Entware -- MyKodi 17.3 (default is Kodi 16)
===============================
My 2017 Total Solar Eclipse Photos | My 2019 N. Ireland Game of Thrones tour
nimbus
Starting out
Posts: 10
Joined: Tue Mar 03, 2009 12:09 am

Re: Cannot expand volume when adding new disk to RAID5

Post by nimbus »

I am now trying to do this again with another new disk... (I have migrated to RAID6)

Following your steps above I get as:

Code: Select all

e2fsck -f -v -C 0 /dev/$device
but receive an error:

Code: Select all

/dev/md1 is in use.
e2fsck: Cannot continue, aborting.
I am also getting an error (not found) when running

Code: Select all

/etc/init.d/rsnap.sh stop
I am now running firmware QTS 4.3.3.0361

Any suggestions?
QNAP TS-853-PRO-8G w/4x 3TB WD RED (so far)
User avatar
Don
Guru
Posts: 12289
Joined: Thu Jan 03, 2008 4:56 am
Location: Long Island, New York

Re: Cannot expand volume when adding new disk to RAID5

Post by Don »

Why are you not using the GUI?
Use the forum search feature before posting.

Use RAID and external backups. RAID will protect you from disk failure, keep your system running, and data accessible while the disk is replaced, and the RAID rebuilt. Backups will allow you to recover data that is lost or corrupted, or from system failure. One does not replace the other.

NAS: TVS-882BR | F/W: 5.0.1.2346 | 40GB | 2 x 1TB M.2 SATA RAID 1 (System/VMs) | 3 x 1TB M.2 NMVe QM2-4P-384A RAID 5 (cache) | 5 x 14TB Exos HDD RAID 6 (Data) | 1 x Blu-ray
NAS: TVS-h674 | F/W: 5.0.1.2376 | 16GB | 3 x 18TB RAID 5
Apps: DNSMasq, PLEX, iDrive, QVPN, QLMS, MP3fs, HBS3, Entware, DLstation, VS, +
nimbus
Starting out
Posts: 10
Joined: Tue Mar 03, 2009 12:09 am

Re: Cannot expand volume when adding new disk to RAID5

Post by nimbus »

The Expand Volume option is still greyed out for me
You do not have the required permissions to view the files attached to this post.
QNAP TS-853-PRO-8G w/4x 3TB WD RED (so far)
User avatar
Don
Guru
Posts: 12289
Joined: Thu Jan 03, 2008 4:56 am
Location: Long Island, New York

Re: Cannot expand volume when adding new disk to RAID5

Post by Don »

It looks like you need to do a file system check first.
Use the forum search feature before posting.

Use RAID and external backups. RAID will protect you from disk failure, keep your system running, and data accessible while the disk is replaced, and the RAID rebuilt. Backups will allow you to recover data that is lost or corrupted, or from system failure. One does not replace the other.

NAS: TVS-882BR | F/W: 5.0.1.2346 | 40GB | 2 x 1TB M.2 SATA RAID 1 (System/VMs) | 3 x 1TB M.2 NMVe QM2-4P-384A RAID 5 (cache) | 5 x 14TB Exos HDD RAID 6 (Data) | 1 x Blu-ray
NAS: TVS-h674 | F/W: 5.0.1.2376 | 16GB | 3 x 18TB RAID 5
Apps: DNSMasq, PLEX, iDrive, QVPN, QLMS, MP3fs, HBS3, Entware, DLstation, VS, +
nimbus
Starting out
Posts: 10
Joined: Tue Mar 03, 2009 12:09 am

Re: Cannot expand volume when adding new disk to RAID5

Post by nimbus »

That's what

Code: Select all

e2fsck -f -v -C 0 /dev/$device
does, isn't it?
That's the part that's not running.
QNAP TS-853-PRO-8G w/4x 3TB WD RED (so far)
User avatar
Don
Guru
Posts: 12289
Joined: Thu Jan 03, 2008 4:56 am
Location: Long Island, New York

Re: Cannot expand volume when adding new disk to RAID5

Post by Don »

Is it not working from the GUI?
Use the forum search feature before posting.

Use RAID and external backups. RAID will protect you from disk failure, keep your system running, and data accessible while the disk is replaced, and the RAID rebuilt. Backups will allow you to recover data that is lost or corrupted, or from system failure. One does not replace the other.

NAS: TVS-882BR | F/W: 5.0.1.2346 | 40GB | 2 x 1TB M.2 SATA RAID 1 (System/VMs) | 3 x 1TB M.2 NMVe QM2-4P-384A RAID 5 (cache) | 5 x 14TB Exos HDD RAID 6 (Data) | 1 x Blu-ray
NAS: TVS-h674 | F/W: 5.0.1.2376 | 16GB | 3 x 18TB RAID 5
Apps: DNSMasq, PLEX, iDrive, QVPN, QLMS, MP3fs, HBS3, Entware, DLstation, VS, +
nimbus
Starting out
Posts: 10
Joined: Tue Mar 03, 2009 12:09 am

Re: Cannot expand volume when adding new disk to RAID5

Post by nimbus »

Ran the following from terminal. Fixed a bunch of issues.

Code: Select all

e2fsck -f -v -C 0 /dev/mapper/cachedev1
I also updated to QTS 4.3.3.0378 which just happened to become available.

One of these actions resolved the problem and I have been able to click on Expand Volume in the GUI.
QNAP TS-853-PRO-8G w/4x 3TB WD RED (so far)
Post Reply

Return to “System & Disk Volume Management”