mmlsrecoverygroup ess5k_78AF89A -L --pdisk -Y | awk -F: '{if ($2=="pdisk" && 
$3!="HEADER" && $14!="4" && $9=="DA1" && $12=="ok" && $13=="normal"){print $0 
}}'

Is as far as I got from last nights posts.... Which returns "nothing" on 
success and a list of disks with missing paths on the ESS.

Command probably needs improving and adding to mmhealth ;)

but I'm to used to checking the multipath output on disk trays so this looks 
like a very similar issue.






Peter Childs
ITS Research Storage
Phone: 020 7882 8393 or on Teams
Please contact Research Support via Ticket by 
email:[email protected] or 
https://support.research.its.qmul.ac.uk/
Please check the Research blog at https://blog.hpc.qmul.ac.uk

________________________________________
From: gpfsug-discuss <[email protected]> on behalf of 
[email protected] <[email protected]>
Sent: Tuesday, May 10, 2022 11:18 PM
To: [email protected]
Subject: [EXTERNAL] Re: [gpfsug-discuss] ESS and Disk Paths

CAUTION: This email originated from outside of QMUL. Do not click links or open 
attachments unless you recognise the sender and know the content is safe.


Fine.. challenge accepted

awk '/disk/&&!/RAID/{print; l++} END {printf "%0.2f\n", l/2}'

$ ( echo "disk123"; echo disk234; echo disk897; echo "RAID") | awk 
'/disk/&&!/RAID/{print; l++} END {printf "%0.2f\n",l/2}'
disk123
disk234
disk897
1.50

-----Original Message-----
From: gpfsug-discuss <[email protected]> On Behalf Of Jonathan 
Buzzard
Sent: Tuesday, May 10, 2022 3:09 PM
To: [email protected]
Subject: Re: [gpfsug-discuss] ESS and Disk Paths

On 10/05/2022 20:57, Wahl, Edward wrote:

> There is much you can do with 'lsscsi' and "mmlspdisk" and whatnot.
>   Or something like "mmgetpdisktopology  >
> /tmp/mmgetpdisktopology.out; topsummary /tmp/mmgetpdisktopology.out   > 
> topsummary"
>
> mmlspdisk should all 4 paths with 2 being notenabled.  Look for
> missing paths?  This may be the fastest.
> " device =
> "//ibmgssio5-hs.ten/dev/sdo(notEnabled),//ibmgssio5-hs.ten/dev/sdfe(notEnabled),//ibmgssio6-hs.ten/dev/sdo,//ibmgssio6-hs.ten/dev/sdfe"
>   > "

On a DSS-G you can hop onto one of the servers and do

lsscsi | grep disk | grep -v RAID | awk 'END {print NR/2}'

The number should be the number of disks that you have including the log tip 
drives. If it's not then there is a path issue. I would imagine it's the same 
on the ESS.

If I thought about it for a bit you could ditch the two greps and do it all in 
Awk. If the Awk is too complicated just replace it with 'wc -l'
but you will end up with a number that should be twice the number of drives.


JAB.

--
Jonathan A. Buzzard                         Tel: +44141-5483420
HPC System Administrator, ARCHIE-WeSt.
University of Strathclyde, John Anderson Building, Glasgow. G4 0NG

_______________________________________________
gpfsug-discuss mailing list
gpfsug-discuss at gpfsug.org
https://urldefense.com/v3/__http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org__;!!F9svGWnIaVPGSwU!sl4vQf2qHT1fXJuzhho-JRymyZj12LRJ9FWZDM8-GQevtCoEp6PLOLnqSa5n94u0nmRXL0WEncaSGiYck_o6XaO3xk5vf4OpaJ3ChQ$


_______________________________________________
gpfsug-discuss mailing list
gpfsug-discuss at gpfsug.org
http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org

Reply via email to