Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
(SOLVED) [SW-Raid] Root partión mount read-only
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
sag
Tux's lil' helper
Tux's lil' helper


Joined: 22 Sep 2004
Posts: 75

PostPosted: Sun Feb 03, 2013 5:28 pm    Post subject: (SOLVED) [SW-Raid] Root partión mount read-only Reply with quote

I've been installing a SW-Raid the following guide http://www.gentoo.org/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml

My problem is that after reboot the root partition is mounting as read-only

Any idea why is it?

Thanks


Screenshot http://imageshack.us/photo/my-images/441/img20130203181334.jpg/

dmesg
Code:

[    2.949383] mousedev: PS/2 mouse device common for all mice
[    2.950078] rtc_cmos 00:02: RTC can wake from S4
[    2.950535] rtc_cmos 00:02: rtc core: registered rtc_cmos as rtc0
[    2.950650] rtc0: alarms up to one year, y3k, 114 bytes nvram
[    2.950804] md: raid0 personality registered for level 0
[    2.950875] md: raid1 personality registered for level 1
[    2.951442] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com
[    2.951681] cpuidle: using governor ladder
[    2.951751] cpuidle: using governor menu
[    2.951819] EFI Variables Facility v0.08 2004-May-17
[    2.977797] Netfilter messages via NETLINK v0.30.
[    2.977898] nf_conntrack version 0.5.0 (14057 buckets, 56228 max)
[    2.978734] ctnetlink v0.93: registering with nfnetlink.
[    2.979174] ip_tables: (C) 2000-2006 Netfilter Core Team
[    2.979330] TCP: cubic registered
[    2.979397] Initializing XFRM netlink socket
[    2.979691] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input3
[    2.980390] NET: Registered protocol family 10
[    2.980920] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    2.981110] sit: IPv6 over IPv4 tunneling driver
[    2.981675] NET: Registered protocol family 17
[    2.981803] Key type dns_resolver registered
[    2.981959] Using IPI No-Shortcut mode
[    2.982464] PM: Hibernation image not present or could not be loaded.
[    2.982488] registered taskstats version 1
[    2.983177]   Magic number: 1:967:195
[    2.983429] console [netcon0] enabled
[    2.983497] netconsole: network logging started
[    2.984087] ALSA device list:
[    2.984158]   #0: HDA VIA VT82xx at 0xfebfc000 irq 17
[    3.040022] Marking TSC unstable due to cpufreq changes
[    3.040162] hub 1-0:1.0: state 7 ports 6 chg 0000 evt 0000
[    3.040248] Switching to clocksource acpi_pm
[    3.042036] uhci_hcd 0000:00:10.0: port 1 portsc 008a,00
[    3.042062] uhci_hcd 0000:00:10.0: port 2 portsc 008a,00
[    3.044032] uhci_hcd 0000:00:10.1: port 1 portsc 008a,00
[    3.044055] uhci_hcd 0000:00:10.1: port 2 portsc 008a,00
[    3.046031] uhci_hcd 0000:00:10.2: port 1 portsc 008a,00
[    3.046055] uhci_hcd 0000:00:10.2: port 2 portsc 008a,00
[    3.142040] hub 2-0:1.0: state 7 ports 2 chg 0000 evt 0000
[    3.144034] hub 3-0:1.0: state 7 ports 2 chg 0000 evt 0000
[    3.146032] hub 4-0:1.0: state 7 ports 2 chg 0000 evt 0000
[    3.215043] ata3: SATA link down (SStatus 0 SControl 300)
[    3.215187] ata1: SATA link down (SStatus 0 SControl 300)
[    3.370044] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    3.374887] ata2.00: ATA-8: WDC WD20EARS-00MVWB0, 51.0AB51, max UDMA/133
[    3.374979] ata2.00: 3907029168 sectors, multi 16: LBA48 NCQ (depth 0/32)
[    3.379891] ata2.00: configured for UDMA/133
[    3.380334] scsi 1:0:0:0: Direct-Access     ATA      WDC WD20EARS-00M 51.0 PQ: 0 ANSI: 5
[    3.381370] sd 1:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[    3.381638] sd 1:0:0:0: [sda] Write Protect is off
[    3.381728] sd 1:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    3.381794] sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.383190] sd 1:0:0:0: Attached scsi generic sg0 type 0
[    3.417484]  sda: sda1 sda2 sda3 sda4 < sda5 sda6 >
[    3.419801] sd 1:0:0:0: [sda] Attached SCSI disk
[    3.523045] ata4: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    3.528084] ata4.00: ATA-8: WDC WD20EARS-00MVWB0, 51.0AB51, max UDMA/133
[    3.528177] ata4.00: 3907029168 sectors, multi 16: LBA48 NCQ (depth 0/32)
[    3.548150] ata4.00: configured for UDMA/133
[    3.548562] scsi 3:0:0:0: Direct-Access     ATA      WDC WD20EARS-00M 51.0 PQ: 0 ANSI: 5
[    3.549620] sd 3:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[    3.549888] sd 3:0:0:0: [sdb] Write Protect is off
[    3.549978] sd 3:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[    3.550087] sd 3:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.551444] sd 3:0:0:0: Attached scsi generic sg1 type 0
[    3.591273]  sdb: sdb1 sdb2 sdb3 sdb4 < sdb5 sdb6 >
[    3.593569] sd 3:0:0:0: [sdb] Attached SCSI disk
[    3.714504] Freeing unused kernel memory: 456k freed
[    3.715423] Write protecting the kernel text: 5416k
[    3.715652] Write protecting the kernel read-only data: 1536k
[    3.770163] cut (951) used greatest stack depth: 6700 bytes left
[    4.003897] md: Autodetecting RAID arrays.
[    4.116811] md: Scanned 8 and added 8 devices.
[    4.116821] md: autorun ...
[    4.116828] md: considering sdb6 ...
[    4.116858] md:  adding sdb6 ...
[    4.116877] md: sdb5 has different UUID to sdb6
[    4.116895] md: sdb3 has different UUID to sdb6
[    4.116914] md: sdb1 has different UUID to sdb6
[    4.116940] md:  adding sda6 ...
[    4.116960] md: sda5 has different UUID to sdb6
[    4.116980] md: sda3 has different UUID to sdb6
[    4.117000] md: sda1 has different UUID to sdb6
[    4.118419] md: created md6
[    4.118433] md: bind<sda6>
[    4.118480] md: bind<sdb6>
[    4.118527] md: running: <sdb6><sda6>
[    4.135931] bio: create slab <bio-1> at 1
[    4.136235] md/raid1:md6: active with 2 out of 2 mirrors
[    4.136312] md6: detected capacity change from 0 to 1928246657024
[    4.136574] md: considering sdb5 ...
[    4.136607] md:  adding sdb5 ...
[    4.136629] md: sdb3 has different UUID to sdb5
[    4.136650] md: sdb1 has different UUID to sdb5
[    4.136677] md:  adding sda5 ...
[    4.136697] md: sda3 has different UUID to sdb5
[    4.136718] md: sda1 has different UUID to sdb5
[    4.136728] md: created md5
[    4.136736] md: bind<sda5>
[    4.136790] md: bind<sdb5>
[    4.136839] md: running: <sdb5><sda5>
[    4.147583] md/raid1:md5: active with 2 out of 2 mirrors
[    4.147628] md5: detected capacity change from 0 to 50001346560
[    4.147795] md: considering sdb3 ...
[    4.147813] md:  adding sdb3 ...
[    4.147825] md: sdb1 has different UUID to sdb3
[    4.147839] md:  adding sda3 ...
[    4.147850] md: sda1 has different UUID to sdb3
[    4.148986] md: created md3
[    4.148996] md: bind<sda3>
[    4.149067] md: bind<sdb3>
[    4.149090] md: running: <sdb3><sda3>
[    4.158497] md/raid1:md3: active with 2 out of 2 mirrors
[    4.158544] md3: detected capacity change from 0 to 20003815424
[    4.158701] md: considering sdb1 ...
[    4.158718] md:  adding sdb1 ...
[    4.158732] md:  adding sda1 ...
[    4.159829] md: created md1
[    4.159837] md: bind<sda1>
[    4.159866] md: bind<sdb1>
[    4.159885] md: running: <sdb1><sda1>
[    4.169329] md/raid1:md1: active with 2 out of 2 mirrors
[    4.169377] md1: detected capacity change from 0 to 98566144
[    4.169584] md: ... autorun DONE.
[    4.169668] mdstart (1260) used greatest stack depth: 6468 bytes left
[    4.172667]  md1: unknown partition table
[    4.204040] usb usb2: suspend_rh (auto-stop)
[    4.204074] usb usb3: suspend_rh (auto-stop)
[    4.204101] usb usb4: suspend_rh (auto-stop)
[    4.223422]  md3: unknown partition table
[    4.236003]  md6: unknown partition table
[    4.262237]  md5: unknown partition table
[    4.339447] mdadm (1334) used greatest stack depth: 6104 bytes left
[    4.408906] EXT4-fs (md5): mounted filesystem with ordered data mode. Opts: (null)
[   75.298390] hub 1-0:1.0: state 7 ports 6 chg 0000 evt 0004
[   75.298426] ehci_hcd 0000:00:10.4: GetStatus port:2 status 001803 0  ACK POWER sig=j CSC CONNECT
[   75.298448] hub 1-0:1.0: port 2, status 0501, change 0001, 480 Mb/s
[   75.402037] hub 1-0:1.0: debounce: port 2: total 100ms stable 100ms status 0x501
[   75.453385] ehci_hcd 0000:00:10.4: port 2 reset complete, port enabled
[   75.453407] ehci_hcd 0000:00:10.4: GetStatus port:2 status 001005 0  ACK POWER sig=se0 PE CONNECT
[   75.504040] usb 1-2: new high-speed USB device number 2 using ehci_hcd
[   75.555277] ehci_hcd 0000:00:10.4: port 2 reset complete, port enabled
[   75.555298] ehci_hcd 0000:00:10.4: GetStatus port:2 status 001005 0  ACK POWER sig=se0 PE CONNECT
[   75.618556] usb 1-2: default language 0x0409
[   75.618931] usb 1-2: udev 2, busnum 1, minor = 1
[   75.618944] usb 1-2: New USB device found, idVendor=059b, idProduct=0370
[   75.618956] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=5
[   75.618968] usb 1-2: Product: External HD
[   75.618979] usb 1-2: Manufacturer: Iomega
[   75.618990] usb 1-2: SerialNumber: 9225FFFFFFFF
[   75.619401] usb 1-2: usb_probe_device
[   75.619416] usb 1-2: configuration #1 chosen from 1 choice
[   75.619681] usb 1-2: adding 1-2:1.0 (config #1, interface 0)
[   75.620128] usb-storage 1-2:1.0: usb_probe_interface
[   75.620163] usb-storage 1-2:1.0: usb_probe_interface - got id
[   75.620335] scsi6 : usb-storage 1-2:1.0
[   76.622925] scsi 6:0:0:0: Direct-Access     ST350083 0AS                   PQ: 0 ANSI: 2 CCS
[   76.624400] sd 6:0:0:0: Attached scsi generic sg2 type 0
[   76.624641] sd 6:0:0:0: [sdc] 976773168 512-byte logical blocks: (500 GB/465 GiB)
[   76.626389] sd 6:0:0:0: [sdc] Write Protect is off
[   76.626493] sd 6:0:0:0: [sdc] Mode Sense: 34 00 00 00
[   76.627388] sd 6:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   76.642716]  sdc: sdc1
[   76.645870] sd 6:0:0:0: [sdc] Attached SCSI disk
[  128.282684] EXT4-fs (sdc1): mounted filesystem with ordered data mode. Opts: (null)


