I understand that usually zfs need to be created inside a zpool to store files/data. However, I quick test shows that I actually can put files directly inside a mounted zpool without creating any zfs. After zpool create -f tank c0d1 I actually can copy/delete any files into /tank. I can also create dir inside /tank. I haven''t seen any documentation talking about such an usage. Just wonder whether it is allowed or is there any problem that I use zpool this way? -- This message posted from opensolaris.org
On Sun, Oct 11, 2009 at 01:00, Hua <hua_qiu at hotmail.com> wrote:> I understand that usually zfs need to be created inside a zpool to store files/data. > > However, I quick test shows that I actually can put files directly inside a mounted zpool without creating any zfs. > > After > zpool create -f tank c0d1 > > I actually can copy/delete any files into /tank. I can also create dir inside /tank. > > I haven''t seen any documentation talking about such an usage. Just wonder whether it is allowed or is there any problem that I use zpool this way?A zfs filesystem is created for you when you create the pool. It is the zfs filsystem that is mounted, not the pool. So yes, you can use that.
Hua wrote:> I understand that usually zfs need to be created inside a zpool to store files/data. > > However, I quick test shows that I actually can put files directly inside a mounted zpool without creating any zfs. > > After > zpool create -f tank c0d1 > > I actually can copy/delete any files into /tank. I can also create dir inside /tank. > > I haven''t seen any documentation talking about such an usage. Just wonder whether it is allowed or is there any problem that I use zpool this way? >As you have seen, you get one zfs filesystem for free when the zpool is created. You can use it just like one you create explicitly, and it shows up in "zfs list". -- Andrew
Hua, The behavior below is described here: http://docs.sun.com/app/docs/doc/819-5461/setup-1?a=view The top-level /tank file system cannot be removed so it is less flexible then using descendent datasets. If you want to create snapshot or clone and later promote the /tank clone, then it is best to create separate ZFS file systems rather than using /tank. Cindy On 10/10/09 17:00, Hua wrote:> I understand that usually zfs need to be created inside a zpool to store files/data. > > However, I quick test shows that I actually can put files directly inside a mounted zpool without creating any zfs. > > After > zpool create -f tank c0d1 > > I actually can copy/delete any files into /tank. I can also create dir inside /tank. > > I haven''t seen any documentation talking about such an usage. Just wonder whether it is allowed or is there any problem that I use zpool this way?