Tejung Ted Chiang
2006-Oct-04 06:22 UTC
[zfs-discuss] Questions of ZFS mount point and import Messages
Hi Experts, I got two questions below. 1. [b]Is there any mechanism to protect the zfs mount point from being renamed via command mv?[/b] Now I can use "mv" to rename the mount point which has zfs filesystem currently mounted. Of course solaris will find no mnt-pt to mount the zfs filesystem. If I proceed any properties change and do ZFS destroy, I''ll have some uneasily recover error. So is there any way to protect the mnt-pt from undesired manipulate? 2. [b]How do we know the zpool by which systems is currently used?[/b] "zpool import" command does not tell us the system id information. It is hard to tell the dependencies of pools and the systems in a SAN environment. And do not know which pools are exactly exported. Thank you all in advance. Regards, Ted This message posted from opensolaris.org
Eric Schrock
2006-Oct-04 16:08 UTC
[zfs-discuss] Questions of ZFS mount point and import Messages
On Tue, Oct 03, 2006 at 11:22:24PM -0700, Tejung Ted Chiang wrote:> Hi Experts, > > I got two questions below. > > 1. [b]Is there any mechanism to protect the zfs mount point from being > renamed via command mv?[/b] Now I can use "mv" to rename the mount > point which has zfs filesystem currently mounted. Of course solaris > will find no mnt-pt to mount the zfs filesystem. If I proceed any > properties change and do ZFS destroy, I''ll have some uneasily recover > error. So is there any way to protect the mnt-pt from undesired > manipulate?No, there is no way to prevent this.> 2. [b]How do we know the zpool by which systems is currently used?[/b] > "zpool import" command does not tell us the system id information. It > is hard to tell the dependencies of pools and the systems in a SAN > environment. And do not know which pools are exactly exported.This has bbeen discussed at length recently on this list. The underlying RFE is: 6282725 hostname/hostid should be stored in the label - Eric -- Eric Schrock, Solaris Kernel Development http://blogs.sun.com/eschrock
Wee Yeh Tan
2006-Oct-05 00:46 UTC
[zfs-discuss] Questions of ZFS mount point and import Messages
On 10/5/06, Eric Schrock <eric.schrock at sun.com> wrote:> On Tue, Oct 03, 2006 at 11:22:24PM -0700, Tejung Ted Chiang wrote: > > 2. [b]How do we know the zpool by which systems is currently used?[/b] > > "zpool import" command does not tell us the system id information. It > > is hard to tell the dependencies of pools and the systems in a SAN > > environment. And do not know which pools are exactly exported. > > This has bbeen discussed at length recently on this list. The > underlying RFE is: > > 6282725 hostname/hostid should be stored in the labelWe are starting to build up our SAN and ZFS will be a heavy player here. For now, what we intend to do is to tag the pool with hostname on import. It''s still suscepticle to human error so 6282725 is going to be really helpful. -- Just me, Wire ...