cancel
Showing results for 
Search instead for 
Did you mean: 

LUN removal in Solaris 10 10/09 with VxVM 5.1

ferocci
Level 2

Hello,

I was assigned the removal of 86 unused LUNs in:

# uname -a
SunOS server 5.10 Generic_142900-09 sun4u sparc SUNW,SPARC-Enterprise
#
# cat /etc/release
                      Solaris 10 10/09 s10s_u8wos_08a SPARC
           Copyright 2009 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                           Assembled 16 September 2009
#
# pkginfo -l VRTSvxvm
   PKGINST:  VRTSvxvm
      NAME:  Binaries for VERITAS Volume Manager by Symantec
  CATEGORY:  system
      ARCH:  sparc
   VERSION:  5.1,REV=10.06.2009.22.05
   BASEDIR:  /
    VENDOR:  Symantec Corporation
      DESC:  Virtual Disk Subsystem
    PSTAMP:  Veritas-5.1
  INSTDATE:  Jun 23 2010 15:21
   HOTLINE:  http://www.symantec.com/business/support/assistance_care.jsp
    STATUS:  completely installed
     FILES:      885 installed pathnames
                  37 shared pathnames
                 109 directories
                 372 executables
              359788 blocks used (approx)

It's been a long time since I worked with VxVM 5.1, but remember that when we see disks like online thinrclm in that version, we needed to implement a special procedure to eliminate first the subdisks (something like reclaim).

# vxdisk -oalldgs list | grep -i fas3140
fas31402_0   auto:cdsdisk    SRP400_16    SRP400dg     online thinrclm
fas31402_1   auto:cdsdisk    SRP400_17    SRP400dg     online thinrclm
fas31402_2   auto:cdsdisk    SRP400_18    SRP400dg     online thinrclm
fas31402_3   auto:cdsdisk    SRP400_19    SRP400dg     online thinrclm
fas31402_4   auto:cdsdisk    SRP400_20    SRP400dg     online thinrclm
fas31402_5   auto:cdsdisk    SRP400_21    SRP400dg     online thinrclm
fas31402_6   auto:cdsdisk    SRP400_14    SRP400dg     online thinrclm
fas31402_7   auto:cdsdisk    SRP400_22    SRP400dg     online thinrclm
fas31402_8   auto:cdsdisk    SRP400_24    SRP400dg     online thinrclm
fas31402_9   auto:cdsdisk    SRP400_23    SRP400dg     online thinrclm
fas31402_10  auto:cdsdisk    SRP400_25    SRP400dg     online thinrclm
fas31402_11  auto:cdsdisk    SRP400_26    SRP400dg     online thinrclm
fas31402_12  auto:cdsdisk    SRP400_36    SRP400dg     online thinrclm
fas31402_13  auto:cdsdisk    SRP400_27    SRP400dg     online thinrclm
fas31402_14  auto:cdsdisk    SRP400_28    SRP400dg     online thinrclm
fas31402_15  auto:cdsdisk    SRP400_29    SRP400dg     online thinrclm
fas31402_16  auto:cdsdisk    SRP400_30    SRP400dg     online thinrclm
fas31402_17  auto:cdsdisk    SRP400_31    SRP400dg     online thinrclm
fas31402_18  auto:cdsdisk    SRP400_32    SRP400dg     online thinrclm
fas31402_19  auto:cdsdisk    SRP400_15    SRP400dg     online thinrclm
fas31402_20  auto:cdsdisk    SRP400_33    SRP400dg     online thinrclm
fas31402_21  auto:cdsdisk    SRP400_34    SRP400dg     online thinrclm
fas31402_22  auto:cdsdisk    SRP400_35    SRP400dg     online thinrclm
fas31402_23  auto:cdsdisk    SRP400_37    SRP400dg     online thinrclm
fas31402_24  auto:cdsdisk    SRP400_38    SRP400dg     online thinrclm
fas31402_25  auto:cdsdisk    SRP400_39    SRP400dg     online thinrclm
fas31402_26  auto:cdsdisk    SRP400_01    SRP400dg     online thinrclm
fas31402_27  auto:cdsdisk    SRP400_02    SRP400dg     online thinrclm
fas31402_28  auto:cdsdisk    SRP400_03    SRP400dg     online thinrclm
fas31402_29  auto:cdsdisk    SRP400_04    SRP400dg     online thinrclm
fas31402_30  auto:cdsdisk    SRP400_05    SRP400dg     online thinrclm
fas31402_31  auto:cdsdisk    SRP400_06    SRP400dg     online thinrclm
fas31402_32  auto:cdsdisk    SRP400_07    SRP400dg     online thinrclm
fas31402_33  auto:cdsdisk    SRP400_08    SRP400dg     online thinrclm
fas31402_34  auto:cdsdisk    SRP400_09    SRP400dg     online thinrclm
fas31402_35  auto:cdsdisk    SRP400_10    SRP400dg     online thinrclm
fas31402_36  auto:cdsdisk    SRP400_11    SRP400dg     online thinrclm
fas31402_37  auto:cdsdisk    SRP400_12    SRP400dg     online thinrclm
fas31402_38  auto:cdsdisk    SRP400_13    SRP400dg     online thinrclm
fas31402_39  auto:cdsdisk    -            (SRPredodg)  online thinrclm
fas31402_40  auto:cdsdisk    -            (SRPctldg)   online thinrclm
fas31402_41  auto:cdsdisk    SRParch01    SRParchdg    online thinrclm
fas31402_42  auto:cdsdisk    SRP401_42    SRP400dg     online thinrclm
fas31403_0   auto:cdsdisk    SRP401_19    SRP401dg     online thinrclm
fas31403_1   auto:cdsdisk    SRP401_03    SRP401dg     online thinrclm
fas31403_2   auto:cdsdisk    SRP401_04    SRP401dg     online thinrclm
fas31403_3   auto:cdsdisk    SRP401_05    SRP401dg     online thinrclm
fas31403_4   auto:cdsdisk    SRP401_06    SRP401dg     online thinrclm
fas31403_5   auto:cdsdisk    SRP401_07    SRP401dg     online thinrclm
fas31403_6   auto:cdsdisk    SRP401_01    SRP401dg     online thinrclm
fas31403_7   auto:cdsdisk    SRP401_08    SRP401dg     online thinrclm
fas31403_8   auto:cdsdisk    SRP401_09    SRP401dg     online thinrclm
fas31403_9   auto:cdsdisk    SRP401_10    SRP401dg     online thinrclm
fas31403_10  auto:cdsdisk    SRP401_12    SRP401dg     online thinrclm
fas31403_11  auto:cdsdisk    SRP401_13    SRP401dg     online thinrclm
fas31403_12  auto:cdsdisk    SRP401_14    SRP401dg     online thinrclm
fas31403_13  auto:cdsdisk    SRP401_15    SRP401dg     online thinrclm
fas31403_14  auto:cdsdisk    SRP401_16    SRP401dg     online thinrclm
fas31403_15  auto:cdsdisk    SRP401_17    SRP401dg     online thinrclm
fas31403_16  auto:cdsdisk    SRP401_18    SRP401dg     online thinrclm
fas31403_17  auto:cdsdisk    SRP401_20    SRP401dg     online thinrclm
fas31403_18  auto:cdsdisk    SRP401_21    SRP401dg     online thinrclm
fas31403_19  auto:cdsdisk    SRP401_11    SRP401dg     online thinrclm
fas31403_20  auto:cdsdisk    SRP401_22    SRP401dg     online thinrclm
fas31403_21  auto:cdsdisk    SRP401_23    SRP401dg     online thinrclm
fas31403_22  auto:cdsdisk    SRP401_24    SRP401dg     online thinrclm
fas31403_23  auto:cdsdisk    SRP401_25    SRP401dg     online thinrclm
fas31403_24  auto:cdsdisk    SRP401_26    SRP401dg     online thinrclm
fas31403_25  auto:cdsdisk    SRP401_27    SRP401dg     online thinrclm
fas31403_26  auto:cdsdisk    SRP401_28    SRP401dg     online thinrclm
fas31403_27  auto:cdsdisk    SRP401_29    SRP401dg     online thinrclm
fas31403_28  auto:cdsdisk    SRP401_30    SRP401dg     online thinrclm
fas31403_29  auto:cdsdisk    SRP401_31    SRP401dg     online thinrclm
fas31403_30  auto:cdsdisk    SRP401_33    SRP401dg     online thinrclm
fas31403_31  auto:cdsdisk    SRP401_34    SRP401dg     online thinrclm
fas31403_32  auto:cdsdisk    SRP401_32    SRP401dg     online thinrclm
fas31403_33  auto:cdsdisk    SRP401_35    SRP401dg     online thinrclm
fas31403_34  auto:cdsdisk    SRP401_36    SRP401dg     online thinrclm
fas31403_35  auto:cdsdisk    SRP401_37    SRP401dg     online thinrclm
fas31403_36  auto:cdsdisk    SRP401_38    SRP401dg     online thinrclm
fas31403_37  auto:cdsdisk    SRP401_39    SRP401dg     online thinrclm
fas31403_38  auto:cdsdisk    SRP401_02    SRP401dg     online thinrclm
fas31403_39  auto:cdsdisk    -            (SRPredodg)  online thinrclm
fas31403_40  auto:cdsdisk    -            (SRPctldg)   online thinrclm
fas31403_41  auto:cdsdisk    SRParch02    SRParchdg    online thinrclm
fas31403_42  auto:cdsdisk    SRP401_42    SRP401dg     online thinrclm

