On Wed, 12 Jul 2017 13:41:18 +0300, Andrei Borzenkov wrote:
On Wed, Jul 12, 2017 at 1:23 PM, Istvan Gabor <suseuser04@gmail.hu> wrote: ...
In openSUSE Leap 42.2 I can't mount the same raid device:
cat /proc/mdstat
md9 : active raid1 sdc9[1] sdb9[0] 31455164 blocks super 1.0 [2/2] [UU]
# mount /dev/md9 /mnt -o ro mount: wrong fs type, bad option, bad superblock on /dev/md9, missing codepage or helper program, or other error
It probably doesn't really matter, but I've never seen the options added at the end, this is what I would do:
mount -o ro /dev/md9 /mnt
Otherwise, I would have said 'fsck'.
fsck in Leap 42.2:
# fsck -C -t ext3 /dev/md9 fsck from util-linux 2.28 e2fsck 1.42.11 (09-Jul-2014) The filesystem size (according to the superblock) is 7863809 blocks The physical size of the device is 7863791 blocks
What is the size of individual partitions that comprise md9?
It is assembled from /dev/sdb9 and /dev/sdc9. # sfdisk -l /dev/sdb Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Device Boot Start End Sectors Size Id Type /dev/sdb9 298005813 360916289 62910477 30G fd Linux raid autodetect # sfdisk -l /dev/sdc Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Device Boot Start End Sectors Size Id Type /dev/sdc9 298005813 360916289 62910477 30G fd Linux raid autodetect fsck: # fsck /dev/md9 fsck from util-linux 2.28 e2fsck 1.42.11 (09-Jul-2014) The filesystem size (according to the superblock) is 7863809 blocks The physical size of the device is 7863791 blocks Either the superblock or the partition table is likely to be corrupt! Abort<y>? yes (I am puzzled what is the block size here) The array: # mdadm -D /dev/md9 /dev/md9: Version : 1.0 Creation Time : Wed Jan 2 13:48:04 2013 Raid Level : raid1 Array Size : 31455164 (30.00 GiB 32.21 GB) Used Dev Size : 31455164 (30.00 GiB 32.21 GB) Raid Devices : 2 Total Devices : 2 Persistence : Superblock is persistent Update Time : Wed Jul 12 14:10:38 2017 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 # mdadm -E /dev/sdb9 /dev/sdb9: Magic : a92b4efc Version : 1.0 Feature Map : 0x0 Array UUID : b79c19c5:26a75800:146d33d7:cddd9174 Name : lnx:9 (local to host lnx) Creation Time : Wed Jan 2 13:48:04 2013 Raid Level : raid1 Raid Devices : 2 Avail Dev Size : 62910328 (30.00 GiB 32.21 GB) Array Size : 31455164 (30.00 GiB 32.21 GB) Super Offset : 62910456 sectors State : clean Device UUID : 7e6c76ea:d7e68f6e:28c6f6b2:1b2d6e8b Update Time : Wed Jul 12 14:14:16 2017 Checksum : 4112a1d9 - correct Events : 19 # mdadm -E /dev/sdc9 /dev/sdc9: Magic : a92b4efc Version : 1.0 Feature Map : 0x0 Array UUID : b79c19c5:26a75800:146d33d7:cddd9174 Name : lnx:9 (local to host lnx) Creation Time : Wed Jan 2 13:48:04 2013 Raid Level : raid1 Raid Devices : 2 Avail Dev Size : 62910328 (30.00 GiB 32.21 GB) Array Size : 31455164 (30.00 GiB 32.21 GB) Super Offset : 62910456 sectors State : clean Device UUID : 20538afe:54462860:8cdcf366:9f97a05b Update Time : Wed Jul 12 14:14:16 2017 Checksum : caee68e0 - correct Events : 19 Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org