Ben Rockwood
2007-Feb-05 10:03 UTC
[zfs-discuss] snapdir visable recursively throughout a dataset
Is there an existing RFE for, what I''ll wrongly call, "recursively visable snapshots"? That is, .zfs in directories other than the dataset root. Frankly, I don''t need it available in all directories, although it''d be nice, but I do have a need for making it visiable 1 dir down from the dataset root. The problem is that while ZFS and Zones work smoothly together for moving, cloning, sizing, etc, you can''t view .zfs/ from within the zone because the zone root is one dir down: /zones <-- Dataset /zones/myzone01 <-- Dataset, .zfs is located here. /zones/myzone01/root <-- Directory, want .zfs Here! The ultimate idea is to make ZFS snapdirs accessable from within the zone. benr. This message posted from opensolaris.org
Robert Milkowski
2007-Feb-05 12:57 UTC
[zfs-discuss] snapdir visable recursively throughout a dataset
Hello Ben, Monday, February 5, 2007, 11:03:37 AM, you wrote: BR> Is there an existing RFE for, what I''ll wrongly call, BR> "recursively visable snapshots"? That is, .zfs in directories other than the dataset root. BR> Frankly, I don''t need it available in all directories, although BR> it''d be nice, but I do have a need for making it visiable 1 dir BR> down from the dataset root. The problem is that while ZFS and BR> Zones work smoothly together for moving, cloning, sizing, etc, you BR> can''t view .zfs/ from within the zone because the zone root is one dir down: BR> /zones <-- Dataset BR> /zones/myzone01 <-- Dataset, .zfs is located here. BR> /zones/myzone01/root <-- Directory, want .zfs Here! BR> The ultimate idea is to make ZFS snapdirs accessable from within the zone. I haven''t tried it but what if you mounted ro via loopback into a zone /zones/myzone01/root/.zfs is loop mounted in RO to /zones/myzone01/.zfs ? -- Best regards, Robert mailto:rmilkowski at task.gda.pl http://milek.blogspot.com
Dale Ghent
2007-Feb-05 22:52 UTC
[zfs-discuss] snapdir visable recursively throughout a dataset
On Feb 5, 2007, at 7:57 AM, Robert Milkowski wrote:> I haven''t tried it but what if you mounted ro via loopback into a zone > > > /zones/myzone01/root/.zfs is loop mounted in RO to /zones/ > myzone01/.zfsI''ve tried something similar but found out that vfstab is evaluated prior to zpool import, so any lofs directives in vfstab will fail if the source of the lofs mount is in ZFS :/ /dale
Ben Rockwood
2007-Feb-06 01:10 UTC
[zfs-discuss] snapdir visable recursively throughout a dataset
Robert Milkowski wrote:> I haven''t tried it but what if you mounted ro via loopback into a zone > > > /zones/myzone01/root/.zfs is loop mounted in RO to /zones/myzone01/.zfs >That is sooooooooooooooooo wrong. ;) Besides just being evil, I doubt it''d work. And if it does, it probly shouldn''t. I think I''m the only one that gets a rash when using LOFI. benr.
Darren J Moffat
2007-Feb-06 09:13 UTC
[zfs-discuss] snapdir visable recursively throughout a dataset
Ben Rockwood wrote:> Robert Milkowski wrote: >> I haven''t tried it but what if you mounted ro via loopback into a zone >> >> >> /zones/myzone01/root/.zfs is loop mounted in RO to /zones/myzone01/.zfs >> > > That is sooooooooooooooooo wrong. ;) > > Besides just being evil, I doubt it''d work. And if it does, it probly > shouldn''t. I think I''m the only one that gets a rash when using LOFI.lofi or lofs ? lofi - Loopback file driver Makes a block device from a file lofs - loopback virtual file system Makes a file system from a file system -- Darren J Moffat
Ben Rockwood
2007-Feb-06 09:19 UTC
[zfs-discuss] snapdir visable recursively throughout a dataset
Darren J Moffat wrote:> Ben Rockwood wrote: >> Robert Milkowski wrote: >>> I haven''t tried it but what if you mounted ro via loopback into a zone >>> >>> >>> /zones/myzone01/root/.zfs is loop mounted in RO to /zones/myzone01/.zfs >>> >> >> That is sooooooooooooooooo wrong. ;) >> >> Besides just being evil, I doubt it''d work. And if it does, it >> probly shouldn''t. I think I''m the only one that gets a rash when >> using LOFI. > > lofi or lofs ? > > lofi - Loopback file driver > Makes a block device from a file > lofs - loopback virtual file system > Makes a file system from a file systemYes, I know. I was referring more so to loopback happy people in general. :) benr.
Robert Milkowski
2007-Feb-06 11:40 UTC
[zfs-discuss] snapdir visable recursively throughout a dataset
Hello Ben, Tuesday, February 6, 2007, 10:19:54 AM, you wrote: BR> Darren J Moffat wrote:>> Ben Rockwood wrote: >>> Robert Milkowski wrote: >>>> I haven''t tried it but what if you mounted ro via loopback into a zone >>>> >>>> >>>> /zones/myzone01/root/.zfs is loop mounted in RO to /zones/myzone01/.zfs >>>> >>> >>> That is sooooooooooooooooo wrong. ;) >>> >>> Besides just being evil, I doubt it''d work. And if it does, it >>> probly shouldn''t. I think I''m the only one that gets a rash when >>> using LOFI. >> >> lofi or lofs ? >> >> lofi - Loopback file driver >> Makes a block device from a file >> lofs - loopback virtual file system >> Makes a file system from a file systemBR> Yes, I know. I was referring more so to loopback happy people in BR> general. :) What''s wrong with it? Every sparse zone you''ve got in a system is using lofs anyway. -- Best regards, Robert mailto:rmilkowski at task.gda.pl http://milek.blogspot.com