auto assemble in read-only mode?
hi folks. is it possible to assemble an md device in read-only mode?
after an array has been assembled, I know I can mark it as readonly with --misc -o /dev/md0 for example, but only after its been assembled it seems..
tia,
Quoted 3 lines · Errol Neal
hi folks. is it possible to assemble an md device in read-only mode?
after an array has been assembled, I know I can mark it as readonly with --misc -o/dev/md0for example, but only after its been assembled it seems..
Hi again. No thoughts here?
I'm need to run a RAID1 device on two independent nodes (shared storage) and I'd like to assemble the device on the "slave" node in read-only mode to prevent any sync actions and etc.
Quoted 6 lines · On Tue, 7 Oct 2014 02:56:31 -0400 Errol Neal <[email protected]> wrote:
Quoted 3 lines · Errol Neal
hi folks. is it possible to assemble an md device in read-only mode?
after an array has been assembled, I know I can mark it as readonly with --misc -o/dev/md0for example, but only after its been assembled it seems..Hi again. No thoughts here?
Not even 18 hours since you last asked - what do you thing this is? The Internet :-)
Quoted 1 line
I'm need to run a RAID1 device on two independent nodes (shared storage) and I'd like to assemble the device on the "slave" node in read-only mode to prevent any sync actions and etc.
Did you try adding the "--readonly" option to your --assemble command? (Always best to report everything you tried and how it failed - requires less guess work).
I hope you don't expect too much of a filesystem mounted from such an array while the other node is writing to the array...
NeilBrown
Quoted 4 lines
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 11 lines · NeilBrown
Quoted 6 lines · On Tue, 7 Oct 2014 02:56:31 -0400 Errol Neal <[email protected]> wrote:
Quoted 3 lines · Errol Neal
hi folks. is it possible to assemble an md device in read-only mode?
after an array has been assembled, I know I can mark it as readonly with --misc -o/dev/md0for example, but only after its been assembled it seems..Hi again. No thoughts here?
Not even 18 hours since you last asked - what do you thing this is? The Internet :-)
HAHA. I tend to feel ignored on large mailing lists lol. Need to see my therapist again ;)
Quoted 6 lines
Quoted 2 lines
I'm need to run a RAID1 device on two independent nodes (shared storage) and I'd like to assemble the device on the "slave" node in read-only mode to prevent any sync actions and etc.
Did you try adding the "--readonly" option to your --assemble command? (Always best to report everything you tried and how it failed - requires less guess work).
I did that previously and mdadm told me that "option --readonly not valid in assemble mode". E.g. "mdadm --assemble --scan --readonly". The readonly flag seems like it can only be used after a device has been assembled. So for example, after the device has been assembled, I can run mdadm --misc -o /dev/md0 but that is not always safe for my use case.
Quoted 3 lines
I hope you don't expect too much of a filesystem mounted from such an array while the other node is writing to the array...
I don't. It will be read-only until the pacemaker RA promotes the slave.
Quoted 16 lines · On Tue, 7 Oct 2014 08:31:34 -0400 Errol Neal <[email protected]> wrote:
Quoted 11 lines · NeilBrown
Quoted 6 lines · On Tue, 7 Oct 2014 02:56:31 -0400 Errol Neal <[email protected]> wrote:
Quoted 3 lines · Errol Neal
hi folks. is it possible to assemble an md device in read-only mode?
after an array has been assembled, I know I can mark it as readonly with --misc -o/dev/md0for example, but only after its been assembled it seems..Hi again. No thoughts here?
Not even 18 hours since you last asked - what do you thing this is? The Internet :-)
HAHA. I tend to feel ignored on large mailing lists lol. Need to see my therapist again ;)
Quoted 1 line
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
I'm need to run a RAID1 device on two independent nodes (shared storage) and I'd like to assemble the device on the "slave" node in read-only mode to prevent any sync actions and etc.
Did you try adding the "--readonly" option to your --assemble command? (Always best to report everything you tried and how it failed - requires less guess work).
I did that previously and mdadm told me that "option --readonly not valid in assemble mode". E.g. "mdadm --assemble --scan --readonly".
That tells me use are using a version of mdadm earlier than 3.3. "--assemble --readonly" support was added for 3.3.
NeilBrown
Quoted 14 lines
The readonly flag seems like it can only be used after a device has been assembled. So for example, after the device has been assembled, I can run mdadm --misc -o
/dev/md0but that is not always safe for my use case.Quoted 3 lines
I hope you don't expect too much of a filesystem mounted from such an array while the other node is writing to the array...
I don't. It will be read-only until the pacemaker RA promotes the slave. --
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html