diff --git a/src/pmdas/dm/Install b/src/pmdas/dm/Install index d9cb5fd..e942ff7 100644 --- a/src/pmdas/dm/Install +++ b/src/pmdas/dm/Install @@ -12,7 +12,7 @@ # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License # for more details. # -# Install the DM PMDA +# Install the Device Mapper PMDA # . $PCP_DIR/etc/pcp.env @@ -21,6 +21,7 @@ iam=dm forced_restart=true pmda_interface=4 +pmns_name="dmcache dmthin" which dmsetup >/dev/null 2>&1 if [ $? -ne 0 ] diff --git a/src/pmdas/dm/Remove b/src/pmdas/dm/Remove index 94be3bd..64d75b4 100644 --- a/src/pmdas/dm/Remove +++ b/src/pmdas/dm/Remove @@ -12,13 +12,14 @@ # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License # for more details. # -# Remove the DMTHIN PMDA +# Remove the Device Mapper PMDA # . $PCP_DIR/etc/pcp.env . $PCP_SHARE_DIR/lib/pmdaproc.sh iam=dm +pmns_name="dmcache dmthin" pmdaSetup pmdaRemove exit 0 diff --git a/src/pmdas/dm/pmns b/src/pmdas/dm/pmns index 1c19748..97090dd 100644 --- a/src/pmdas/dm/pmns +++ b/src/pmdas/dm/pmns @@ -12,12 +12,7 @@ * for more details. */ -dm { - cache - thin -} - -dm.cache { +dmcache { size DM:0:0 metadata_blocksize DM:0:1 metadata_used DM:0:2 @@ -35,12 +30,12 @@ dm.cache { io_mode DM:0:14 } -dm.thin { +dmthin { pool vol } -dm.thin.pool { +dmthin.pool { size DM:1:0 transaction_id DM:1:1 metadata_used DM:1:2 @@ -53,7 +48,7 @@ dm.thin.pool { no_space_mode DM:1:9 } -dm.thin.vol { +dmthin.vol { size DM:2:0 num_mapped_sectors DM:2:1 highest_mapped_sector DM:2:2 diff --git a/src/pmdas/dm/root b/src/pmdas/dm/root index c429eae..d6bcb51 100644 --- a/src/pmdas/dm/root +++ b/src/pmdas/dm/root @@ -4,6 +4,9 @@ #include -root { dm } +root { + dmcache + dmthin +} #include "pmns"