[HOWTO] TS-439 ext3->ext4 filesystem upgrade

Introduce yourself to us and other members here, or share your own product reviews, suggestions, and tips and tricks of using QNAP products.
P3R
Guru
Posts: 13190
Joined: Sat Dec 29, 2007 1:39 am
Location: Stockholm, Sweden (UTC+01:00)

Re: [HOWTO] TS-439 ext3->ext4 filesystem upgrade

Post by P3R »

jojje2 wrote:So I'll have to buy some TB-disks for backupping the NAS it seems, and...
Yes, take it as a sign.

You always need backup of all vital data, not only when trying to change file systems.
RAID have never ever been a replacement for backups. Without backups on a different system (preferably placed at another site), you will eventually lose data!

A non-RAID configuration (including RAID 0, which isn't really RAID) with a backup on a separate media protects your data far better than any RAID-volume without backup.

All data storage consists of both the primary storage and the backups. It's your money and your data, spend the storage budget wisely or pay with your data!
jojje2
New here
Posts: 4
Joined: Sat May 14, 2011 4:57 am

Re: [HOWTO] TS-439 ext3->ext4 filesystem upgrade

Post by jojje2 »

Sigh.. why is it that there's always someone who assumes the storage device under discussion is the only instance holding the data and feel the need to point out the importance of backup ?
In my case I use the NAS as *the* backup. The managed data resides on other systems.

Perhaps it was my phrasing in this instance. I probably should have used the phrase "So I'll have to buy some TB-disks for temporarily moving the data over to during the disk replacement, in order to minimize downtime".

Anyway, as you seem very keen on my backup data well being, I now have "data center redundancy" in place for my "home stuff". 2 x TS 439 in two different geographical locations with nightly rsync between them, in case of a disaster, natural or otherwise. Has worked beautifully. Though I woe the day the master device breaks and I have to sync 5TB back over a measly 10MBit line :(
I'll probably have to do the synching on-site, at the backup site with a twisted CAT-cable to get 1Gbit speed, or do disk-by-disk cloning at SATA speed. Else restore will take forever (2 months).
P3R
Guru
Posts: 13190
Joined: Sat Dec 29, 2007 1:39 am
Location: Stockholm, Sweden (UTC+01:00)

Re: [HOWTO] TS-439 ext3->ext4 filesystem upgrade

Post by P3R »

jojje2 wrote:Sigh.. why is it that there's always someone who assumes the storage device under discussion is the only instance holding the data and feel the need to point out the importance of backup ?
Maybe because that's the reality for a majority in this community? At least that's what I believe when I daily see users weeping here about how they "lost the data that they trusted to the NAS".

Since this a public forum and not a personal conversation, maybe even somebody else read my comment and was helped by it? Anyway, since you were obviously so disturbed by my comment I'm very sorry for it.
RAID have never ever been a replacement for backups. Without backups on a different system (preferably placed at another site), you will eventually lose data!

A non-RAID configuration (including RAID 0, which isn't really RAID) with a backup on a separate media protects your data far better than any RAID-volume without backup.

All data storage consists of both the primary storage and the backups. It's your money and your data, spend the storage budget wisely or pay with your data!
drdebian
Starting out
Posts: 24
Joined: Wed Dec 31, 2008 6:01 pm
Contact:

Re: [HOWTO] TS-439 ext3->ext4 filesystem upgrade

Post by drdebian »

Just wanted to say that the procedure has worked perfectly for me on my TS-509!

It might help others to note that a "/etc/init.d/services.sh stop" is sufficient to stop everything that might interfere with the conversion.

In addition, after the conversion (and installing e2fsprogs through ipkg) a "chattr -RV +e /share/MD0_DATA" will ensure that all files in fact are using extents and don't remain in ext3-compatibility-mode. :)

EDIT: It appears that converting a 4 year old ext3 filesystem to ext4 really doesn't yield the best results. For one thing, the fragmentation remained so high that performance was still really bad. In addition, the inode size remained at 128, where ext4 should actually have 256 for all the new features. All in all, I decided to back up the entire thing to an external harddisk and reformat to "real" ext4. Now the performance is great and I hope that the ext4 extents will keep it this way. :)
tttran123
New here
Posts: 6
Joined: Mon Sep 17, 2018 12:41 am

Re: [HOWTO] TS-439 ext3->ext4 filesystem upgrade

Post by tttran123 »

I ran into an issue of EXT3 on my TS-419p version 4.3.3.0663. The issue is related to the number of subfolders a folder can have; EXT3 is limited to basically 32K. (See this article https://blog.nexcess.net/2012/04/27/mkd ... ow-to-fix/). I need a much larger number of subfolders, i.e. 40K. I believe EXT4 supports 64K subfolders in a folder.

So if I use this upgrade procedure as stated in this [HOWTO} discussion, is the limitation of 32K be extended to 64K subfolders? If this method does not, I will just have to backup the data and reformat the drive to EXT4.
User avatar
dolbyman
Guru
Posts: 35005
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: [HOWTO] TS-439 ext3->ext4 filesystem upgrade

Post by dolbyman »

better make sure that you have recent backups at all times .. even more so if you want to go through with this 9 year(!!) old procedure (don't necorpost next time and rather open a new thread) for a different device class than yours (CAT1 x86 vs CAT1 ARM)
Post Reply

Return to “Users' Corner”