Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Trying to mount RAID1 partitions in gentoo (SOLVED)
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Featherfoot
l33t
l33t


Joined: 28 Dec 2002
Posts: 993
Location: Stuart, Florida

PostPosted: Sat Feb 03, 2018 6:28 pm    Post subject: Trying to mount RAID1 partitions in gentoo (SOLVED) Reply with quote

I had an incident that caused me to rebuild my system. I have a 1Tb RAID 1 array and a 240 Gb SSD. I have my gentoo /boot and root (/) partitions on the SSD. The home and several miscellaneous partitions are on the RAID 1 array. I have a multiboot system with Mint 18.3 on the RAID 1 also. I can mount and work with all of the partitions from Mint, but I can't mount the same partitions on Gentoo. Clearly I have not set up something correctly but I don't know what it is.

I can boot into gentoo just fine and KDE comes up. None of the RAID partitions are mounted. If I try to mount one, I get a message like this:

Quote:

mount /mint

/dev/sdc5 already mounted or device busy.


/dev/sdc5 is one of the components of the RAID partition. If I list /dev/mapper, it lists the drives correctly
Code:

bopper jc # ls /dev/mapper
control       pdc_ichaghch1  pdc_ichaghch3  pdc_ichaghch5  pdc_ichaghch7
pdc_ichaghch  pdc_ichaghch2  pdc_ichaghch4  pdc_ichaghch6
bopper jc #


Here is my /etc/fstab:
Code:

bopper jc # cat /gentoosys/etc/fstab
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed); notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

# <fs>         <mountpoint>   <type>      <opts>      <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
#
# NOTE: Even though we list ext4 as the type here, it will work with ext2/ext3
#       filesystems.  This just tells the kernel to use the ext4 driver.
#
# NOTE: You can use full paths to devices like /dev/sda3, but it is often
#       more reliable to use filesystem labels or UUIDs. See your filesystem
#       documentation for details on setting a label. To obtain the UUID, use
#       the blkid(8) command.

UUID=5e5d22b7-f7d2-4ce3-b183-bba5325c18f8 /boot   ext4   nofail,noatime,nodiratime,discard,user_xattr,errors=remount-ro 0 1
UUID=31919870-2246-4f3d-a3ae-11431272cf60 /   ext4   noatime      0 1 #/dev/sda2

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

UUID=87b11ebf-a720-486e-9595-03f9c62c8024 /mint           ext4    noatime,auto   0 3 # /dev/mapper/pdc_ichaghch5
UUID=12ece343-0677-4485-9b38-bf74f577056a /home           ext4    noatime,auto    0 2 # /dev/mapper/pdc_ichaghch3
UUID=02f4ec2d-6c86-4315-98d2-28a777b26787 /misc           ext4    noatime,auto    0 3 #/dev/mapper/pdc_ichaghch6
UUID=5656C23F56C2201B            /windows        ntfs    noatime,auto,umask=007,gid=46 0 0 #/dev/mapper/pdc_ichaghch2

UUID=1e0aa515-07ff-461f-9da3-2d3e60f6ed25  none            swap    sw              0       0 #/dev/mapper/pdc_ichaghch7



I have used both the UUID= form and the /dev/mapper form with the same result.

The fstab from the Mint system which mounts correctly follows: I used the same default options on my gentoo file for awhile and it did not work.
Code:

bopper jc # cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/mapper/pdc_ichaghch5 /               ext4    errors=remount-ro 0       1
# /boot2 was on /dev/sda1 during installation
UUID=5e5d22b7-f7d2-4ce3-b183-bba5325c18f8 /boot2          ext4    defaults        0       2
# /gentoosys was on /dev/sda2 during installation
UUID=31919870-2246-4f3d-a3ae-11431272cf60 /gentoosys      ext4    defaults        0       2
/dev/mapper/pdc_ichaghch3 /home           ext4    defaults        0       2
/dev/mapper/pdc_ichaghch6 /misc           ext4    defaults        0       2
/dev/mapper/pdc_ichaghch2 /windows        ntfs    defaults,umask=007,gid=46 0       0
/dev/mapper/pdc_ichaghch7 none            swap    sw              0       0
/dev/mapper/pdc_ichaghch7 none            swap    sw              0       0
bopper jc #



Last edited by Featherfoot on Fri Feb 09, 2018 8:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
szatox
Veteran
Veteran


Joined: 27 Aug 2013
Posts: 1746

PostPosted: Sat Feb 03, 2018 8:17 pm    Post subject: Reply with quote

Show your lsblk, lvs, cat /proc/mdstat, and mdadm --examine --scan --verbose
You're not supposed to get an error regarding sda5 when you mount a LV. You may want to see what your volumes are actually mapped to. What does `dmsetup tables` report? It may provide some insight, particularly when you check it against `ls -l /dev/{md,sd}*`

With LVM I prefer names over UUIDs. Snapshots have the same UUID as their origin, since its the same filesystem at different point in time.
Back to top
View user's profile Send private message
Featherfoot
l33t
l33t


Joined: 28 Dec 2002
Posts: 993
Location: Stuart, Florida

PostPosted: Sat Feb 03, 2018 9:35 pm    Post subject: Reply with quote

This is what it looks like when I chroot in... For some reason I have no internet, either. I think I'm not set up as well as I thought.

I think it's pretty clear there's some initialization that didn't happen. I poked around and didn't find any comprehensible documentation. Perhaps you can point me off to something. This is a "hardware" RAID1.

This is similar to what I saw when logged directly into gentoo.

I agree with you that device names are nicer than UUID's. That's what I originally had in fstab. I had systemd on this pre-crash and systemd required UUID's.

Code:

[gentoo]bopper /etc/jc # lsblk
NAME              MAJ:MIN RM   SIZE RO TYPE   MOUNTPOINT
sda                 8:0    0 223.6G  0 disk   
├─sda1              8:1    0   300M  0 part   /boot
└─sda2              8:2    0 223.3G  0 part   /
sdb                 8:16   0 931.5G  0 disk   
└─pdc_ichaghch    253:0    0 931.3G  0 dmraid
  ├─pdc_ichaghch1 253:1    0   100M  0 part   
  ├─pdc_ichaghch2 253:2    0 288.1G  0 part   
  ├─pdc_ichaghch3 253:3    0 390.6G  0 part   /home
  ├─pdc_ichaghch4 253:4    0     1K  0 part   
  ├─pdc_ichaghch5 253:5    0 191.4G  0 part   /mint
  ├─pdc_ichaghch6 253:6    0  51.8G  0 part   /misc
  └─pdc_ichaghch7 253:7    0   9.4G  0 part   [SWAP]
sdc                 8:32   0 931.5G  0 disk   
└─pdc_ichaghch    253:0    0 931.3G  0 dmraid
  ├─pdc_ichaghch1 253:1    0   100M  0 part   
  ├─pdc_ichaghch2 253:2    0 288.1G  0 part   
  ├─pdc_ichaghch3 253:3    0 390.6G  0 part   /home
  ├─pdc_ichaghch4 253:4    0     1K  0 part   
  ├─pdc_ichaghch5 253:5    0 191.4G  0 part   /mint
  ├─pdc_ichaghch6 253:6    0  51.8G  0 part   /misc
  └─pdc_ichaghch7 253:7    0   9.4G  0 part   [SWAP]
sr0                11:0    1  1024M  0 rom   

[gentoo]bopper /etc/jc #


lvs:
Code:

[gentoo]bopper /etc/jc # lvs
/run/lvm/lvmetad.socket: connect failed: No such file or directory
  WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
[gentoo]bopper /etc/jc #


Code:

gentoo]bopper /etc/jc # mdadm --examine --scan --verbose
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Feb 03, 2018 10:07 pm    Post subject: Reply with quote

Featherfoot,

Its a fakeraid of some sort. Real hardware raid hides the component drives from the kernel and appears as a single device.
The question is, what sort of fakeraid is it?
If we knew that, we would know how to start it.

Your
Code:
lspci -knn
may help.
Sow will your dmesg from your working system. Put that onto a pastebin please.
_________________
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
Featherfoot
l33t
l33t


Joined: 28 Dec 2002
Posts: 993
Location: Stuart, Florida

PostPosted: Sun Feb 04, 2018 12:59 am    Post subject: Reply with quote

dmesg from my Mint 18.3 system: https://pastebin.com/6k27GHGQ

lspci -knn from my Mint system: https://pastebin.com/68eKRBzx

My manual says the raid chip is a JMicron JMB362.

I turned on rc.log and have a copy from my last boot on gentoo:
Code:

{gentoo}bopper /etc/jc # cat rc.log

rc sysinit logging started at Sat Feb  3 16:55:09 2018


   OpenRC 0.34.11 is starting up Gentoo Linux (x86_64)

 * /proc is already mounted
 * Mounting /run ...
 * /run/openrc: creating directory
 * /run/lock: creating directory
 * /run/lock: correcting owner
 * Caching service dependencies ...
 [ ok ]
 * Remounting devtmpfs on /dev ...
 [ ok ]
 * Mounting /dev/mqueue ...
 [ ok ]
 * Mounting /dev/shm ...
 [ ok ]
 * Creating list of required static device nodes for the current kernel ...
 [ ok ]
 * Mounting security filesystem ...
 [ ok ]
 * Mounting fuse control filesystem ...
 [ ok ]
 * Mounting cgroup filesystem ...
 [ ok ]
 * Starting udev ...
 [ ok ]
 * Generating a rule to create a /dev/root symlink ...
 [ ok ]
 * Populating /dev with existing devices through uevents ...
 [ ok ]

rc sysinit logging stopped at Sat Feb  3 16:55:09 2018


rc boot logging started at Sat Feb  3 16:55:09 2018

 * Loading kernel modules ...
insmod /lib/modules/4.9.76-gentoo-r1/video/nvidia.ko NVreg_DeviceFileMode=432 NVreg_DeviceFileUID=0 NVreg_DeviceFileGID=27 NVreg_ModifyDeviceFiles=1
insmod /lib/modules/4.9.76-gentoo-r1/kernel/sound/pci/hda/snd-hda-intel.ko
insmod /lib/modules/4.9.76-gentoo-r1/kernel/drivers/media/tuners/xc5000.ko
 [ ok ]
 * Setting system clock using the hardware clock [Local Time] ...
 [ ok ]
 * Checking local filesystems  ...
/dev/sda2: clean, 537479/14639104 files, 4546905/58530710 blocks
/dev/sda1: clean, 14/76912 files, 29280/307200 blocks
/dev/sdc3 is in use.
e2fsck: Cannot continue, aborting.


/dev/sdb5 is in use.
e2fsck: Cannot continue, aborting.


/dev/sdb6 is in use.
e2fsck: Cannot continue, aborting.


 * Operational error
 [ !! ]
 * Remounting root filesystem read/write ...
 [ ok ]
 * Remounting filesystems ...
 [ ok ]
 * Updating /etc/mtab ...
 * Creating mtab symbolic link
 [ ok ]
 * Activating swap devices ...
swapon: /dev/sdc7: swapon failed: Device or resource busy
 [ ok ]
 * Mounting local filesystems ...
mount: /mint: /dev/sdb5 already mounted or mount point busy.
mount: /home: /dev/sdc3 already mounted or mount point busy.
mount: /misc: /dev/sdb6 already mounted or mount point busy.
mount: /windows: /dev/sdb2 already mounted or mount point busy.
 * Some local filesystem failed to mount
 [ !! ]
 * The binfmt-misc module needs to be configured in /etc/conf.d/modules or built in.
 * Mounting misc binary format filesystem ...
 [ ok ]
 * Loading custom binary format handlers ...
 [ ok ]
 * Configuring kernel parameters ...
 [ ok ]
 * Creating user login records ...
 [ ok ]
 * Wiping /tmp directory ...
 [ ok ]
 * Setting hostname to bopper  ...
 [ ok ]
 * Setting terminal encoding [UTF-8] ...
 [ ok ]
 * Setting keyboard mode [UTF-8] ...
 [ ok ]
 * Loading key mappings [us] ...
 [ ok ]
 * Bringing up network interface lo ...
 [ ok ]
 * Initializing random number generator ...
 [ ok ]

rc boot logging stopped at Sat Feb  3 21:55:10 2018


rc default logging started at Sat Feb  3 21:55:10 2018

 * Checking your configfile (/etc/syslog-ng/syslog-ng.conf) ...
 [ ok ]
 * Starting syslog-ng ...
 [ ok ]
 * Starting cronie ...
 [ ok ]
 * Starting dbus ...
 [ ok ]
 * Bringing up interface eth0
 *   Caching network module dependencies
need dbus
 *   ERROR: interface eth0 does not exist
 *   Ensure that you have loaded the correct kernel module for your hardware
 * ERROR: net.eth0 failed to start
 * ERROR: cannot start netmount as net.eth0 would not start
 * Starting sshd ...
 [ ok ]
 * Setting up sddm ...
 [ ok ]
 * Starting local ...
 [ ok ]

rc default logging stopped at Sat Feb  3 21:55:11 2018

{gentoo}bopper /etc/jc #
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Feb 04, 2018 10:23 am    Post subject: Reply with quote

Featherfoot,

Code:
[    6.640232] EXT4-fs (dm-5): mounted filesystem with ordered data mode. Opts: (null)
[   17.069198] EXT4-fs (dm-5): re-mounted. Opts: errors=remount-ro
[   17.153584] systemd-journald[563]: Received request to flush runtime journal from PID 1


That's your root being mounted from a device mapper volume.

From your lspci, your HDD controllers meed either ahci, pata_jmicron or pata_acpi. None of those drivers provide any sort of raid support.
You don't have Intel Storage Container fakeraid as that needs an Intel chipset.

That only leaves dmraid, which does not show up in dmesg. Is sys-fs/dmraid installed and started?
It appears not or it would be in your boot log.

For root on fakeraid, sys-fs/dmraid needs to be in your initrd, since it needs to be running before you can even see root.
_________________
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
Featherfoot
l33t
l33t


Joined: 28 Dec 2002
Posts: 993
Location: Stuart, Florida

PostPosted: Sun Feb 04, 2018 3:30 pm    Post subject: Reply with quote

Getting closer...

Lsblk is showing that dmraid but it still doesn't mount them.

dmesg is here: https://pastebin.com/YNtmYUdF

Code:

[gentoo]bopper /etc/jc #  cat lsblk.txt
NAME               MAJ:MIN RM   SIZE RO TYPE   MOUNTPOINT
sda                  8:0    0 223.6G  0 disk   
|-sda1               8:1    0   300M  0 part   /boot
`-sda2               8:2    0 223.3G  0 part   /
sdb                  8:16   0 931.5G  0 disk   
|-sdb1               8:17   0   100M  0 part   
|-sdb2               8:18   0 288.1G  0 part   
|-sdb3               8:19   0 390.6G  0 part   
|-sdb4               8:20   0     1K  0 part   
|-sdb5               8:21   0 191.4G  0 part   
|-sdb6               8:22   0  51.8G  0 part   
|-sdb7               8:23   0   9.4G  0 part   
`-pdc_ichaghch     252:0    0 931.3G  0 dmraid
  |-pdc_ichaghchp1 252:1    0   100M  0 dmraid
  |-pdc_ichaghchp2 252:2    0 288.1G  0 dmraid
  |-pdc_ichaghchp3 252:3    0 390.6G  0 dmraid
  |-pdc_ichaghchp5 252:4    0 191.4G  0 dmraid
  |-pdc_ichaghchp6 252:5    0  51.8G  0 dmraid
  `-pdc_ichaghchp7 252:6    0   9.4G  0 dmraid
sdc                  8:32   0 931.5G  0 disk   
|-sdc1               8:33   0   100M  0 part   
|-sdc2               8:34   0 288.1G  0 part   
|-sdc3               8:35   0 390.6G  0 part   
|-sdc4               8:36   0     1K  0 part   
|-sdc5               8:37   0 191.4G  0 part   
|-sdc6               8:38   0  51.8G  0 part   
|-sdc7               8:39   0   9.4G  0 part   
`-pdc_ichaghch     252:0    0 931.3G  0 dmraid
  |-pdc_ichaghchp1 252:1    0   100M  0 dmraid
  |-pdc_ichaghchp2 252:2    0 288.1G  0 dmraid
  |-pdc_ichaghchp3 252:3    0 390.6G  0 dmraid
  |-pdc_ichaghchp5 252:4    0 191.4G  0 dmraid
  |-pdc_ichaghchp6 252:5    0  51.8G  0 dmraid
  `-pdc_ichaghchp7 252:6    0   9.4G  0 dmraid
sr0                 11:0    1  1024M  0 rom   
Back to top
View user's profile Send private message
szatox
Veteran
Veteran


Joined: 27 Aug 2013
Posts: 1746

PostPosted: Sun Feb 04, 2018 6:54 pm    Post subject: Reply with quote

So, lvm was missing. Did you install it?
Is the volume group active?
Are volumes active?

Do you use LVM itself to create mirrors, or is it a fakeraid as Neddy mentioned? (That's a part of my reason to ask for dump from dmsetup)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Feb 04, 2018 7:08 pm    Post subject: Reply with quote

szatox,

Fakeraid raid1 will mount half a raid when dmraid is not started.
The partition table in is the right place, both halves of the raid have the same UUIDs on the filesystems ...

LVM raid need the PV to be defined then the LVs to be defined inside that.
The partition table points to the PV. You don't see the LVs unless the volume group is active.
_________________
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
Featherfoot
l33t
l33t


Joined: 28 Dec 2002
Posts: 993
Location: Stuart, Florida

PostPosted: Sun Feb 04, 2018 7:39 pm    Post subject: Reply with quote

lvm2 was installed.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Feb 04, 2018 9:03 pm    Post subject: Reply with quote

Featherfoot,

What do
Code:
pvdisplay
lvdisplay

show ?
_________________
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
Featherfoot
l33t
l33t


Joined: 28 Dec 2002
Posts: 993
Location: Stuart, Florida

PostPosted: Sun Feb 04, 2018 9:15 pm    Post subject: Reply with quote

Code:

opper /etc/jc # pvdisplay
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  WARNING: Failed to connect to lvmetad. Falling back to internal scanning.



Code:

bopper /etc/jc # lvdisplay
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  WARNING: Failed to connect to lvmetad. Falling back to internal scanning.


[Moderator edit: changed [quote] tags to [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Feb 04, 2018 9:31 pm    Post subject: Reply with quote

Featherfoot,

You don't have any Physical Volumes or Logical Volumes set up for Logical Volume Manager.

What does
Code:
rc-update -sv
show ?
_________________
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
Featherfoot
l33t
l33t


Joined: 28 Dec 2002
Posts: 993
Location: Stuart, Florida

PostPosted: Sun Feb 04, 2018 10:13 pm    Post subject: Reply with quote

Code:

bopper /etc # rc-update -sv
       NetworkManager |                                       
                acpid |                                       
               agetty |                                       
            alsasound |                                       
              apache2 |                                       
         avahi-daemon |                                       
       avahi-dnsconfd |                                       
               binfmt | boot                                   
            bluetooth |                                       
             bootmisc | boot                                   
        busybox-klogd |                                       
         busybox-ntpd |                                       
      busybox-syslogd |                                       
     busybox-watchdog |                                       
          consolefont |                                       
           consolekit |                                       
               cronie |      default                           
         cups-browsed |                                       
                cupsd |                                       
          dante-sockd |                                       
                 dbus |      default                           
                devfs |                                 sysinit
        device-mapper |                                       
               dhcpcd |                                       
                dhcpd |                                       
             dhcrelay |                                       
            dhcrelay6 |                                       
              dmcrypt |                                       
                dmesg |                                 sysinit
             dmeventd |                                       
           fancontrol |                                       
                 fsck | boot                                   
                 fuse |                                       
           git-daemon |                                       
                  gpm |                                       
             hostname | boot                                   
              hwclock | boot                                   
            ip6tables |                                                                               
             iptables |                                                                               
              keymaps | boot                                                                           
            killprocs |                        shutdown                                               
    kmod-static-nodes |                                 sysinit
           lm_sensors |                                       
                local |      default nonetwork                 
           localmount | boot                                   
             loopback | boot                                   
                  lvm |                                       
       lvm-monitoring |                                       
              lvmetad |                                       
                mdadm |                                       
               mdraid |                                       
      mit-krb5kadmind |                                       
          mit-krb5kdc |                                       
       mit-krb5kpropd |                                       
              modules | boot                                   
         modules-load |                                       
             mount-ro |                        shutdown       
                 mtab | boot                                   
                mysql |                                       
             mysql-s6 |                                       
      mysql-supervise |                                       
                  nas |                                       
           net-online |                                       
             net.eth0 |      default                           
               net.lo |                                       
             netmount |      default                           
              numlock |                                       
  nvidia-persistenced |                                       
           nvidia-smi |                                       
     opentmpfiles-dev |                                       
   opentmpfiles-setup |                                       
              osclock |                                       
              pciparm |                                       
        postgresql-10 |                                       
               procfs | boot                                   
              pwcheck |                                       
            pydoc-2.7 |                                       
            pydoc-3.4 |                                       
            pydoc-3.5 |                                       
               rfcomm |                                       
                 root | boot                                   
               rsyncd |                                       
             runsvdir |                                       
            s6-svscan |                                       
                samba |                                       
            saslauthd |                                       
            savecache |                        shutdown       
                snmpd |                                       
            snmptrapd |                                       
                 sshd |      default                           
             svnserve |                                       
                 swap | boot                                   
              swclock |                                       
               sysctl | boot                                   
                sysfs |                                 sysinit
            syslog-ng |      default                           
         termencoding | boot                                   
               twistd |                                       
                 udev |                                 sysinit
          udev-settle |                                       
         udev-trigger |                                 sysinit
              urandom | boot                                   
       wpa_supplicant |                                       
                  xdm |      default                           
            xdm-setup |                                       
               xinetd |                                       
bopper /etc #
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Feb 04, 2018 10:33 pm    Post subject: Reply with quote

Featherfoot,

I was expecting to see dmraid in there, in the boot runlevel.
It needs to start before localmount but the dmraid startup script should take care of that.
_________________
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
Featherfoot
l33t
l33t


Joined: 28 Dec 2002
Posts: 993
Location: Stuart, Florida

PostPosted: Sun Feb 04, 2018 10:40 pm    Post subject: Reply with quote

Is lvm supposed to start at boot? Anything else?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Feb 04, 2018 11:22 pm    Post subject: Reply with quote

Featherfoot,

If you use LVM, you need to run
Code:
vgchange -ay
to start your logical volumes.

From inside Mint, what does
Code:
pvdisplay
lvdisplay
show?
I suspect the same as you have already posted.

Installing dmraid here and running
Code:
# dmraid -l
asr     : Adaptec HostRAID ASR (0,1,10)
ddf1    : SNIA DDF1 (0,1,4,5,linear)
hpt37x  : Highpoint HPT37X (S,0,1,10,01)
hpt45x  : Highpoint HPT45X (S,0,1,10)
isw     : Intel Software RAID (0,1,5,01)
jmicron : JMicron ATARAID (S,0,1)
lsi     : LSI Logic MegaRAID (0,1,10)
nvidia  : NVidia RAID (S,0,1,10,5)
pdc     : Promise FastTrack (S,0,1,10)
sil     : Silicon Image(tm) Medley(tm) (0,1,10)
via     : VIA Software RAID (S,0,1,10)
dos     : DOS partitions on SW RAIDs


Notice your raid volume names start pdc_ and

man dmraid:
DESCRIPTION
       dmraid discovers block and software RAID devices (eg, ATARAID) by using
       multiple  different metadata format handlers which support various for‐
       mats (eg, Highpoint 37x series).  It offers activating RAID  sets  made
       up  by 2 or more discovered RAID devices, display properties of devices
       and sets (see option -l for supported metadata formats).  Block  device
       access  to activated RAID sets occurs via device-mapper nodes /dev/map‐
       per/RaidSetName.  RaidSetName starts  with  the  format  name  (see  -l
       option)  which can be used to access all RAID sets of a specific format
       easily with certain options (eg, -a below).


I still think you have dmraid fakeraid.
_________________
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
Featherfoot
l33t
l33t


Joined: 28 Dec 2002
Posts: 993
Location: Stuart, Florida

PostPosted: Mon Feb 05, 2018 12:46 am    Post subject: Reply with quote

Code:

bopper jc # pvdisplay
bopper jc # lvdisplay
bopper jc #


They are now the same.

Gentoo is still not mounting the RAID volumes.

It could be a FakeRAID. There is a certain amount of hardware involved in the RAID, but I don't think it's a lot.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Feb 05, 2018 1:12 am    Post subject: Reply with quote

Featherfoot,

It is fakeraid. Real hardware raid has its own buffer RAM and CPU for doing the data distribution among the drives.
It normally has battery backup to keep the RAM alive until all the data has been commited.
There is no hardware raid in your lspci.

A raid card costs about as much as a low end PC because that's what it is.

Now that we have established that LVM is not in use go into mint and run
Code:
dmraid -r

You might want to read
Code:
man dmraid
to see what it does.
Post the output.
_________________
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
Featherfoot
l33t
l33t


Joined: 28 Dec 2002
Posts: 993
Location: Stuart, Florida

PostPosted: Mon Feb 05, 2018 1:19 am    Post subject: Reply with quote

This is from Mint:

Code:
bopper jc # dmraid -r
/dev/sdc: pdc, "pdc_ichaghch", mirror, ok, 1953124992 sectors, data@ 0
/dev/sdb: pdc, "pdc_ichaghch", mirror, ok, 1953124992 sectors, data@ 0
bopper jc #
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Feb 05, 2018 1:32 am    Post subject: Reply with quote

Featherfoot,

Good. That shows its a dmraid fakeraid.

Code:
emerge dmraid
on Gentoo.
Add dmraid to the boot runlevel.
There may be some configuration to do so it starts your raid.
Look in /etc/conf.d/dmraid

Once that's right the raid will start at boot.
_________________
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
Featherfoot
l33t
l33t


Joined: 28 Dec 2002
Posts: 993
Location: Stuart, Florida

PostPosted: Mon Feb 05, 2018 1:41 am    Post subject: Reply with quote

It was interesting when I did a "dmraid -ay -f pdc" all of the partitions were activated. and showed the expected files when I mounted them.

There is no conf.d entry for dmraid. I experimented with mdraid with no success. Seems like it should work. Mint doesn't have any settings in either.
Back to top
View user's profile Send private message
Featherfoot
l33t
l33t


Joined: 28 Dec 2002
Posts: 993
Location: Stuart, Florida

PostPosted: Tue Feb 06, 2018 3:08 am    Post subject: Reply with quote

Here is where I stand:

I can mount my RAID partitions with dmraid -ay. For some reason, the dodmraid option on the boot command line is not working.

I thought I saw dmraid in the boot up messages as I booted up, but I can't figure out how to see these messages after I have logged in.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Feb 06, 2018 12:34 pm    Post subject: Reply with quote

Featherfoot,

dmraid and mdraid for doing something similar is completely different ways.
With dmraid, the data layout on the drives is in your BIOS.
With mdraid, its on the HDD.

The dodmraid option on the boot command line requires the use of an initrd with dmraid built in.

Does dmraid have an initscript?
It will be in /etc/init.d and
Code:
rc-update show -v
will list it.
If so, it should be enough to add it to the boot runlevel.

Mint will use an initrd as its a binary distro, so the dmraid startup will happen there.
This is the first use of dmraid I've seen that does not have root on dmraid. That always needs an initrd.

You have 3 options.
Use an initrd
Write an init script for dmraid and add it to the boot or sys-init runlevel.
Edit an existing init script.

The rest of the world expects you to use an initrd because dmraid users normally have root on dmraid.

There is another horrible hack too but lets not go there.
_________________
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
Featherfoot
l33t
l33t


Joined: 28 Dec 2002
Posts: 993
Location: Stuart, Florida

PostPosted: Tue Feb 06, 2018 5:30 pm    Post subject: Reply with quote

dmraid does not have an initscript. Here is the output of rc-update:

Code:

bopper /home/jc # rc-update show -v
       NetworkManager |                                       
                acpid |                                       
               agetty |                                       
            alsasound |                                       
              apache2 |                                       
         avahi-daemon |                                       
       avahi-dnsconfd |                                       
               binfmt | boot                                   
            bluetooth |                                       
             bootmisc | boot                                   
        busybox-klogd |                                       
         busybox-ntpd |                                       
      busybox-syslogd |                                       
     busybox-watchdog |                                       
          consolefont |                                       
           consolekit |                                       
               cronie |      default                                                                   
         cups-browsed |                                                                               
                cupsd |                                                                               
          dante-sockd |                                                                               
                 dbus |      default                           
                devfs |                                 sysinit
        device-mapper |                                       
               dhcpcd |                                       
                dhcpd |                                       
             dhcrelay |                                       
            dhcrelay6 |                                       
              dmcrypt |                                       
                dmesg |                                 sysinit
             dmeventd |                                       
           fancontrol |                                       
                 fsck | boot                                   
                 fuse |                                       
           git-daemon |                                       
                  gpm |                                       
             hostname | boot                                   
              hwclock | boot                                   
            ip6tables |                                       
             iptables |                                       
              keymaps | boot                                   
            killprocs |                        shutdown       
    kmod-static-nodes |                                 sysinit
           lm_sensors |      default                           
                local |      default nonetwork                 
           localmount | boot                                   
             loopback | boot                                   
                  lvm | boot                                   
       lvm-monitoring |                                       
              lvmetad |                                       
                mdadm |                                       
               mdraid |                                       
      mit-krb5kadmind |                                       
          mit-krb5kdc |                                       
       mit-krb5kpropd |                                       
              modules | boot                                   
         modules-load |                                       
             mount-ro |                        shutdown       
                 mtab | boot                                   
                mysql |                                       
             mysql-s6 |                                       
      mysql-supervise |                                       
                  nas |                                       
           net-online |                                       
             net.eth0 |      default                           
               net.lo |                                       
             netmount |      default                           
           ntp-client |      default                           
                 ntpd |      default                           
              numlock |                                       
  nvidia-persistenced |                                       
           nvidia-smi |                                       
     opentmpfiles-dev |                                       
   opentmpfiles-setup |                                       
              osclock |                                       
              pciparm |                                       
        postgresql-10 |                                       
               procfs | boot                                   
              pwcheck |                                       
            pydoc-2.7 |                                       
            pydoc-3.4 |                                       
            pydoc-3.5 |                                       
               rfcomm |                                       
                 root | boot                                   
               rsyncd |                                       
             runsvdir |                                       
            s6-svscan |                                       
                samba |                                       
            saslauthd |                                       
            savecache |                        shutdown       
                snmpd |                                       
            snmptrapd |                                       
                 sntp |                                       
                 sshd |      default                           
             svnserve |                                       
                 swap | boot                                   
              swclock |                                       
               sysctl | boot                                   
                sysfs |                                 sysinit
            syslog-ng |      default                           
         termencoding | boot                                   
               twistd |                                       
                 udev |                                 sysinit
          udev-settle |                                       
         udev-trigger |                                 sysinit
              urandom | boot                                   
       wpa_supplicant |                                       
                  xdm |      default                           
            xdm-setup |                                       
               xinetd |                                       
bopper /home/jc #


I have been using genkernel to build my kernels. I have been using the following command to run it:
Code:

genkernel --dmraid all


It does build an initramfs. I don't recall ever controlling what went into the initramfs other than this. Of course the first time I had the RAID in my kernel was a long time ago. Here is my /boot directory:
Code:

bopper /home/jc # ls /boot
initramfs-genkernel-x86_64-4.14.17-gentoo    lost+found
initramfs-genkernel-x86_64-4.9.76-gentoo-r1  System.map-genkernel-x86_64-4.14.17-gentoo
kernel-genkernel-x86_64-4.14.17-gentoo       System.map-genkernel-x86_64-4.9.76-gentoo-r1
kernel-genkernel-x86_64-4.9.76-gentoo-r1
bopper /home/jc #

I tried another kernel as Mr. Google thought that could be the problem It didn't fix anything different. If anything, it was worse.
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
Goto page 1, 2  Next
Page 1 of 2

 
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