Please your assistance to have a clear idea of procedure to perform in few more hours...

 

Thank you!

 

1 ACCEPTED SOLUTION

Accepted Solutions

mikebounds
Level 6
Partner Accredited

If all the LUNs in a given diskgroup (example SRP400dg) are unused, the you can just destroy the diskgroup using:

vxdg destroy SRP400dg

If some LUNs are still required, then to delete an unused LUN, then use for example:

vxdg -g SRP400dg rmdisk SRP400_16

But LUN will need to be unused and empry, so if it contains an unused volume then you need to delete volume or if there is an unused plex (mirrror), then you need to delete plex.

Once LUN is removed from diskgroup (or diskgroup destroyed), you can the remove LUN at the SAN level to reclaim the space.

Mike

View solution in original post

2 REPLIES 2

mikebounds
Level 6
Partner Accredited

If all the LUNs in a given diskgroup (example SRP400dg) are unused, the you can just destroy the diskgroup using:

vxdg destroy SRP400dg

If some LUNs are still required, then to delete an unused LUN, then use for example:

vxdg -g SRP400dg rmdisk SRP400_16

But LUN will need to be unused and empry, so if it contains an unused volume then you need to delete volume or if there is an unused plex (mirrror), then you need to delete plex.

Once LUN is removed from diskgroup (or diskgroup destroyed), you can the remove LUN at the SAN level to reclaim the space.

Mike

ferocci
Level 2

Hello Mike,

Thank you for the heads up.

Did the below procedure procedure:

How to remove a disk (thin reclamation - thinrclm) from a diskgroup when VxVM vxdg ERROR V-5-1-552 Disk  is used by one or more subdisks is reported.

https://support.symantec.com/en_US/article.HOWTO58923.html

Now LUNs will be unmaped and the OS cleaned up

Thank you!