LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 09-08-2005, 02:32 PM   #1
reelwylde
LQ Newbie
 
Registered: Apr 2003
Posts: 24

Rep: Reputation: 15
single ext3 journal device multiple journaled file systems?


Can a single ext3 journal device house journals for multiple file systems?

If so how would one go about the configuration?

My desired configuration is to create one journal device and store journals for all data file systems there

/dev/cciss/c0d0p2 Journal device
/dev/cciss/c0d1p1 data volume 1
/dev/cciss/c0d2p1 data volume 2

I have tried to set this up and encountered the following error when attempting to mount the second data volume as ext3. Both mount fine as ext2, but that defeats the purpose.

mount -t ext3 /dev/cciss/c0d1p1 /vol01
mount: wrong fs type, bad option, bad superblock on /dev/cciss/c0d1p1,
or too many mounted file systems

Here is the console session to document the order of steps taken.

Make the journal device

$ mkfs -t ext3 -b 1024 -O journal_dev /dev/cciss/c0d0p2
mke2fs 1.35 (28-Feb-2004)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
0 inodes, 1048560 blocks
0 blocks (0.00%) reserved for the super user
First data block=1
0 block group
8192 blocks per group, 8192 fragments per group
0 inodes per group
Superblock backups stored on blocks:

Zeroing journal device: done

Make fs for data volume 2

$ mkfs.ext3 -b 1024 -J device=/dev/cciss/c0d0p2 /dev/cciss/c0d2p1
mke2fs 1.35 (28-Feb-2004)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
4445184 inodes, 35561264 blocks
1778063 blocks (5.00%) reserved for the super user
First data block=1
4341 block groups
8192 blocks per group, 8192 fragments per group
1024 inodes per group
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409, 663553,
1024001, 1990657, 2809857, 5120001, 5971969, 17915905, 19668993,
25600001

Writing inode tables: done
Adding journal to device /dev/cciss/c0d0p2: done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 29 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.

Mount Data volume 2

$ mount -t ext3 /dev/cciss/c0d2p1 /vol02

Make fs for data volume 1

$ mkfs.ext3 -b 1024 -J device=/dev/cciss/c0d0p2 /dev/cciss/c0d1p1
mke2fs 1.35 (28-Feb-2004)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
4445184 inodes, 35561264 blocks
1778063 blocks (5.00%) reserved for the super user
First data block=1
4341 block groups
8192 blocks per group, 8192 fragments per group
1024 inodes per group
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409, 663553,
1024001, 1990657, 2809857, 5120001, 5971969, 17915905, 19668993,
25600001

Writing inode tables: done
Adding journal to device /dev/cciss/c0d0p2: done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 38 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.

Failed attempt to mount data volume 1

$ mount -t ext3 /dev/cciss/c0d1p1 /vol01
mount: wrong fs type, bad option, bad superblock on /dev/cciss/c0d1p1,
or too many mounted file systems


TIA.
 
Old 09-08-2005, 02:37 PM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
Anything showing up near the bottom of dmesg?
 
Old 09-08-2005, 03:27 PM   #3
reelwylde
LQ Newbie
 
Registered: Apr 2003
Posts: 24

Original Poster
Rep: Reputation: 15
Here are the last few lines of dmesg...

EXT3: failed to claim external journal device.
EXT3: failed to claim external journal device.
EXT3-fs: External journal has more than one user (unsupported) - 2
EXT3-fs: External journal has more than one user (unsupported) - 2
 
Old 09-08-2005, 03:33 PM   #4
reelwylde
LQ Newbie
 
Registered: Apr 2003
Posts: 24

Original Poster
Rep: Reputation: 15
I found this in another forum... it seems to imply that one fs per journal dev is the limitation....

Looks like you created the ext3 filesystem twice with the same journal
device. There may be a way to remove these journal users with tune2fs
(too lazy to check), but you can just re-create the journal device and
the filesystem again. If you have data on the filesystem, you can run
"tune2fs -f -O^has_journal <dev>" and then "tune2fs -J device=<foo> <dev>"
to add it to the journal device again.

Cheers, Andreas
--
Andreas Dilger
 
Old 09-08-2005, 04:00 PM   #5
reelwylde
LQ Newbie
 
Registered: Apr 2003
Posts: 24

Original Poster
Rep: Reputation: 15
It has been confirmed....

Quoting Andreas Dilger:

"In theory yes it was designed to handle this, but it has never been implemented."

One file system per journal device is what the current implementation supports.



Cheers,
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
assigning multiple device aliases to single drive cerealdaemon Linux - General 5 07-26-2005 12:55 AM
Multiple Mounts for a device and move File systems louisb Linux - Enterprise 16 06-27-2005 06:43 PM
Journaled File Systems Slayer097 Linux - Newbie 5 01-08-2005 05:14 PM
ext3 vs ext2 file systems AZDAVE Linux - Hardware 2 11-17-2003 10:20 AM
file systems (ext3, Reiser's) q_re_us Linux - General 2 07-16-2003 04:18 AM


All times are GMT -5. The time now is 12:30 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration