Which two zpool subcommands will permanently remove a submirror from active storage pool?

Which two zpool subcommands will permanently remove a submirror from active storage pool?

Which two zpool subcommands will permanently remove a submirror from active storage pool?

A.
remove

B.
detach

C.
destroy

D.
offline

E.
replace

F.
split

G.
zpool does not permit this operation on an active storage pool unless the submirror faults.

Explanation:

B: zpool detach pool device
Detaches device from a mirror. The operation is refused if there
are no other valid replicas of the data.
E: zpool replace [-f] pool old_device [new_device]
Replaces old_device with new_device. This is equivalent to attaching new_device, waiting for it to resilver, and then detaching
old_device.
Incorrect:
Not A: zpool remove pool vdev
Removes the given vdev from the pool. This command currently only
supports removing hot spares. Devices which are part of a mirror
can be removed using the “zpool detach” command. Raidz and toplevel vdevs cannot be removed from a pool.
Not C: zpool destroy [-f] pool
Destroys the given pool, freeing up any devices for other use. This

command tries to unmount any active datasets before destroying the
pool.
Not D: zpool offline [-t] pool device …
Takes the specified physical device offline. While the device is
offline, no attempt is made to read or write to the device.
Not G.



Leave a Reply 6

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


Mir

Mir

I think AB is correct answer!

dupek

dupek

What about split subcommand? In this case split permanently removed the c3t1d0 submirror of pool1.

root@s11exam:~# zpool create pool1 mirror c3t0d0 c3t1d0
root@s11exam:~# zpool status pool1
pool: pool1
state: ONLINE
scan: none requested
config:

NAME STATE READ WRITE CKSUM
pool1 ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
c3t0d0 ONLINE 0 0 0
c3t1d0 ONLINE 0 0 0

errors: No known data errors
root@s11exam:~# zpool split pool1 pool2
root@s11exam:~# zpool status pool1
pool: pool1
state: ONLINE
scan: none requested
config:

NAME STATE READ WRITE CKSUM
pool1 ONLINE 0 0 0
c3t0d0 ONLINE 0 0 0

errors: No known data errors
root@s11exam:~# zpool status pool2
cannot open ‘pool2’: no such pool
root@s11exam:~# zpool import pool2
root@s11exam:~# zpool status pool2
pool: pool2
state: ONLINE
scan: none requested
config:

NAME STATE READ WRITE CKSUM
pool2 ONLINE 0 0 0
c3t1d0 ONLINE 0 0 0

errors: No known data errors

dupek

dupek

So, I think B and F is correct.
F see abowe, B:
oot@s11exam:~# zpool create pool1 mirror c3t0d0 c3t1d0
root@s11exam:~# zpool status pool1
pool: pool1
state: ONLINE
scan: none requested
config:

NAME STATE READ WRITE CKSUM
pool1 ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
c3t0d0 ONLINE 0 0 0
c3t1d0 ONLINE 0 0 0

errors: No known data errors
root@s11exam:~# zpool help remove
usage:
remove …
root@s11exam:~# zpool remove pool1 c3t1d0
cannot remove c3t1d0: operation not supported on this type of pool
root@s11exam:~# zpool help detach
usage:
detach
root@s11exam:~# zpool detach pool1 c3t1d0
root@s11exam:~# zpool status pool1
pool: pool1
state: ONLINE
scan: none requested
config:

NAME STATE READ WRITE CKSUM
pool1 ONLINE 0 0 0
c3t0d0 ONLINE 0 0 0

errors: No known data errors

Bayo

Bayo

B and F is the correct answer.