Hi Sridhar,
Most of the answers to your questions are yes.
If I have a mirrored pool mypool, like this:
# zpool status mypool
pool: mypool
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
mypool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
c3t1d0 ONLINE 0 0 0
c3t2d0 ONLINE 0 0 0
errors: No known data errors
and I split it like this:
# zpool split mypool mypool_snap
# zpool status
pool: mypool
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
mypool ONLINE 0 0 0
c3t1d0 ONLINE 0 0 0
Only mypool is currently imported. The new pool mypool_snap is exported
by default. So, you can either import it on host1 or host2 if the LUNs
are available on both systems.
# zpool import mypool_snap
# zpool status mypool mypool_snap
pool: mypool
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
mypool ONLINE 0 0 0
c3t1d0 ONLINE 0 0 0
errors: No known data errors
pool: mypool_snap
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
mypool_snap ONLINE 0 0 0
c3t2d0 ONLINE 0 0 0
errors: No known data errors
In current Solaris releases, only ZFS file systems are mounted
read-only. The ability to import a pool read-only is available with
CR 6720531.
If you import mypool_snap on host2, it will not be available or
visible on host1.
Thanks,
Cindy
On 10/07/10 15:36, sridhar surampudi wrote:
Hi Cindys,
Thanks for your mail. I have some further queries here based on your answer.
Once zfs split creates new pool (as per below example it is mypool_snap) can I
access mypool_snap just by importing on the same host Host1 ??
what is the current access method of newly created mypool_snap ? is it read-write or read only ?
If it is read-write is there a way I can make it read only so that backup application cannot misuse.
Also I want (or going to use ) mypool_snap as read only on alternate host i.e. host2. Could you please let me know what all steps I need to take on host1 and then on host2 once zpool split is done.
I can guess as after zpool split, mypool_snap is not visible to host1. Once
needs to import explicitly. Instead of importing on same host i.e. host1 can i
go to host2 where split node devices are visible and directly run zpool import
mypool_snap which will be further used as read only for backup ??
Could you please provide more details.
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss