Which option should you choose to modify the configuration on serverA so that it matches serverBs configuration?

The current ZFS configuration on serverA is:
Pool1
c3t2d0
c3t3d0
Pool2
c3t4d0
c3t5d0
The ZFS configuration on serverB is:
Pool1
mirror-0
c3t2d0
c3t3d0
mirror-1
c3t4d0
c3t5d0
You need to change serverAs ZFS configuration to match serverBs configuration.
Which option should you choose to modify the configuration on serverA so that it matches
serverBs configuration?

The current ZFS configuration on serverA is:
Pool1
c3t2d0
c3t3d0
Pool2
c3t4d0
c3t5d0
The ZFS configuration on serverB is:
Pool1
mirror-0
c3t2d0
c3t3d0
mirror-1
c3t4d0
c3t5d0
You need to change serverAs ZFS configuration to match serverBs configuration.
Which option should you choose to modify the configuration on serverA so that it matches
serverBs configuration?

A.
zpool destroy pool2
zpool attach pool1 c3t4d0 ct3t5d0

B.
zpool destroy pool2
zpool attach pool1 c3t2d0 c3t2d0 c3t4d0 c3t5d

C.
zpool destroy pool2
zpool add pool1 c3t4d0 c3t5d0

D.
zpool destroy pool2
zpool mirror pool1 pool2

E.
zpool destroy pool2
zpool attach pool1 c3t2d0 c3t4d0
zpool attach pool1 c3t3d0 c3t5d0

F.
zpool destroy pool1
zpool destroy pool2
zpool create pool1 mirror c3t2d0c3t3d0c3t4d0 c3t5d0

Explanation:
Wedestroy both pools. Then we recreate the mirror.
Note:
zpool attach [-f] pool device new_device
Attaches new_device to an existing zpool device. The existing device cannot be part of a raidz
configuration. If device is not currently part of a mirrored configuration, device automatically
transforms into a two-way mirror of device and new_device. If device is part of a two-way mirror,
attaching new_device creates a three-way mirror, and so on. In either case, new_device begins to
resilver immediately.
Reference: man zpool



Leave a Reply 7

Your email address will not be published. Required fields are marked *


rony

rony

A – wrong syntax, no such device in pool c3t4d0
B – wrong syntax, to many arguments
C – syntax good, bad results with disk spanning
D – no comment
E – correct – submirrors has to be attached
F – you create 4way mirror

Alex

Alex

E is not so correct.
you will get config:

Pool1
mirror-0
c3t2d0
c3t4d0
mirror-1
c3t3d0
c3t5d0

But it is the closest answer

Borko

Borko

There is no correct answer for this question. If I had to chose, I would pick answer “F” , it is the closest answer.

ragnor

ragnor

F would create a 4 way mirror, E is much closer, the structure would be equal.

rk

rk

Correct : E

sub mirrors has to be attached, no ware they did not mentioned about disks details, if they want that disks should be same, then all answers are wrong. In this case E is correct answer.

Anand

Anand

E would be a correct one.

andy

andy

E

root@sol11:~# zpool status
pool: pool1
state: ONLINE
scan: none requested
config:

NAME STATE READ WRITE CKSUM
pool1 ONLINE 0 0 0
c8t1d0s2 ONLINE 0 0 0
c8t2d0s2 ONLINE 0 0 0

errors: No known data errors

root@sol11:~# zpool attach -f pool1 c8t1d0s2 c8t3d0s2

root@sol11:~# zpool attach -f pool1 c8t2d0s2 c8t4d0s2

root@sol11:~# zpool status
pool: pool1
state: ONLINE
scan: resilvered 42.5K in 0h0m with 0 errors on Sun Jan 25 20:21:50 2015
config:

NAME STATE READ WRITE CKSUM
pool1 ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
c8t1d0s2 ONLINE 0 0 0
c8t3d0s2 ONLINE 0 0 0
mirror-1 ONLINE 0 0 0
c8t2d0s2 ONLINE 0 0 0
c8t4d0s2 ONLINE 0 0 0