HAMMER snapshot access from NFS client

看板DFBSD_kernel作者時間16年前 (2009/11/18 16:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
What is recommended setup for HAMMER snapshot access from NFS client? It would be nice if we got a default setup, so it just worked out of the bo= x. With HAMMER version 3 we got easy default slave PFS snapshot location, nice. But this moved dir with snapshots symlinks out of PFS (as needed for slave = PFS), which makes access from NFS client more convoluted. Solution I can come up with is a bit convoluted: NFS export /var/hammer, and make small script to convert snapshot symlink, producing something like <NFS-client-PFS-mount>@@<tid>. In HAMMER version 2-, I make symlinks with relative path names: in snapshots/rel: ../../@@<tid> Ahh this idea could be used on HAMMER version 3: e.g.: client# mount -t nfs srv:/PFS /LOCAL client# mount -t nfs srv:/var/hammer/HAMMER/PFS /LOCAL/snapshots will give access to snapshots as /LOCAL/hammer/rel/snap-... (rel/ could also be symlinked from /var/hammer/remote/LOCAL on client) =B4snapshots=B4 could be another name if it collides with HAMMER version 2-= use. Generating the rel/ symlinks could be part of =B4hammer cleanup=B4. Any more straight forward ideas? -thomas
文章代碼(AID): #1B0x47Us (DFBSD_kernel)