I have to do patching in single user mode in solaris 10 zfs root pool. Before that I have to detach the root mirror pool so that if patching fails then I can boot from detached root mirror pool. Please let me know how can I detach root pool
bash-3.2# zpool status
pool: rpool
state: ONLINE
scan: resilvered 6.37G in 0h4m with 0 errors on Fri Nov 7 13:53:14 2014
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
c1t0d0s0 ONLINE 0 0 0
c1t1d0s0 ONLINE 0 0 0
errors: No known data errors
I would advice against detaching the mirror disk. Instead you can use "lucreate" to create another boot environment that you can patch, while keeping the original boot environment intact. Take a look here:
Thanks for the advice & reply also. But we dont have third disk for live upgrade, in our case s0 is having full disk space assign to it in zfs root pool.. So could you help us by providing the command to detach the mirrored root pool as well as if patching get fails how to boot from detached mirror root pool. As we are bit new to ZFS. If same thing need to be done on UFS then we are well aware of detaching the SVM & booting the disk from second mirror.
So instead of buying a few cheap hard drives and giving your systems room to breathe and redundancy in case of error, you're going to spend how many man-hours playing dipsy-doodle with your root file systems?
After you have read the link from my previous post, I would advice you to practise the patching on a lab system before trying to patch production server(s).