Is it possible to have a shared LUN between 2 servers using zfs? The server can see both LUN''s but when I do an impoer I get: bash-3.00# zpool import pool: logs id: 3700399958960377217 state: ONLINE status: The pool was last accessed by another system. action: The pool can be imported using its name or numeric identifier and the ''-f'' flag. see: http://www.sun.com/msg/ZFS-8000-EY config: logs ONLINE c1t600144F0E849ECE300004CC17CAB000Dd0 ONLINE bash-3.00# zpool import logs cannot import ''logs'': pool may be in use from other system, it was last accessed by pbmaster1 (hostid: 0x84fabfb5) on Fri Oct 22 07:57:53 2010 use ''-f'' to import anyway When I do import it using the -f I can''t see the files created on the other node. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20101022/a844d5fa/attachment.html>
Hi Tony, Am 22.10.10 14:07, schrieb Tony MacDoodle:> Is it possible to have a shared LUN between 2 servers using zfs? The > server can see both LUN''s but when I do an impoer I get: > > > bash-3.00# zpool import > pool: logs > id: 3700399958960377217 > state: ONLINE > status: The pool was last accessed by another system. > action: The pool can be imported using its name or numeric identifier and > the ''-f'' flag. > see: http://www.sun.com/msg/ZFS-8000-EY > config: > > logs ONLINE > c1t600144F0E849ECE300004CC17CAB000Dd0 ONLINE > bash-3.00# zpool import logs > cannot import ''logs'': pool may be in use from other system, it was > last accessed by pbmaster1 (hostid: 0x84fabfb5) on Fri Oct 22 07:57:53 > 2010 > use ''-f'' to import anyway > > When I do import it using the -f I can''t see the files created on the > other node. > >ZFS is not a clustered file system, which can be mounted on several computers at the same time. Mounting a non-clustered file system on multiple nodes almost guarantees that you damage your file system immediately. So, don''t do that! Cheers, budy
On Fri, October 22, 2010 08:07, Tony MacDoodle wrote:> Is it possible to have a shared LUN between 2 servers using zfs? The > server can see both LUN''s but when I do an impoer I get:[...]> When I do import it using the -f I can''t see the files created on the > other node.No, it is not possible. ZFS is not a clustered/shared file system. If you want that functionality on Solaris you''ll need to get something like QFS: http://en.wikipedia.org/wiki/QFS Under Linux a good example would be: http://en.wikipedia.org/wiki/Global_File_System Many machines can see the LUNs, but a ZFS pool can only be mounted by one system at a time. Having multiple machines seeing the pools is handy for high availability fail over: http://en.wikipedia.org/wiki/Solaris_Cluster