Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jun 2018 15:04:07 +0200
From:      Julien Cigar <julien@perdition.city>
To:        freebsd-questions@freebsd.org
Subject:   upgrade of an iSCSI zpool mirror
Message-ID:  <20180611130407.GT48472@mordor.lan>

Next in thread | Raw E-Mail | Index | Archive | Help

--GAoked8QSizNecZ5
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello,

We have a "low-cost" active/passive HA ZFS based filer (with=20
NFS4/SMB/... on top) which consist of two tiny HP Proliant DL20=20
with 2 x 2 To disks in each. On the PASSIVE node two slices are exported
through iSCSI, and on the ACTIVE node a zpool mirror (named "data") has=20
been created over two local slices and the two iSCSI slices.=20
Failover from ACTIVE to PASSIVE is made through CARP and a failover=20
script, while failover from OLD ACTIVE (NOW PASSIVE) to NEW ACTIVE (now=20
ACTIVE) is done manually (the failover script explicitely change the=20
advskew to avoid any possible side effects)

It works well, but those are still running FreeBSD 10.3 and I'd like to
upgrade to 11.x. During the upgrade process the pool should be read-only
available. I planned to do something like:

with F1 being the (current) ACTIVE node and F2 being the (current)=20
PASSIVE node:

- stop NFS/... services on F1
- zpool export data on F1
- switch CARP roles
- F1 is now the PASSIVE node and F2 is now the ACTIVE node
- on F2: zpool import -o readonly=3Don data
- start NFS/... services on F2
- then start to upgrade of F1

once the upgrade of F1 is finished:
- stop NFS/... services on F2
- zpool export data on F2
- switch CARP roles
- F2 is now the PASSIVE node and F1 is now the ACTIVE node
- on F1: zpool import data
- on F1: zpool detach data <the two iSCSI disks from F2>
- start NFS/... services on F1

then start the upgrade of F2, once finished re-attach the two iSCSI
disks from F2 to the data pool on F1, and run a zpool scrub

Has anyone ever done something similar and/or does it sound good to you?

Thanks,
Julien

--=20
Julien Cigar
Belgian Biodiversity Platform (http://www.biodiversity.be)
PGP fingerprint: EEF9 F697 4B68 D275 7B11  6A25 B2BB 3710 A204 23C0
No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.

--GAoked8QSizNecZ5
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEE7vn2l0to0nV7EWolsrs3EKIEI8AFAlsec0MACgkQsrs3EKIE
I8Ddyw/+JVJ2v0ZzbFVo5i0OqjkfJyGYLw95JPGgLbPP9YogypZfyB9QTrZyH/ch
50h7lTodGBvPBGgI81OAikgzHywIRo5nPT19fgejqCU1KFX68ElEiqBU14qSLPOf
hpk/sqK2eQ4VzrJJWBUUuQo4qJ+Q1dRld6PZgwguc+hjh9hl0VKTPaso34p2Ms+X
B+NcsCABN5zgiPVPEZksjUu//gXL+aKcC8tqS+L5XmuFYcaWiPhRfrb1tQriULCL
QS+ipYG3haHqV9zNrp4RE1ci5ZL3mOPxhhq8ViVmU1Ohtze5h3FneykHGVd7KNHh
WrDIX+Qy9hgzeHbAMRwfMtzwYkPCGneZGJDsZCmYO4pP/CX2iEdXoE+Ca1Sdxx9P
tZ5mZ3/NY2Wwv/79x2Eg3nMt9t25o9sloGKLt27nWOYjpR3t+yLQYzG6yWBPXH3L
FuMJFdB9nr6t8FPYtsPc1a28Y/bwrT+kD+WMPo71iGJEX3pqkRijo18PVENRtGXU
U2ADwJhV+05TwKY1Npp6EmvTlplq17+cvRxiZ9tNmEYajbWMFXKm7LTJ4urbpwcm
65PPE9zO6HgUnpT3fe4B/2BA1x73lvpzgxLs/ZUp+mvLxk3pHLgEIYSlGbMiXbZT
9ktY84acHn7AdHp3fVEeroAsRQ0FlkZKkCwMnMRl5dNKk4/QX+s=
=YR8F
-----END PGP SIGNATURE-----

--GAoked8QSizNecZ5--



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20180611130407.GT48472>