DbAppWeb.com

Menu
  • Home
  • Linux
  • HP-UX
  • macOS
  • Windows
  • Web Servers
  • App Servers
  • Storage

How to reclaim space after removing virtual volume 3PAR

September 16, 2021 DbAppWeb Admin

Problem

I have an HPE 3PAR StoreServ 7400. I have deleted 2 virtual volumes to increase the free space. After deleting the virtual volumes free space should be increased by around 4TB but the HPE 3PAR management console was showing no change in the free space.

Reason

Free space was not increased because each CPG has a growth size. This lets the CPG keep some chunklets pre-reserved. Also, when virtual volumes are deleted, it will retain some space in the CPG assuming that the space will be reused.

Solution

How to reclaim space after removing virtual volume 3PAR

After removing the virtual volumes in 3PAR, compact the CPG to reclaim the space. Here I have shown the process step by step:

  • Login to 3PAR CLI as an admin user and run the command showsys -space to see the space details.
    3PAR-7400 cli% showsys -space
    ------------- System Capacity (MB) -------------
    Total Capacity                      :   91484160
      Allocated                         :   87489536
        Volumes                         :   81594368
          Non-CPGs                      :          0
            User                        :          0
            Snapshot                    :          0
            Admin                       :          0
          CPGs (TPVVs & TDVVs & CPVVs)  :   81594368
            User                        :   75640813
              Used                      :   75587892
              Used (Bulk VVs)           :          0
              Unused                    :      52921
            Snapshot                    :    5830675
              Used                      :     118282
              Used (Bulk VVs)           :          0
              Unused                    :    5712393
            Admin                       :     122880
              Used                      :      70848
              Used (Bulk VVs)           :          0
              Unused                    :      52032
          Unmapped                      :          0
        System                          :    5895168
          Internal                      :     318464
          Spare                         :    5576704
            Used                        :          0
            Unused                      :    5576704
      Free                              :    3994624
        Initialized                     :    3994624
        Uninitialized                   :          0
      Unavailable                       :          0
      Failed                            :          0
    ------------- Capacity Efficiency --------------
    Compaction                          :        1.3
    Dedup                               :   --------
    
  • Run the showcpg command to see the details of available CPGs in the system
     3PAR-7400 cli% showcpg
                                           -------------------(MB)--------------------
                   ----Volumes---- -Usage- ------ Usr ------ ---- Snp ---- --- Adm ---
    Id Name  Warn% VVs TPVVs TDVVs Usr Snp    Total     Used   Total  Used Total  Used
     0 FC_r1     -  34     0     0  34   0  7095296  7094784       0     0     0     0
     1 FC_r5     -  34    10     0  34  14 46087680 46048768 4372992 88704 40960 23616
     2 FC_r6     -   0     0     0   0   0        0        0       0     0     0     0
    ----------------------------------------------------------------------------------
     3 total                        68  14 53182976 53143552 4372992 88704 40960 23616
    
  • Run the compactcpg -dr CPG_Name command for all the CPGs and you will be able to find out which CPG(s) need to be compacted to reclaim space.
    3PAR-7400 cli% compactcpg -dr FC_r1
    Compacting CPG FC_r1
    Initial trim would reclaim 0 MB SA space, 0 MB SD space, and 0 MB USR space.
    Would move 0 MB SA space, 0 MB SD space, and 0 MB USR space.
    Final trim would reclaim 0 MB SA space, 0 MB SD space, and 0 MB USR space.
    
    3PAR-7400 cli% compactcpg -dr FC_r5
    Compacting CPG FC_r5
    Initial trim would reclaim 8192 MB SA space, 470016 MB SD space, and 0 MB USR space.
          4096 MB from LD tp-1-sa-0.1
          4096 MB from LD tp-1-sa-0.0
         64512 MB from LD tp-1-sd-0.77
         92160 MB from LD tp-1-sd-0.81
         92160 MB from LD tp-1-sd-0.83
          9216 MB from LD tp-1-sd-0.105
         64512 MB from LD tp-1-sd-0.76
         92160 MB from LD tp-1-sd-0.80
          9216 MB from LD tp-1-sd-0.104
         46080 MB from LD tp-1-sd-0.78
    Would move 0 MB SA space, 1571328 MB SD space, and 34816 MB USR space.
    Final trim would reclaim 0 MB SA space, 3769344 MB SD space, and 27648 MB USR space.
        165888 MB from LD tp-1-sd-0.91
        165888 MB from LD tp-1-sd-0.83
        258048 MB from LD tp-1-sd-0.95
        258048 MB from LD tp-1-sd-0.97
        248832 MB from LD tp-1-sd-0.105
        258048 MB from LD tp-1-sd-0.79
        258048 MB from LD tp-1-sd-0.93
        239616 MB from LD tp-1-sd-0.75
        184320 MB from LD tp-1-sd-0.90
        258048 MB from LD tp-1-sd-0.82
        258048 MB from LD tp-1-sd-0.96
        248832 MB from LD tp-1-sd-0.104
        258048 MB from LD tp-1-sd-0.94
        211968 MB from LD tp-1-sd-0.78
        258048 MB from LD tp-1-sd-0.92
        239616 MB from LD tp-1-sd-0.74
         18432 MB from LD ESXi_229_Datastore_2.usr.1
          9216 MB from LD ESXi_229_Datastore_2.usr.0
    
    
    3PAR-7400 cli% compactcpg -dr FC_r6
    Compacting CPG FC_r6
    CPG FC_r6 already compact
  • The above step shows that if we compact the CPG named FC_r5 then around 3.7TB of space will be reclaimed.
  • Run the command compactcpg CPG_Name to compact the CPG as shown below in my case CPG name is FC_r5. Type y and press enter to confirm, it will start the task with a task id.
    3PAR-7400 cli% compactcpg FC_r5
    Are you sure you want to compact CPG 'FC_r5' ?
    select q=quit y=yes n=no: y
    Task 6971 started
  • You can see the details of the task by using the command showtask -d task_id.
    3PAR-7400 cli% showtask -d 6971
    
    .
    .
    .
    2021-02-11 17:13:20 IST Started     region move of 128MB from (tp-1-sd-0.95:115712MB) to (tp-1-sd-0.87:96256MB).
    2021-02-11 17:13:20 IST Started     region move of 128MB from (tp-1-sd-0.95:102272MB) to (tp-1-sd-0.87:109696MB).
    2021-02-11 17:13:20 IST Started     region move of 128MB from (tp-1-sd-0.95:88832MB) to (tp-1-sd-0.87:123136MB).
    2021-02-11 17:13:21 IST Started     region move of 128MB from (tp-1-sd-0.95:16640MB) to (tp-1-sd-0.87:136576MB).
    2021-02-11 17:13:21 IST Started     region move of 128MB from (tp-1-sd-0.83:150400MB) to (tp-1-sd-0.87:150016MB).
    2021-02-11 17:13:22 IST Started     region move of 128MB from (tp-1-sd-0.83:136960MB) to (tp-1-sd-0.87:163456MB).
    2021-02-11 17:13:22 IST Started     region move of 128MB from (tp-1-sd-0.83:123392MB) to (tp-1-sd-0.99:76928MB).
    2021-02-11 17:13:23 IST Started     region move of 128MB from (tp-1-sd-0.83:107904MB) to (tp-1-sd-0.99:92416MB).
    2021-02-11 17:13:23 IST Started     region move of 128MB from (tp-1-sd-0.83:92416MB) to (tp-1-sd-0.99:107904MB).
    2021-02-11 17:13:24 IST Started     region move of 128MB from (tp-1-sd-0.83:76928MB) to (tp-1-sd-0.99:123392MB).
    
    .
    .
    
  • Once this task is completed, you may verify the reclaimed space by running the command showsys -space.

Last Updated: September 16, 2021

Related Posts

  • HP 3PAR SP Default Password
  • HPE 3PAR Default Username and Password
  • How to Find the Serial Number of HPE 3PAR SAN Storage from CLI
  • How to check the status of the HPE 3PAR Remote Copy Group
  • How to check IP address and default gateway assigned to HPE 3PAR
  • How to Check HPE 3PAR Battery Status
  • How to Create a New Virtual Volume in 3PAR
  • How to Download and Install HPE 3PAR StoreServ Management Console (SSMC) 3.0
  • How to Download and Install HPE 3PAR Management Console (IMC) 4.7.3
  • How to check HP 3PAR OS Version?
  • HP 3PAR Storage System: How to generate and collect InSplore Logs?

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Telegram (Opens in new window)
  • Click to share on WhatsApp (Opens in new window)
Prev Article
Tags:3PAR HP 3PAR HPE 3PAR HPE 3PAR 7400 Storage Admin Storage System

2 Comments

  1. Etones

    Thank you so much, this really helped me

  2. Vladimir

    Thank you!

Leave a Reply Cancel Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  • Popular
  • Recent

Categories

  • Android (2)
  • Blogger (16)
  • Domain and Hosting (1)
  • Hardware Issues (7)
  • HP-UX (55)
  • HPE Data Protector (9)
  • IBM Lotus Notes (2)
  • IBM WebSphere Application Server (16)
  • Internet Tips & Tricks (15)
  • iOS (8)
  • JBoss/WildFly Application Server (2)
  • Linux (76)
  • macOS (15)
  • Microsoft Windows (31)
  • News and Updates (11)
  • Oracle Database (5)
  • SSL/TLS (1)
  • Storage Servers (23)
  • Tools/Softwares (1)
  • VMware ESXi (17)
  • Web Servers (14)
  • WordPress (5)

Archives

DbAppWeb.com

Solution of Database, Application and Web Server Problems

About DbAppWeb.com

One Stop Solution for Database Server, Application Server and Web Server Problems.

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

DbAppWeb on Social Media

Copyright © 2025 DbAppWeb.com
Terms and Conditions   Theme by MyThemeShop.com