fstab
Code:

/dev/md1          /boot                 ext3  noauto,noatime  1 2
/dev/md5          /                     ext4  noatime         0 1
/dev/sda2         none                  swap  sw,pri=1        0 0
/dev/sdb2         none                  swap  sw,pri=1        0 0
/dev/md3          /tmp                  ext2  nosuid,nodev,noatime,rw 0 0


mdadm.conf
Code:

ARRAY /dev/md1 metadata=0.90 UUID=3ae5e078:b19c997a:cb201669:f728008a
ARRAY /dev/md3 metadata=0.90 UUID=3a32e5eb:49a07037:cb201669:f728008a
ARRAY /dev/md5 metadata=0.90 UUID=7767571e:234bbea0:cb201669:f728008a
ARRAY /dev/md6 metadata=0.90 UUID=e236ba49:8f0d33d1:cb201669:f728008a


Last edited by sag on Mon Feb 04, 2013 8:25 pm; edited 2 times in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32010
Location: 56N 3W

PostPosted: Sun Feb 03, 2013 6:05 pm    Post subject: Reply with quote

sag,

Are you installing a 32 bit or 64 bit system ?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
sag
Tux's lil' helper
Tux's lil' helper


Joined: 22 Sep 2004
Posts: 75

PostPosted: Sun Feb 03, 2013 6:09 pm    Post subject: Reply with quote

