LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 08-30-2011, 05:48 PM   #1
Milamber75
LQ Newbie
 
Registered: Aug 2011
Distribution: Fedora
Posts: 2

Rep: Reputation: Disabled
Can stride be removed from ext4?


Hi!

So I'm playing around with a LVM over RAID0 setup using mdadm. I created a throw-away ext4 filesystem, pvmoved it to the RAID0, then tuned it with a stride size of 8. (My rationale was that I had chosen a 32k chunk size, and 32/4 = 8. Not rocket science by any means.) However, before I start moving filesystems I care about onto the PV that is sitting on the RAID0 and permanently changing their attributes, I want to know that I can move them back. That means I want to be able to tell the filesystem that it no longer needs a stride. But try as I might, I've not been able to remove the stride extended option from the filesystem. I've tried several commands, including:

Code:
sudo tune2fs -E stride=0 /dev/notimportantforexample
tune2fs 1.41.12 (17-May-2010)
Invalid RAID stride: 0

Bad options specified.

Extended options are separated by commas, and may take an argument which
	is set off by an equals ('=') sign.

Valid extended options are:
	stride=<RAID per-disk chunk size in blocks>
	stripe_width=<RAID stride*data disks in blocks>
	hash_alg=<hash algorithm>
	test_fs
	^test_fs
Is it even possible to remove this extended option from a filesystem?

Thanks in advance.
 
Old 08-30-2011, 06:16 PM   #2
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Raid0 lives of stride so stride=0 does not make sense. Just move it of the raid0-lvm and it should leave the stride behind. (Can't put it any better)
 
Old 08-30-2011, 06:34 PM   #3
Milamber75
LQ Newbie
 
Registered: Aug 2011
Distribution: Fedora
Posts: 2

Original Poster
Rep: Reputation: Disabled
Tried what you said. I unmounted it, pvmoved it on to a PV that's not on RAID, then remounted. It didn't work. Here's the result.

Code:
sudo tune2fs -l /dev/dontworryaboutit | grep RAID
RAID stride:              8
 
Old 09-05-2011, 12:28 AM   #4
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Maybe removing the stride now works?

Also if you just want to make sure that the filesystem is still working on non-raid0 volume I would check that out and if it does do not care about the stride settings of tune2fs. I guess it would just be ignored when the filesystem is not in/on a raid.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it safe to format USB flash to ext4 or ext4? joham34 Linux - Newbie 2 01-08-2011 11:58 AM
RAID, stride, and stripe-size, oh my! digdogger Linux - Hardware 2 11-26-2010 04:49 PM
Removed accidently removed panel at Suse 11.1? alte_mann SUSE / openSUSE 6 01-29-2009 04:19 AM
LXer: IBM Hits Its Stride in Unix Server Race LXer Syndicated Linux News 0 10-11-2008 10:20 AM
Ext4 aukuntin Linux - General 1 09-16-2008 09:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 02:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration