Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • aports aports
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 725
    • Issues 725
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 383
    • Merge requests 383
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • alpine
  • aportsaports
  • Issues
  • #1340

Closed
Open
Created Aug 24, 2012 by Carlo Landmeter@clandmeterOwner

Software raid startup broken

When using software raid on Alpine 2.4 and having udev installed, im unable to make it start properly by init.
First of all udev has a script which will try to start it /lib/udev/rules.d/64-md-raid.rules, because udev is run before my raid module is loaded, the raid will be started as inactive.
I can prevent this behavior by adding an empty file /etc/udev/rules.d/64-md-raid.rules which prevents udev to start the array and have the default scripts jump in.

After doing the above I still run into another issue. The new way of handling raid devices are based on names. Linux raid will auto number md devices (starting from 127 and down) and should create a symlink to /dev/md/devicename to be access. After trying a few options, I am not able to have this symlink although mdadm outputs it has started it. mdadm.conf I used was

ARRAY /dev/md/stripe metadata=1.2 UUID=9dbff4d2:b343c7fe:4bca5b42:d2053de1 name=xen:stripe

I had to switch back the old naming like:

ARRAY /dev/md0 UUID=9dbff4d2:b343c7fe:4bca5b42:d2053de1

This starts the array as md0 again and init script work again.

(from redmine: issue id 1340, created on 2012-08-24, closed on 2013-11-06)

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking