cancel
Showing results for 
Search instead for 
Did you mean: 
Create Post
Level 11

Listing of all Volumes

Jump to solution

Is there a way to get a listing of all volumes and select multiple volumes to delete in NPM 10.2.2?

Thanks in advance.

1 Solution

The fastest way to do something like this would be a SQL query against the Volumes table.  If the type is swap space then you'd run something like:

Delete From Volumes where VolumeType = 'swap space'

If you want to delete via a common name then you could use

Delete From Volumes Where Caption LIKE '%/home%'

Regards,

Matthew Harvey

Loop1 Systems

View solution in original post

0 Kudos
7 Replies
Level 11

The SQL Query worked.

Thanks Matthew.

0 Kudos

This leads to a secondary question.....Nodes, Interfaces, & Volumes are all treated the same by NPM as they are all elements.  That being said why is it when you go to the manage node page can you only search by Nodes & Interfaces.  Not all users are comfortable doing a mass delete via SQL but without that option the only method for a user to accomplish this is by spending the arduous task of manually selecting each one and deleting it which is far from efficient.

0 Kudos

Mike,

I've asked the same question myself.  I'm not sure why Volumes was not added as an option under manage nodes, especially with the volumes being counted as managed elements.  It seems to be that it would be something that should be included.

Regards,

Matthew Harvey

0 Kudos
Level 9

I am interested in this too.

For example lets say I no longer want to monitor volume "/home" or "swap space" on 100 linux machines.

How can I do this without manually selecting each node, expanding and selecting that volume to delete?

It would be nice to have a drop down for Volumes under manage nodes instead of just nodes & interfaces.

0 Kudos

The fastest way to do something like this would be a SQL query against the Volumes table.  If the type is swap space then you'd run something like:

Delete From Volumes where VolumeType = 'swap space'

If you want to delete via a common name then you could use

Delete From Volumes Where Caption LIKE '%/home%'

Regards,

Matthew Harvey

Loop1 Systems

View solution in original post

0 Kudos
Community Manager
Community Manager

Try:

To Remove old Volume (and Interfaces)

Go into Settings> Manage Nodes, then you can expand out the Node, select the Volumes (and Interfaces) that are no longer listed in List Resources, and select Delete.

Level 14

You might try using the CUSTOM PROPERTY EDITOR and select VOLUMES. You can select multiples and right click and select DELETE.

0 Kudos