Hi Aaron An alternative method for you is: from arcapix.fs.gpfs import Nsds
from arcapix.fs.gpfs import Nsds nsd = Nsds() for n in nsd.values(): ... print n.device, n.id ... /gpfsblock/mmfs1-md1 md3200_001_L000 /gpfsblock/mmfs1-md2 md3200_001_L001 /gpfsblock/mmfs1-data1 md3200_001_L002 /gpfsblock/mmfs1-data2 md3200_001_L003 /gpfsblock/mmfs1-data3 md3200_001_L004 /gpfsblock/mmfs2-md1 md3200_002_L000
Ref: http://arcapix.com/gpfsapi/nsds.html Obviously you can filter a specific device by the usual Pythonic string comparators. Jez On 17/12/16 07:04, Luis Bolinches wrote:
Hi THe ts* is a good fear, they are internal commands bla bla bla you know that Have you tried mmlsnsd -X
-- Ystävällisin terveisin / Kind regards / Saludos cordiales / Salutations
Luis Bolinches Lab Services http://www-03.ibm.com/systems/services/labservices/
IBM Laajalahdentie 23 (main Entrance) Helsinki, 00330 Finland Phone: +358 503112585
"If you continually give you will continually have." Anonymous
----- Original message ----- From: Aaron Knister <aaron.s.knister@nasa.gov> Sent by: gpfsug-discuss-bounces@spectrumscale.org To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Cc: Subject: [gpfsug-discuss] translating /dev device into nsd name Date: Sat, Dec 17, 2016 6:24 AM Hi Everyone,
I'm curious about the most straightforward and fastest way to identify what NSD a given /dev device is. The best I can come up with is "tspreparedisk -D device_name" which gives me something like:
tspreparedisk:0:0A6535145840E2A6:/dev/dm-134::::::0:
that I can then parse and map the nsd id to the nsd name. I hesitate calling ts* commands directly and I admit it's perhaps an irrational fear, but I associate the -D flag with "delete" in my head and am afraid that some day -D may be just that and *poof* there go my NSD descriptors.
Is there a cleaner way?
-Aaron
-- Aaron Knister NASA Center for Climate Simulation (Code 606.2) Goddard Space Flight Center (301) 286-2776 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Ellei edellä ole toisin mainittu: / Unless stated otherwise above: Oy IBM Finland Ab PL 265, 00101 Helsinki, Finland Business ID, Y-tunnus: 0195876-3 Registered in Finland
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- *Jez Tucker* VP of Research and Development, ArcaStream jtucker@arcastream.com www.arcastream.com <http://www.arcastream.com> | Tw:@arcastream.com -- <http://pixitmedia.com> This email is confidential in that it is intended for the exclusive attention of the addressee(s) indicated. If you are not the intended recipient, this email should not be read or disclosed to any other person. Please notify the sender immediately and delete this email from your computer system. Any opinions expressed are not necessarily those of the company from which this email was sent and, whilst to the best of our knowledge no viruses or defects exist, no responsibility can be accepted for any loss or damage arising from its receipt or subsequent use of this email.