NeddySeagoon wrote:
sag,

Are you installing a 32 bit or 64 bit system ?


32bits

Motherboard :epia- sn18000
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32010
Location: 56N 3W

PostPosted: Sun Feb 03, 2013 6:13 pm    Post subject: Reply with quote

sag,

Ah. Your kernel will need
Code:
 Support for large (2TB+) block devices and files (LBDAF)
enabled under
Code:
Enable the block layer (BLOCK)
to get ext4 write support on ext4 filesystems created with the default options.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
sag
Tux's lil' helper
Tux's lil' helper


Joined: 22 Sep 2004
Posts: 75

PostPosted: Sun Feb 03, 2013 6:38 pm    Post subject: Reply with quote

NeddySeagoon wrote:
sag,

Ah. Your kernel will need
Code:
 Support for large (2TB+) block devices and files (LBDAF)
enabled under
Code:
Enable the block layer (BLOCK)
to get ext4 write support on ext4 filesystems created with the default options.


This is already set


Code:

(chroot) livecd linux # grep LBDAF .config
CONFIG_LBDAF=y


Full ".config"
http://pastebin.com/raw.php?i=KVtpKWBd
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32010
Location: 56N 3W

PostPosted: Sun Feb 03, 2013 8:29 pm    Post subject: Reply with quote

