Duplicate Volume Extension Attribute

burdett
Contributor

Does any one have have an extension attribute script that will report mounted Duplicate Volumes? Duplicate Volumes are creating havoc with our backup system, and I'm looking to report these with an Extension Attribute so I can send a email using a smart group. My grep skill are a little lacking, any assistance is appreciated.

Here is a sample diskutil list command gave me from a resent offending device. Once I unmounted /dev/disk5 and /dev/disk6 the backup system was happy.

surg-XXXXXXX-Deci (10.XXX.XXX.XXX) /dev/disk0 (internal, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *500.3 GB disk0 1: EFI EFI 209.7 MB disk0s1 2: Apple_APFS Container disk1 500.1 GB disk0s2 /dev/disk1 (synthesized): #: TYPE NAME SIZE IDENTIFIER 0: APFS Container Scheme - +500.1 GB disk1 Physical Store disk0s2 1: APFS Volume Macintosh HD 329.3 GB disk1s1 2: APFS Volume Preboot 19.8 MB disk1s2 3: APFS Volume Recovery 514.9 MB disk1s3 4: APFS Volume VM 3.2 GB disk1s4 /dev/disk2 (disk image): #: TYPE NAME SIZE IDENTIFIER 0: Apple_partition_scheme +17.9 MB disk2 1: Apple_partition_map 32.3 KB disk2s1 2: Apple_HFS Flash Player 17.8 MB disk2s2 /dev/disk3 (disk image): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme +609.0 MB disk3 1: Apple_HFS RecoveryHDMeta 609.0 MB disk3s1 /dev/disk4 (disk image): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme +2.1 GB disk4 1: Apple_HFS OS X Base System 2.0 GB disk4s1 /dev/disk5 (disk image): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme +609.0 MB disk5 1: Apple_HFS RecoveryHDMeta 609.0 MB disk5s1 /dev/disk6 (disk image): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme +2.1 GB disk6 1: Apple_HFS OS X Base System 2.0 GB disk6s1
0 REPLIES 0