Bill Davidsen wrote:
I wonder what happens if the device is really read-only and the o/s
tries to replay the journal as part of a r/o mount? I suspect the system
will refuse totally with an i/o error, not what you want.
I exported a ext3 volume via iSCSI, in read-only mode.
It is mounted on the iSCSI target already, so it makes sense to mount it
*really* read-only on iSCSI initiator.
It is accessible to the iSCSI initiator as /dev/sdat - let's try to use it:
# mount /dev/sdat /mnt/1
mount: block device /dev/sdat is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/sdat,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
# dmesg -c
EXT3-fs: INFO: recovery required on readonly filesystem.
EXT3-fs: write access unavailable, cannot proceed.
So, no go.
What about ext2 mount?
# mount -t ext2 /dev/sdat /mnt/1
mount: block device /dev/sdat is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/sdat,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
# dmesg -c
EXT2-fs: sdat: couldn't mount because of unsupported optional features (4).
Still, we're not able to mount the partition.
Now, we umount it on iSCSI target, and try to mount it again on the
initiator - ext3 works:
# mount /dev/sdat /mnt/1
mount: block device /dev/sdat is write-protected, mounting read-only
ext2 works, too:
# umount /mnt/1
# mount -t ext2 /dev/sdat /mnt/1
mount: block device /dev/sdat is write-protected, mounting read-only
So, the only way to see data from an already mounted ext3 partition is
(iSCSI target exports it to multiple iSCSI initiators):
- export it read-only
- umount it
- mount it as ext2
- mount on iSCSI initiators as either ext2 or ext3 (will be forced
read-only)
Or:
- export it as read-only
- mount on iSCSI initiators as either ext2 or ext3 (will be forced
read-only)
- mount it as ext3 on iSCSI target
Both ways can be certainly unwanted in some cases.
Certainly, I would like the "norecovery" option.
--
Tomasz Chmielewski
http://wpkg.org
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]