on the ZFS troubleshoot guide list some methods based on snap
this blog present another simple method that is based on live upgrade (tested on s10u10)
problem: two hdd c0t0d0 and c0t1d0 as mirrored rpool, user want to split the rpool into two zpool: rpool and dpool
- zpool split rpool rpool2 c0t1d0s0
- zpool destroy rpool2
- partition c0t1d0s0 into two slice c0t1d0s0 and c0t1d0s1
- zpool create -f rpool2 c0t1d0s0
- lucreate -c c0t0d0s0 -n c0t1d0s0 -p rpool2
- luactivate c0t1d0s0
- init 6
- you have two BE c0t0d0s0 and c0t1d0s0 and new root pool is rpool2
- ludelete -f c0t0d0s0
- zpool destroy -f rpool
- partition c0t0d0s0 into two slice c0t0d0s0 and c0t0d0s1 (or use VTOC)
- zpool create -f rpool c0t0d0s0
- lucreate -n ct0d0s0 -p rpool
- luactivate c0t0d0s0
- init 6
- ludelete -f c0t1d0s0
- zpool destroy rpool2
- zpool attach -f rpool c0t0d0s0 c0t1d0s0
- zpool create -f dpool mirror c0t0d0s1 c0t1d0s1
No comments:
Post a Comment