Is there some handy way to make notations about zpools. Something that would show up in the output of `zpool status'' (or some other command) I mean descriptive notes maybe outlining the zpools'' purpose? Browsing around in `man zpool'' I don''t see that, but may be overlooking it. The man page is near 1000 lines.
On Sun, Mar 29, 2009 at 8:54 AM, Harry Putnam <reader at newsguy.com> wrote:> Is there some handy way to make notations about zpools. ?Something > that would show up in the output of `zpool status'' (or some other > command) > > I mean descriptive notes maybe outlining the zpools'' purpose? > > Browsing around in `man zpool'' I don''t see that, but may be > overlooking it. ?The man page is near 1000 lines. > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >You can add user properties to file systems. But afaik they would not show up in zpool status. For example: zfs set note:purpose="This file system is important" zfs get note:purpose somefilesystem Maybe that helps... -- Brent Jones brent at servuhome.net
Brent Jones <brent at servuhome.net> writes:> zfs set note:purpose="This file system is important" > > zfs get note:purpose somefilesystem > > Maybe that helps...Heck of a start... thanks. It would be nice to be able to find that stuff per zpool though, because to me it gets kind of confusing where zfs filesytems stop and regular heiarchy begins.. also I seem to end up mounting some of my zfs filesystem in places that are not really in the proper order far as the root is concerned. Like zfs create rpool/mysystem/downTheTree zfs set mountpoint=/downTheTree rpool/mysystem/downTheTree You can''t tell at a glance where it belongs. But I guess there are probably other zfs commands that would find all the zfs systems soon enough.
On Sun, 29 Mar 2009, Harry Putnam wrote:> Brent Jones <brent at servuhome.net> writes: > >> zfs set note:purpose="This file system is important" >> >> zfs get note:purpose somefilesystem >> >> Maybe that helps... > > Heck of a start... thanks. It would be nice to be able to find that > stuff per zpool though, because to me it gets kind of confusing whereSimply substitute ''zfs'' with ''zpool'' and ''pool'' for ''somefilesystem''. Both the ''zfs'' and ''zpool'' commands support similar syntax.> zfs filesytems stop and regular heiarchy begins.. also I seem to end > up mounting some of my zfs filesystem in places that are not really in > the proper order far as the root is concerned.A useful way to obtain the mount point for a directory is with the ''df'' command. Just do ''df .'' while in a directory to see where its filesystem mount point is: % df . Filesystem 1K-blocks Used Available Use% Mounted on Sun_2540/home/bfriesen 119677846 65811409 53866437 55% /home/bfriesen Bob -- Bob Friesenhahn bfriesen at simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
Bob Friesenhahn <bfriesen at simple.dallas.tx.us> writes: [...]> A useful way to obtain the mount point for a directory is with the > df'' command. Just do ''df .'' while in a directory to see where its > filesystem mount point is: > > % df . > Filesystem 1K-blocks Used Available Use% Mounted on > Sun_2540/home/bfriesen > 119677846 65811409 53866437 55% /home/bfriesenNice, I see by default it appears the gnu/bin is put ahead of /bin in $PATH, or maybe some my meddling did it, but I see running the Solaris df several more and confusing entries too: /system/contract (ctfs ): 0 blocks 2147483609 files [...] /system/object (objfs ): 0 blocks 2147483416 files /etc/dfs/sharetab (sharefs ): 0 blocks 2147483646 files
> >> A useful way to obtain the mount point for a directory is with the >> df'' command. ?Just do ''df .'' while in a directory to see where its >> filesystem mount point is: >> >> % df . >> Filesystem ? ? ? ? ? 1K-blocks ? ? ?Used Available Use% Mounted on >> Sun_2540/home/bfriesen >> ? ? ? ? ? ? ? ? ? ? ?119677846 ?65811409 ?53866437 ?55% /home/bfriesen > > > Nice, I see by default it appears the gnu/bin is put ahead of /bin in > $PATH, or maybe some my meddling did it, but I see running the Solaris > df several more and confusing entries too: > > /system/contract ? (ctfs ? ? ? ? ? ? ?): ? ? ? 0 blocks 2147483609 filesAdd -h or -k to df: df -h .
Mattias Pantzare <pantzer at ludd.ltu.se> writes:>> Nice, I see by default it appears the gnu/bin is put ahead of /bin in >> $PATH, or maybe some my meddling did it, but I see running the Solaris >> df several more and confusing entries too: >> >> /system/contract ? (ctfs ? ? ? ? ? ? ?): ? ? ? 0 blocks 2147483609 files > > Add -h or -k to df: > > df -h .It wasn''t the `blocks'' that confuses me...