* Re: [Jfs-discussion] md raid + jfs + jfs_fsck
2004-01-27 20:53 ` Christoph Hellwig
@ 2004-01-27 21:19 ` Florian Huber
2004-01-27 21:22 ` Christoph Hellwig
2004-01-27 21:47 ` Gene Heskett
` (2 subsequent siblings)
3 siblings, 1 reply; 16+ messages in thread
From: Florian Huber @ 2004-01-27 21:19 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: JFS-Discussion, Linux-Kernel
[-- Attachment #1: Type: text/plain, Size: 664 bytes --]
On Tue, 2004-01-27 at 21:53, Christoph Hellwig wrote:
> On Tue, Jan 27, 2004 at 02:43:05PM -0600, Dave Kleikamp wrote:
> Yes, it does. But JFS should get the right size from the gendisk anyway.
> Or did you create the raid with the filesystem already existant?
Yes, i did so.
> While that appears to work for a non-full ext2/ext3 filesystem it's not something you
> should do because it makes the filesystem internal bookkeeping wrong and
> you'll run into trouble with any filesystem sooner or later.
So, remove the raid, create a new raid "1" with one partiton and create
a jfs fs on top of it, copy all files and add the other disk to the
raid?
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: [Jfs-discussion] md raid + jfs + jfs_fsck
2004-01-27 21:19 ` Florian Huber
@ 2004-01-27 21:22 ` Christoph Hellwig
2004-01-27 23:39 ` Neil Brown
0 siblings, 1 reply; 16+ messages in thread
From: Christoph Hellwig @ 2004-01-27 21:22 UTC (permalink / raw)
To: Florian Huber; +Cc: JFS-Discussion, Linux-Kernel
On Tue, Jan 27, 2004 at 10:19:45PM +0100, Florian Huber wrote:
> So, remove the raid, create a new raid "1" with one partiton and create
> a jfs fs on top of it, copy all files and add the other disk to the
> raid?
You can't partition md devices (yet), but otherwise yes. I think you can
also create md device without the persistant superblock still, but it
always was a pain to maintain those.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [Jfs-discussion] md raid + jfs + jfs_fsck
2004-01-27 21:22 ` Christoph Hellwig
@ 2004-01-27 23:39 ` Neil Brown
0 siblings, 0 replies; 16+ messages in thread
From: Neil Brown @ 2004-01-27 23:39 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: Florian Huber, JFS-Discussion, Linux-Kernel
On Tuesday January 27, hch@infradead.org wrote:
>
> You can't partition md devices (yet), but otherwise yes. I think you can
> also create md device without the persistant superblock still, but it
> always was a pain to maintain those.
non-persistent superblock arrays only work for raid0 and linear
(i.e. not redundancy). RAID1 and RAID5 need a superblock.
NeilBrown
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [Jfs-discussion] md raid + jfs + jfs_fsck
2004-01-27 20:53 ` Christoph Hellwig
2004-01-27 21:19 ` Florian Huber
@ 2004-01-27 21:47 ` Gene Heskett
2004-01-28 2:47 ` Theodore Ts'o
2004-01-28 9:24 ` venom
3 siblings, 0 replies; 16+ messages in thread
From: Gene Heskett @ 2004-01-27 21:47 UTC (permalink / raw)
To: linux-kernel
On Tuesday 27 January 2004 15:53, Christoph Hellwig wrote:
>On Tue, Jan 27, 2004 at 02:43:05PM -0600, Dave Kleikamp wrote:
>> My guess is that software raid is stealing a few blocks from the
>> end of the partition,
>
>Yes, it does. But JFS should get the right size from the gendisk
> anyway. Or did you create the raid with the filesystem already
> existant? While that appears to work for a non-full ext2/ext3
> filesystem it's not something you should do because it makes the
> filesystem internal bookkeeping wrong and you'll run into trouble
> with any filesystem sooner or later.
>
I wonder if this discussion has anything to do with what we perceive
as an excruciatingly long resync time? Should the array be
reformatted after startup with a new mkreiserfs in the event thats
what we are running on a raid5?
If it exists, please point me to a good, maybe better than that which
comes with mdtools, discussion, web site or whatever please.
>-
>To unsubscribe from this list: send the line "unsubscribe
> linux-kernel" in the body of a message to majordomo@vger.kernel.org
>More majordomo info at http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at http://www.tux.org/lkml/
--
Cheers, Gene
"There are four boxes to be used in defense of liberty: soap,
ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
99.22% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com attornies please note, additions to this message
by Gene Heskett are:
Copyright 2004 by Maurice Eugene Heskett, all rights reserved.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [Jfs-discussion] md raid + jfs + jfs_fsck
2004-01-27 20:53 ` Christoph Hellwig
2004-01-27 21:19 ` Florian Huber
2004-01-27 21:47 ` Gene Heskett
@ 2004-01-28 2:47 ` Theodore Ts'o
2004-01-28 9:24 ` venom
3 siblings, 0 replies; 16+ messages in thread
From: Theodore Ts'o @ 2004-01-28 2:47 UTC (permalink / raw)
To: Christoph Hellwig, Dave Kleikamp, Florian Huber, JFS Discussion,
linux-kernel
On Tue, Jan 27, 2004 at 08:53:24PM +0000, Christoph Hellwig wrote:
> Yes, it does. But JFS should get the right size from the gendisk anyway.
> Or did you create the raid with the filesystem already existant? While that
> appears to work for a non-full ext2/ext3 filesystem it's not something you
> should do because it makes the filesystem internal bookkeeping wrong and
> you'll run into trouble with any filesystem sooner or later.
The key words here is *appears* to work. No matter what the
filesystem, as Chrisoph says, you'll run into trouble sooner or
later....
- Ted
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [Jfs-discussion] md raid + jfs + jfs_fsck
2004-01-27 20:53 ` Christoph Hellwig
` (2 preceding siblings ...)
2004-01-28 2:47 ` Theodore Ts'o
@ 2004-01-28 9:24 ` venom
2004-01-28 9:38 ` Christoph Hellwig
` (2 more replies)
3 siblings, 3 replies; 16+ messages in thread
From: venom @ 2004-01-28 9:24 UTC (permalink / raw)
To: Christoph Hellwig
Cc: Dave Kleikamp, Florian Huber, JFS Discussion, linux-kernel
On Tue, 27 Jan 2004, Christoph Hellwig wrote:
>
> Yes, it does. But JFS should get the right size from the gendisk anyway.
> Or did you create the raid with the filesystem already existant? While that
> appears to work for a non-full ext2/ext3 filesystem it's not something you
> should do because it makes the filesystem internal bookkeeping wrong and
> you'll run into trouble with any filesystem sooner or later.
>
In most situation to create a new FS on a RAID1 MD is not an option.
It happens that you have to mirror a partition, maybe alarge one, and it
already had a filesystem on top of it. Then what should you do?
backup, mirror and then restore? Sometimes it is not possible this too.
Then you accept to deal with the possible problems...
Luigi
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: [Jfs-discussion] md raid + jfs + jfs_fsck
2004-01-28 9:24 ` venom
@ 2004-01-28 9:38 ` Christoph Hellwig
2004-01-28 16:29 ` venom
2004-01-28 10:54 ` Jakob Oestergaard
2004-01-29 22:52 ` Helge Hafting
2 siblings, 1 reply; 16+ messages in thread
From: Christoph Hellwig @ 2004-01-28 9:38 UTC (permalink / raw)
To: venom; +Cc: Dave Kleikamp, Florian Huber, JFS Discussion, linux-kernel
On Wed, Jan 28, 2004 at 10:24:14AM +0100, venom@sns.it wrote:
> In most situation to create a new FS on a RAID1 MD is not an option.
> It happens that you have to mirror a partition, maybe alarge one, and it
> already had a filesystem on top of it. Then what should you do?
> backup, mirror and then restore? Sometimes it is not possible this too.
> Then you accept to deal with the possible problems...
Then you need to shrink the filesystem. As long as the space isn't used
yet it's rather trivial for most ondisk formats, but you absolutely need
to do it to be safe.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [Jfs-discussion] md raid + jfs + jfs_fsck
2004-01-28 9:38 ` Christoph Hellwig
@ 2004-01-28 16:29 ` venom
0 siblings, 0 replies; 16+ messages in thread
From: venom @ 2004-01-28 16:29 UTC (permalink / raw)
To: Christoph Hellwig
Cc: Dave Kleikamp, Florian Huber, JFS Discussion, linux-kernel
On Wed, 28 Jan 2004, Christoph Hellwig wrote:
> Date: Wed, 28 Jan 2004 09:38:51 +0000
> From: Christoph Hellwig <hch@infradead.org>
> Then you need to shrink the filesystem. As long as the space isn't used
> yet it's rather trivial for most ondisk formats, but you absolutely need
> to do it to be safe.
>
perfect! In fact that is what I am used to do.
than would be optimum to be able to shrink a FS on line, and not
all linux FS can do that. The real problem is that somehow not all know about
this and are not aware, as you can see from this thread. maybe should be
added somethninmg about this is kernel documentation?
Luigi
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [Jfs-discussion] md raid + jfs + jfs_fsck
2004-01-28 9:24 ` venom
2004-01-28 9:38 ` Christoph Hellwig
@ 2004-01-28 10:54 ` Jakob Oestergaard
2004-01-29 22:52 ` Helge Hafting
2 siblings, 0 replies; 16+ messages in thread
From: Jakob Oestergaard @ 2004-01-28 10:54 UTC (permalink / raw)
To: venom
Cc: Christoph Hellwig, Dave Kleikamp, Florian Huber, JFS Discussion,
linux-kernel
On Wed, Jan 28, 2004 at 10:24:14AM +0100, venom@sns.it wrote:
>
>
> On Tue, 27 Jan 2004, Christoph Hellwig wrote:
> >
> > Yes, it does. But JFS should get the right size from the gendisk anyway.
> > Or did you create the raid with the filesystem already existant? While that
> > appears to work for a non-full ext2/ext3 filesystem it's not something you
> > should do because it makes the filesystem internal bookkeeping wrong and
> > you'll run into trouble with any filesystem sooner or later.
> >
> In most situation to create a new FS on a RAID1 MD is not an option.
> It happens that you have to mirror a partition, maybe alarge one, and it
> already had a filesystem on top of it. Then what should you do?
> backup, mirror and then restore? Sometimes it is not possible this too.
> Then you accept to deal with the possible problems...
Read The Fine Manual. :)
http://unthought.net/Software-RAID.HOWTO/Software-RAID.HOWTO-7.html#ss7.4
"Method 2" covers exactly this, for a root filesytem though, but you
should be able to adapt it.
/ jakob
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [Jfs-discussion] md raid + jfs + jfs_fsck
2004-01-28 9:24 ` venom
2004-01-28 9:38 ` Christoph Hellwig
2004-01-28 10:54 ` Jakob Oestergaard
@ 2004-01-29 22:52 ` Helge Hafting
2 siblings, 0 replies; 16+ messages in thread
From: Helge Hafting @ 2004-01-29 22:52 UTC (permalink / raw)
To: venom
Cc: Christoph Hellwig, Dave Kleikamp, Florian Huber, JFS Discussion,
linux-kernel
On Wed, Jan 28, 2004 at 10:24:14AM +0100, venom@sns.it wrote:
>
>
> On Tue, 27 Jan 2004, Christoph Hellwig wrote:
> >
> > Yes, it does. But JFS should get the right size from the gendisk anyway.
> > Or did you create the raid with the filesystem already existant? While that
> > appears to work for a non-full ext2/ext3 filesystem it's not something you
> > should do because it makes the filesystem internal bookkeeping wrong and
> > you'll run into trouble with any filesystem sooner or later.
> >
> In most situation to create a new FS on a RAID1 MD is not an option.
> It happens that you have to mirror a partition, maybe alarge one, and it
> already had a filesystem on top of it. Then what should you do?
> backup, mirror and then restore? Sometimes it is not possible this too.
> Then you accept to deal with the possible problems...
>
If you need to mirror it - then you have an empty mirror disk ready, right?
Create a degraded array on the mirror disk, then make a fs there. Then
copy everything over from the original partition. After this, change
the original partition to raid and add it to the other array. (It will
then be updated from the copy).
This approach works with all filesystems, including those that
cannot be resized. Data is copied twice instead of once, but
teh copying step will defragment files and you have the option
of changing filesystem or take advantage of sparse files if
you so wish.
Helge Hafting
^ permalink raw reply [flat|nested] 16+ messages in thread