sag,

Log in as root the prompt - it will be ugly but as long as it lets you in, then execute
Code:
mount -o remount, rw/

That should make root rw and you can pick up the pieces of services not started by hand.

Do you have any filesystem errors in dmesg?

root starts off ro. after rootfsck runs, its remounted rw.
do you have the right fs type in /etc/fstab?
If not, rootfsck will probably fail.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
sag
Tux's lil' helper
Tux's lil' helper


Joined: 22 Sep 2004
Posts: 75

PostPosted: Sun Feb 03, 2013 9:16 pm    Post subject: Reply with quote

NeddySeagoon wrote:
sag,

Log in as root the prompt - it will be ugly but as long as it lets you in, then execute
Code:
mount -o remount, rw/

That should make root rw and you can pick up the pieces of services not started by hand.

Do you have any filesystem errors in dmesg?

root starts off ro. after rootfsck runs, its remounted rw.
do you have the right fs type in /etc/fstab?
If not, rootfsck will probably fail.



Could you be this the problem?

Code:

    5.565441] md1: detected capacity change from 0 to 98566144
[    5.565613] md: ... autorun DONE.
[    5.565701] mdstart (2279) used greatest stack depth: 6460 bytes left
[    5.568696]  md1: unknown partition table
[    5.596802]  md3: unknown partition table
[    5.609509]  md6: unknown partition table
[    5.635549]  md5: unknown partition table
[    5.706396] mdadm (2352) used greatest stack depth: 6104 bytes left
[    5.740253] EXT4-fs (md5): INFO: recovery required on readonly filesystem
[    5.740267] EXT4-fs (md5): write access will be enabled during recovery
[    6.080811] EXT4-fs (md5): recovery complete
[    6.103924] EXT4-fs (md5): mounted filesystem with ordered data mode. Opts: (null)

Full dmesg http://pastebin.com/raw.php?i=gPMf3c3q
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32010
Location: 56N 3W

PostPosted: Sun Feb 03, 2013 10:19 pm    Post subject: Reply with quote

sag,

Code:
[    5.740253] EXT4-fs (md5): INFO: recovery required on readonly filesystem
[    5.740267] EXT4-fs (md5): write access will be enabled during recovery

Maybe. I have a VPS with an ext3 filesystem but I use the ext4 driver. One reboot, it came back with messages like this but the filesystem was never fixed.
To get it back rw, I had to force ext3 on the kernel command line with rootfs=ext3. That may not help you.

Boot with a liveCD and run fsck manually. You may need to use -f as the fs may seem cleanand you want more than a journal replay. See the man page.
Run fsck again - does it try to fix the same errors all over again?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
sag
Tux's lil' helper
Tux's lil' helper


Joined: 22 Sep 2004
Posts: 75

PostPosted: Mon Feb 04, 2013 8:19 pm    Post subject: Reply with quote

facepalm :oops:


The problem was that I had activated the option for tmpfs.

Sorry for the inconvenience that I have caused and thank you for your help.


Code:

 [*] Tmpfs virtual memory file system support (former shm fs)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum