Re: Starting and stopping RAID doesn't work from Cron

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The uuid= I believe requires a link that udev creates when the device
gets created and it scans it.  That link may or may not be done when
mdadm returns with 0 as that udev/link creating is not in the mdadm
code path.

So wait a second before you mount it.  In reality it will probably
happen much faster than 1sec.

I think the specific udev rule doing it is in
/lib/udev/rules.d/60-persistent-storage.rules and this happens after
udev processes the event when the device shows up.

the link will be in /dev/disk/by-uuid/ so if once the mdadm exists do
a ls -l against that dir and then sleep a second and do it again
something new will show up.

On Tue, Jun 23, 2020 at 11:45 AM Patrick O'Callaghan
<pocallaghan@xxxxxxxxx> wrote:
>
> On Tue, 2020-06-23 at 09:23 -0700, Doug H. wrote:
> > > I'm assuming that once mdadm returns 0 the array is up and running.
> >
> >
> > Perhaps a simpler way to assure that it is running is to check a static
> > file that you place on the raid. If it is there then the raid is up. It
> > would show the file as long as it is running, even if it is degraded.
>
> On second thoughts, that will only work if it's mounted, which happens
> after I check that it's up.
>
> Thanks anyway.
>
> poc
> _______________________________________________
> users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
> Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux