Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] raid1 partition not mounted at /boot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
sinanqapudan
Apprentice
Apprentice


Joined: 26 Oct 2004
Posts: 234
Location: Milan

PostPosted: Thu Oct 24, 2013 10:46 pm    Post subject: [SOLVED] raid1 partition not mounted at /boot Reply with quote

Hi there,

after my system vanished from a raid0 /, decided to re-installed it taking a more conservative approach (that is using raid1 for /).

It is a very simple one, with 2 raid1 partitions, the first used for /boot (filesystem: ext2), the second for / (filesystem: ext4). Oh, and two swap partitions on sda and sdb.

When I rebooted into the new system some weird things happened:

1. the system remapped my md devices from /dev/md1 and /dev/md3 to /dev/md126 and /dev/md127 respectively, so the system couldn't start. That was easily solved booting with a live CD and then changing the /etc/fstab to reflect the new naming for the devices (a bit annoying, though)

2. no network interface was correctly set up because of the new names for the interfaces (enp1s0 and enp4s1 instead of the usual eth0 and eth1). Also this was easily solved by creating the symlinks for net.lo in init.d and then re-running the configuration steps using the new interface names

3. the device /dev/md126 would not be mounted at /boot during the boot process. This latest thing I've not been able to fix:

Code:
sargon / # ls /boot
sargon / #


If, after boot, I mount manually the partition, everything appears to be fine:
Code:
sargon / # mount /dev/md126 /boot
sargon / # ls -la /boot
total 3738
drwxr-xr-x  4 root root    1024 Oct 24 11:05 .
drwxr-xr-x 21 root root    4096 Oct 24 10:30 ..
-rw-r--r--  1 root root       0 Oct 24 10:54 .keep
lrwxrwxrwx  1 root root       1 Oct 24 11:05 boot -> .
drwxr-xr-x  2 root root    1024 Oct 24 11:05 grub
-rw-r--r--  1 root root 3792352 Oct 25 01:34 kernel-3.10.7-r1-gentoo
drwx------  2 root root   12288 Oct 24 00:01 lost+found
sargon / #


My /etc/fstab is plain and simple:

Code:
# <fs>                  <mountpoint>    <type>          <opts>          <dump/p$

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/md126          /boot                   ext2  noauto,noatime  1 2
/dev/md127          /                       ext4  noatime         0 1
/dev/sda2           none                    swap  sw,pri=1        0 0
/dev/sdb2           none                    swap  sw,pri=1        0 0
/dev/sdc1           /storage/sdc            ext4  noatime         0 1

/dev/cdrom              /mnt/cdrom      auto            noauto,ro       0 0


And here is the dmesg part related to md devices:

Code:
1.11 Mouse [2.4G Wireless Mouse] on usb-0000:00:1d.1-2.1/input0
[    1.808720] hub 2-2:1.0: 300mA power budget left
[    1.808723] hub 2-2:1.0: state 7 ports 4 chg 0000 evt 0002
[    2.281031] ata1: SATA link down (SStatus 0 SControl 0)
[    4.301029] ata2: SATA link down (SStatus 0 SControl 0)
[    6.321029] ata3: SATA link down (SStatus 0 SControl 0)
[    8.341029] ata4: SATA link down (SStatus 0 SControl 0)
[    8.341217] scsi 4:0:0:0: Direct-Access     ATA      Maxtor 6B160P0   BAH4 PQ: 0 ANSI: 5
[    8.341568] sd 4:0:0:0: [sda] 320173056 512-byte logical blocks: (163 GB/152 GiB)
[    8.341698] sd 4:0:0:0: [sda] Write Protect is off
[    8.341765] sd 4:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    8.341793] sd 4:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    8.363282]  sda: sda1 sda2 sda3
[    8.363415] scsi 4:0:1:0: Direct-Access     ATA      Maxtor 6B160P0   BAH4 PQ: 0 ANSI: 5
[    8.363938] sd 4:0:1:0: [sdb] 320173056 512-byte logical blocks: (163 GB/152 GiB)
[    8.364079] sd 4:0:1:0: [sdb] Write Protect is off
[    8.364148] sd 4:0:1:0: [sdb] Mode Sense: 00 3a 00 00
[    8.364175] sd 4:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    8.364904] scsi 6:0:0:0: Direct-Access     ATA      WDC WD20EARS-00M 51.0 PQ: 0 ANSI: 5
[    8.365227] sd 6:0:0:0: [sdc] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[    8.365299] sd 6:0:0:0: [sdc] 4096-byte physical blocks
[    8.365424] sd 6:0:0:0: [sdc] Write Protect is off
[    8.365492] sd 6:0:0:0: [sdc] Mode Sense: 00 3a 00 00
[    8.365518] sd 6:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    8.366135] scsi 7:0:0:0: Direct-Access     ATA      WDC WD20EARS-00M 51.0 PQ: 0 ANSI: 5
[    8.366439] sd 7:0:0:0: [sdd] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[    8.366568] sd 7:0:0:0: [sdd] Write Protect is off
[    8.366636] sd 7:0:0:0: [sdd] Mode Sense: 00 3a 00 00
[    8.366662] sd 7:0:0:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    8.380625]  sdc: sdc1
[    8.380988]  sdd: unknown partition table
[    8.381142] sd 6:0:0:0: [sdc] Attached SCSI disk
[    8.381421] sd 7:0:0:0: [sdd] Attached SCSI disk
[    8.384289]  sdb: sdb1 sdb2 sdb3
[    8.384500] sd 4:0:0:0: [sda] Attached SCSI disk
[    8.384975] sd 4:0:1:0: [sdb] Attached SCSI disk
[    8.385069] md: Waiting for all devices to be available before autodetect
[    8.385137] md: If you don't use raid, use raid=noautodetect
[    8.385390] md: Autodetecting RAID arrays.
[    8.439175] md: Scanned 4 and added 4 devices.
[    8.439241] md: autorun ...
[    8.439304] md: considering sdb3 ...
[    8.439375] md:  adding sdb3 ...
[    8.439442] md: sdb1 has different UUID to sdb3
[    8.439513] md:  adding sda3 ...
[    8.439580] md: sda1 has different UUID to sdb3
[    8.439818] md: created md127
[    8.439883] md: bind<sda3>
[    8.439958] md: bind<sdb3>
[    8.440043] md: running: <sdb3><sda3>
[    8.440354] md/raid1:md127: active with 2 out of 2 mirrors
[    8.440444] md127: detected capacity change from 0 to 161675149312
[    8.440564] md: considering sdb1 ...
[    8.440634] md:  adding sdb1 ...
[    8.440703] md:  adding sda1 ...
[    8.440935] md: created md126
[    8.440999] md: bind<sda1>
[    8.441085] md: bind<sdb1>
[    8.441158] md: running: <sdb1><sda1>
[    8.441456] md/raid1:md126: active with 2 out of 2 mirrors
[    8.441539] md126: detected capacity change from 0 to 104792064
[    8.441646] md: ... autorun DONE.
[    8.464524]  md127: unknown partition table
[    8.464743] EXT3-fs (md127): error: couldn't mount because of unsupported optional features (240)
[    8.465004] EXT2-fs (md127): error: couldn't mount because of unsupported optional features (240)
[    8.522273] EXT4-fs (md127): mounted filesystem with ordered data mode. Opts: (null)
[    8.522354] VFS: Mounted root (ext4 filesystem) readonly on device 9:127.
[    8.522454] Freeing unused kernel memory: 436k freed
[    8.522818] Write protecting the kernel text: 4612k
[    8.522907] Write protecting the kernel read-only data: 1536k
[    9.298056] kbd_mode (776) used greatest stack depth: 6568 bytes left
[    9.322101] loadkeys (777) used greatest stack depth: 6336 bytes left
[    9.322413] init-early.sh (775) used greatest stack depth: 6128 bytes left
[   10.268553] systemd-udevd[869]: starting version 204
[   10.386505] udevadm (876) used greatest stack depth: 6052 bytes left
[   10.520327] systemd-udevd[881]: renamed network interface eth0 to enp1s0
[   10.541157] systemd-udevd[883]: renamed network interface eth1 to enp4s1
[   10.796986]  md126: unknown partition table
[   13.446955] EXT4-fs (md127): re-mounted. Opts: (null)
[   13.886444] Adding 2097148k swap on /dev/sda2.  Priority:1 extents:1 across:2097148k FS
[   13.908374] Adding 2097148k swap on /dev/sdb2.  Priority:1 extents:1 across:2097148k FS
[   13.995931] EXT4-fs (sdc1): mounted filesystem with ordered data mode. Opts: (null)
[   14.056444] mount (1042) used greatest stack depth: 5616 bytes left
[   15.723930] r8169 0000:01:00.0 enp1s0: unable to load firmware patch rtl_nic/rtl8168d-1.fw (-2)
[   15.733330] r8169 0000:01:00.0 enp1s0: link down
[   15.733357] IPv6: ADDRCONF(NETDEV_UP): enp1s0: link is not ready
[   15.957564] r8169 0000:04:01.0 enp4s1: link down
[   15.957592] IPv6: ADDRCONF(NETDEV_UP): enp4s1: link is not ready
[   15.957601] r8169 0000:04:01.0 enp4s1: link down
[   18.154374] r8169 0000:01:00.0 enp1s0: link up
[   18.154385] IPv6: ADDRCONF(NETDEV_CHANGE): enp1s0: link becomes ready
[   19.341594] r8169 0000:04:01.0 enp4s1: link up
[   19.341599] IPv6: ADDRCONF(NETDEV_CHANGE): enp4s1: link becomes ready


Now, how do I manage to get /dev/md126 mounted at /boot during the boot process?

Thanks

Sinanqapudan


Last edited by sinanqapudan on Tue Oct 29, 2013 8:12 am; edited 1 time in total
Back to top
View user's profile Send private message
sinanqapudan
Apprentice
Apprentice


Joined: 26 Oct 2004
Posts: 234
Location: Milan

PostPosted: Mon Oct 28, 2013 4:51 pm    Post subject: Reply with quote

Any ideas? Thanks
Back to top
View user's profile Send private message
therijn
n00b
n00b


Joined: 24 Jan 2008
Posts: 11
Location: Maassluis, The Netherlands

PostPosted: Tue Oct 29, 2013 12:09 am    Post subject: Reply with quote

Here are some ideas:
  • Use a plain boot partition, do no have it on a RAID set
  • Boot from an SSD (my preferred way out :) )
  • Use initrd or upgrade to GRUB2 per as per this suggestion
I hope these are usable for you!
Back to top
View user's profile Send private message
sinanqapudan
Apprentice
Apprentice


Joined: 26 Oct 2004
Posts: 234
Location: Milan

PostPosted: Tue Oct 29, 2013 8:17 am    Post subject: Reply with quote

Hi guys

this thread is a rather typical example of the old "problem exists between the chair and the monitor"!!

The "problem" (apart from the one sitting on the chair), it turned out to be the "noauto" option in the /etc/fstab. Once I changed that to "auto", the partition was mounted regularly at boot.

I'm now considering to switch it back to "noauto" and have thus have it as feature. In the end I need it mounted only when I have to change anything in it, which is not so frequent after all.

Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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