Hi Rich,

On Mar 4, 2009, at 9:30 AM, Richard Morris - Sun Microsystems - Burlington United States wrote:


Quick Background:
The pNFS project (http://opensolaris.org/os/project/nfsv41/) is adding a new DMU object set type which is used on the pNFS data server to store pNFS stripe DMU objects. A pNFS dataset gets created with the "zfs create" command and gets displayed using "zfs list".

Specific Question:
Should the pNFS datasets show up in the default "zfs list" output? Just as with ZFS file systems and ZVOLs, the number of pNFS datasets that exist on a data server will vary depending on the configuration.

Lisa,

In Solaris 10, ZFS datasets of all types show up in the default output of "zfs list". In Nevada, "zfs list" only shows by default datasets that are filesystems or volumes. Snapshots of filesystems or snapshots of volumes are not listed unless the pool level property called "listsnapshots", which is "off" by default, is set to "on".

So the answer to the specific question above is, in Nevada, pNFS datasets should show up in the default output from "zfs list" but that snapshots of pNFS datasets should not unless "listsnapshots" is on.

Thanks and I agree about when to (and not to) display snapshots.



However, with the addition of this new dataset type, it will be difficult to distinguish a ZFS volume from a pNFS dataset. So perhaps the default output of "zfs list" should also include the dataset type. Maybe something like this:

NAME                    TYPE   USED  AVAIL  REFER  MOUNTPOINT
pool/fs                   FS  9.77G  37.0G  9.77G  /pool/fs
pool/vol                ZVOL   512M  37.0G    16K  -
pool/pnfs               pNFS    31K  37.0G    15K  -

That is good feedback.  Thanks.

It is not perfect, but you can do this, currently:

(pnfs-17-21:/home/lisagab):6 % zfs list -o name,type,used,avail,refer,mountpoint NAME TYPE USED AVAIL REFER MOUNTPOINT
rpool                          filesystem    30.0G  37.0G  32.5K  /rpool
rpool/ROOT                     filesystem    18.2G  37.0G    18K  legacy
rpool/ROOT/snv_105             filesystem    18.2G  37.0G  6.86G  /
rpool/ROOT/snv_105/var         filesystem    11.4G  37.0G  11.4G  /var
rpool/dump                     volume        9.77G  37.0G  9.77G  -
rpool/export filesystem 40K 37.0G 21K / export rpool/export/home filesystem 19K 37.0G 19K / export/home
rpool/pnfsds                   pnfs-dataset    31K  37.0G    15K  -
rpool/pnfsds/47C80414080A4A42  pnfs-dataset    16K  37.0G    16K  -
rpool/swap                     volume        1.97G  38.9G  4.40M  -

Having the above be the default "zfs list" output is a simple change to make, but I can't commit do doing it unless, of course, there is buy in from the ZFS team. Does anyone have insight into any known problems it may cause to add the "type" property to the default output or why it was left out in the first place?

Thanks,
Lisa
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to