Software Development Kit (SDK) and API Discussions

Volumes related to VFILER

MOHAN1985
3,697 Views

Is there a command that list volumes associated with vfiler?. "vfiler run * vol status" lists the volumes against the vfiler which is shown in the header as below,

 

=====vfiler0

 <Volume List>

=====vfiler1

<Volume List>

 

Let me know if there is way to list volumes and vfilers in a tabular format like the one "df -V" does?

 

 

3 REPLIES 3

JoelEdstrom
3,668 Views

Hello,

 

Have you tried a 'vfiler status -r' at the filer/vfiler0 context?  You can also run that against a single vfiler such as 'vfiler status -r <vfiler_name>' to get information on just a particular vfiler, instead of every vfiler on that particular controller.

 

Hope this helps.

MOHAN1985
3,657 Views

Yes,  I've  tried  'vfiler status -r' at the filer/vfiler0 context. The output looks like the one below,

 

====vfiler0

 

vol1

vol2

vol3

 

====vfiler1

 

vol4

vol5

vol6

 

Is there a command that gives mapping between volume anf vfiler in a tabular format like a 1-1 mapping?

JoelEdstrom
3,654 Views

I'm not aware of anything on the filer itself that would give that kind of mapping such as:

 

vfiler1 - vol1

vfiler1 - vol2

vfiler2 - vol3

vfiler3 - vol4

etc.

 

It would be fairly easy to carve up the 'vfiler status -r' command to give you that kind of output, if you are familiar with any scripting languages.

 

Otherwise, do you have DFM/OCUM in your environment?  If so the 'dfm volume list' command would give you something close to what you are looking for with volume name and vfiler name on the same line.

Public