Project

General

Profile

Bug #146

Disk with rpool should can not be used for other zpools

Added by ? ? over 10 years ago. Updated over 10 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2010-09-04
Due date:
% Done:

0%

Estimated time:
Difficulty:
Tags:
Gerrit CR:

Description

Normally ,zfs rpool use Slice 0(cXtXdXs0) as the member driver?But "zpool create" allow the disk with rpool (cXtXdXp1) be used for other zpools, it's will make the OS faile to boot next time?and when we do this ,the command will be successful without any confirm or warring!!!
We should add a control ,Disk with rpool should can not be used for other zpools .

Example :
Warring!!! not not try follow command on your production system

root@egoodbtr-rac1:~# zpool create dpool raidz c8t0d0p1 c8t1d0p1
root@egoodbtr-rac1:~# zpool list
NAME SIZE USED AVAIL CAP HEALTH ALTROOT
dpool 31.8G 149K 31.7G 0% ONLINE -
rpool 15.9G 4.29G 11.6G 27% ONLINE -
root@egoodbtr-rac1:~# zpool status
pool: dpool
state: ONLINE
scrub: none requested
config:

NAME STATE READ WRITE CKSUM
dpool ONLINE 0 0 0
raidz1 ONLINE 0 0 0
c8t0d0p1 ONLINE 0 0 0
c8t1d0p1 ONLINE 0 0 0

errors: No known data errors

pool: rpool
state: ONLINE
scrub: none requested
config:

NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
mirror ONLINE 0 0 0
c8t0d0s0 ONLINE 0 0 0
c8t1d0s0 ONLINE 0 0 0

errors: No known data errors

Also available in: Atom PDF