Description of problem: We need Hyperic's SIGAR platform libraries to support lofs and tmpfs. Add to os/solaris/solaris_sigar.c: if (strEQ(type, "(lofs|tmpfs)")) so that these filesystems would be reported. No idea how complex it would be beyond that, as both lofs and tmpfs are somewhat "dynamic" (can be moved or changed on the fly, as long as no file handles are open on the volume). lofs is new in Solaris 10. Note that other platforms may support lofs, but Solaris 10 is the only platform I can confirm as supporting it.
Temporarily adding the keyword "SubBug" so we can be sure we have accounted for all the bugs. keyword: new = Tracking + FutureFeature + SubBug
making sure we're not missing any bugs in rhq_triage
SIGAR actually does expose the lofs and tmpfs fielsystems. We'd have to update our discovery code as follows to add support for them (thanks to Doug M from Hyperic for this info): You'll see those with: java -jar sigar.jar df Note the type will be 'unknown'. So you could put the logic in the caller (e.g. FileSystemDetector) to include these filesystems: for (int i=0; i<fslist.length; i++) { FileSystem fs = fslist[i]; String dirName = fs.getDirName(); switch (fs.getType()) { case FileSystem.TYPE_LOCAL_DISK: case FileSystem.TYPE_NETWORK: break; default: + if (!(fs.getDevName().equals("lofs") || fs.getDevName().equals("tmpfs")) continue; }
ips - what would be required to support this?
Done (rev 2a60df38568690f9b2b6a555e212c3a6934ea011) and pushed to master. Will be in 4.0.
*** Bug 590800 has been marked as a duplicate of this bug. ***
Verified on build#166 Executed below command on a Solaris box: bash-2.05# java -jar sigar-1.6.5.132.jar df Filesystem Size Used Avail Use% Mounted on Type /dev/dsk/c0t0d0s0 65G 8.6G 56G 14% / ufs/local /proc 0 0 0 - /proc proc/none mnttab 0 0 0 - /etc/mnttab mntfs/none fd 0 0 0 - /dev/fd fd/none swap 4.7G 48K 4.7G - /var/run tmpfs/none swap 4.7G 64K 4.7G - /tmp tmpfs/none /dev/dsk/c0t0d0s7 7.6M 1.0M 5.8M 17% /unused ufs/local /dev/dsk/c0t1d0s7 67G 4.1G 63G 7% /export ufs/local / 65G 8.6G 56G 14% /tmp/zzz lofs/none Marking as verified.
per 8/9 jon/dev support call. please retest as follows: make sure file system types on solaris get inventoried and appear in the resource tree.
Created attachment 522085 [details] SolarisFileSystems
I mounted file systems ( lofs and tmpfs) using mount commands mount -F lofs /sunil/test /sunil/test1 mount -F tmpfs /sunil/abc /sunil/def/ Sigar reports are displaying the tmpfs and lofs filsystems as below: [root@-sun-netra-09 lib]# java -jar sigar-1.6.5.132.jar df Filesystem Size Used Avail Use% Mounted on Type /dev/dsk/c0t0d0s0 129G 10G 118G 8% / ufs/local /proc 0 0 0 - /proc proc/none mnttab 0 0 0 - /etc/mnttab mntfs/none fd 0 0 0 - /dev/fd fd/none swap 4.9G 104K 4.9G - /var/run tmpfs/none /dev/dsk/c0t1d0s7 135G 11G 122G 9% /export ufs/local swap 4.9G 104K 4.9G - /tmp tmpfs/none /sunil/abc 4.9G 0 4.9G - /sunil/def tmpfs/none /sunil/test 129G 10G 118G 8% /sunil/test1 lofs/none n0abos-0.bos.redhat.com:/vol/archives_mp1/archives 2.0T 777G 1.2T 39% /qa/archive nfs/remote And installed agent on the solaris box, and discovered with discover -f command. And I had checked at UI, but it's not showing tmfs and lofs file systems. Please find the attached snapshot for the reference (553034_FilesystemsShowing.png) Solaris box details: Solaris 9 9/05 HW s9s_u9wos_06b SPARC JON Build details: JON 3.0.0 Beat1-7 build downloaded link https://brewweb.devel.redhat.com//buildinfo?buildID=178186
Here's the related SIGAR issue: https://jira.hyperic.com/browse/SIGAR-195
[master da3676e] and [master ff79822] should fix this once and for all.
Verified on build#392 (Version: 4.1.0-SNAPSHOT Build Number: 70a43d5) The file types lofs and tmpfs on solaris are inventoried and appearing in the resource tree. Please refer the screenshots for the lofs and tmpfs file types as displayed with the trait 'Drive Type'.
Created attachment 522288 [details] Screenshot_lofs
Created attachment 522289 [details] Screenshot_tmpfs
Bulk closing of old issues that are in VERIFIED state.