Bug #1569

mount_hammer -o nomirror is not working

Added by lentferj over 4 years ago. Updated over 4 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:tuxillo% Done:

0%

Category:-
Target version:-

Description

Hi,

neither

mount_hammer -o nomirror /dev/ad7s2d /usr/pkg/pgsql

nor

mount_hammer -u -o nomirror /usr/pkg/pgsql

is working as one would expect when reading the mount_hammer man page.
You always get:

mount_hammer: -o mirror: option not supported.

Regards,

Jan Lentfer

History

#1 Updated by tuxillo over 4 years ago

Fix in:
http://gitweb.dragonflybsd.org/~tuxillo/dragonfly.git/commitdiff/303ddff773874f257321b7003ae7a13aa630aa1b

It should let you select nomirror option with it, although I don't know if this
actually behaves as expected.

Matt, can you confirm?

Cheers,
Antonio Huete

#2 Updated by dillon over 4 years ago

:
:
:Antonio Huete Jimenez <> added the comment:
:
:Fix in:
:http://gitweb.dragonflybsd.org/~tuxillo/dragonfly.git/commitdiff/303ddff773=
:874f257321b7003ae7a13aa630aa1b
:
:It should let you select nomirror option with it, although I don't know if =
:this
:actually behaves as expected.
:
:Matt, can you confirm?
:
:Cheers,
:Antonio Huete
:
:----------
:assignedto: -> tuxillo
:nosy: +tuxillo
:status: unread -> chatting

That looks right though I'm not quite sure if it will change the
way the defaults are set up.

The options are not really relevant at the moment since we don't
have multi-master clustering yet.

-Matt
Matthew Dillon
<>

#3 Updated by tuxillo over 4 years ago

Matt,

It doesn't change the defaults I think. See:

earthborder# umount /repos
earthborder# mount_hammer /dev/da1s1d /repos
Master 0

earthborder# umount /repos
earthborder# mount_hammer -o nomirror /dev/da1s1d /repos
Master -1

earthborder# umount /repos
earthborder# mount_hammer/mount_hammer -o mirror /dev/da1s1d /repos
Master 0

earthborder# umount /repos
earthborder# mount_hammer/mount_hammer -o master=12 /dev/da1s1d /repos
Master 12

Also I would like to know how do you retrieve from userland the master node
number from a HAMMER filesystem (if this is possible). If not, maybe it should
included in some of the get pfs ioctls or?

Cheers,
Antonio Huete

#4 Updated by tuxillo over 4 years ago

Fix committed in aa209291091803efc23e07376be8d3737ca5c025

Also available in: Atom PDF