MSA Storage
1748166 Members
3826 Online
108758 Solutions
New Discussion

Re: Unable to delete vdisk \ volumes \ disk groups that are part of a replication volume o

 
SOLVED
Go to solution
Doki
Established Member

Unable to delete vdisk \ volumes \ disk groups that are part of a replication volume on MS

I have a single MSA1040 (out of warranty) that used to be paired with a second MSA1040 for replication. The second MSA1040 was destroyed by water damage. We did not replace it since it was out of warranty, and budget.

So now I have the single MSA1040 that I wish to re-purpose. However I have volumes that I cannot seem to delete. When I try I am told "The requested operation is not allowed on a replication volume. Command failed. - One or more volumes could not be deleted."

From Putty\CLI I have tried listing replication sets, but none are listed. Every command I can find for listing volumes, and removing or force removing does not work. I am sure it is because there is a hidden attribute that needs to be removed, but can't figure out how.

It's a single Master Pool volume and one Snap Pool volume for that same volume I have been unable to delete either one. I also tried removing the disk groups, but it wouldn't let me do that either. The replications tab has no replications listed at all.

8 REPLIES 8
techin
Super Advisor

Re: Unable to delete vdisk \ volumes \ disk groups that are part of a replication volume o

Interesting question. I would also like to see an answer for this aswell...

@SUBHAJIT KHANBARMAN_1  or @Shawn_K ...any suggestions on this?

Re: Unable to delete vdisk \ volumes \ disk groups that are part of a replication volume o

@Doki 

Try below steps to remove replication,

1> delete all replication set
2> delete all snapshots
3> convert all volumes from master to standard
4> delete all snap pools
5> delete remote MSA system

Additionally below commands may be useful as well,

show master-volumes
show snapshots master-volume <vol_name>
delete snapshot snap1,snap2,snap3
delete snapshot snap1 force

 

Hope this helps!
Regards
Subhajit

I am an HPE employee

If you feel this was helpful please click the KUDOS! thumb below!

*************************************************************************


I work for HPE
Accept or Kudo
Doki
Established Member

Re: Unable to delete vdisk \ volumes \ disk groups that are part of a replication volume o

Here are some CLI results that help clarify the problem... it doesn’t list any replication sets, but then tells me it can't delete the master volume or snap pool because they are replication volumes. Also the commands relating to replication volumes in the CLI guide do not work at all:


# show master-volumes
Vdisk Serial Number Name Size Status
Status-Reason Snap-Pool Snapshots Snap Data Rollback
--------------------------------------------------------------------------
dg01 00c0ff258ac70000dbf7945501000000 D&P 15.9TB Available
RV spD&P 0 0B ---
--------------------------------------------------------------------------
Success: Command completed successfully. (2021-11-05 07:14:43)
# show snapshots master-volume D&P
Pool Name Creation Date/Time Status Status-Reason Parent Volume Base Vol Snaps
TreeSnaps Snap-Pool Snap Data Unique Data Shared Data Retention Priority
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
Success: Command completed successfully. (2021-11-05 07:41:44)
# show replication-sets
Name Group Primary Location Peer Primary Volume Secondary Volume Status
Last Successful Run Last Status
-------------------------------------------------------------------------
-------------------------------------------------------------------------
Success: Command completed successfully. (2021-11-05 07:23:13)

# delete all-snapshots volume D&P delete-type all-snapshot-types
Info: This may take a few minutes if the system is under heavy load...
When the snapshots are deleted, all data in those snapshots will be lost.
Do you want to continue? (y/n) y
Success: Command completed successfully. (D&P) - All snapshots were deleted. (20 21-11-05 07:51:01)

# convert master-to-std D&P
Data loss is possible if the snap pool is unavailable.
Do you want to continue? (y/n) y
Error: The requested operation is not allowed on a replication volume. (D&P) - The conversion of a master volume to a standard volume failed. (2021-11-05 07:55:19)
# delete snap-pool spD&P
Error: The snap pool has one or more associated master volumes. (spD&P)
Error: The snap pool has one or more associated master volumes. (spD&P) - The snap pool was NOT deleted. (2021-11-05 07:54:11)

# show replication-volumes
Error: The command was not recognized. (2021-11-05 07:24:41)
# detach replication-volume dg01
Error: The command was not recognized. (2021-11-05 07:33:15)
# remove replication-volume dg01
Error: The command was not recognized. (2021-11-05 07:35:16)

JonPaul
HPE Pro

Re: Unable to delete vdisk \ volumes \ disk groups that are part of a replication volume o

@Doki Do you recall if the replication was LInear or Virtual?
CLI>  show disk-groups     
will show if the disk-groups are Virtual or Linear

Are there any existing PEER-CONNECTIONS?
CLI>  show peer-connections
If there are you can delete these with 
CLI>  delete peer-connection local-only
The local-only will not try to delete both sides of the connection.  If you had replication sets that were still existing you could delete them from the
CLI>  delete replication-set local-only

I work for HPE
Shawn_K
HPE Pro

Re: Unable to delete vdisk \ volumes \ disk groups that are part of a replication volume o

@Doki 

Do you remember if this MSA 1040 was the primary system for replication or the secondary? If this system was the secondary it will not allow you to delete the replication set without having the primary system up and running. Since you have gotten rid of the other system this may be why you are having trouble.

If you are unsure, go into SMU and set the replication volume to primary. Once it is the primary volume you can work to delete it. Follow these steps:

- set the volume to primary (in SMU)
- remove the replication set (in CLI)
- delete all the snapshots
- delete the volume
- delete the snap-pool
- convert the master to standard

This will remove any data you had associated with the replication set, snapshots, and vdisk/pool. 

I work for Hewlett Packard Enterprise. The comments in this post are my own and do not represent an official reply from HPE. No warranty or guarantees of any kind are expressed in my reply.

Cheers,
Shawn


I work for HPE

Accept or Kudo

Doki
Established Member

Re: Unable to delete vdisk \ volumes \ disk groups that are part of a replication volume o

The volume is Linear. It doesn't list any peer connections. There isn't anywhere in the options that I can see to set the vollume to primary in the SMU. There are no replication sets listed in SMU or in CLI, it lets me delete all snapshots, but will not let me delete the volume or snap-pool, nor will it let me convert the master to standard.

# show disk-groups
Name Size Free Class Pool Tier % of Pool Own Pref RAID Disks Spr
Chk Status Jobs Job% Serial Number
Spin Down SD Delay Sec Fmt Health Reason
Action
-------------------------------------------------------------------------------
dg01 19.9TB 783.8GB Linear dg01 N/A 100 A A RAID6 7 0
512k FTOL VRSC 27% 00c0ff258ac700006f906e5500000000
Disabled 0 512n OK

-------------------------------------------------------------------------------
Success: Command completed successfully. (2021-11-05 15:02:53)

# show peer-connections

Success: Command completed successfully. (2021-11-05 15:04:53)

 

 

 

 

JonPaul
HPE Pro
Solution

Re: Unable to delete vdisk \ volumes \ disk groups that are part of a replication volume o

@Doki   Please try the below.  We believe that the CLI is set to virtual (v3) mode and unable to handle the linear (v2) replications.

Do the following:

# set cli-parameters management mode v2

(the above command will use linear versions of commands rather than virtual)

# show replication-sets

 

That should show the replication sets available – thy should be able to delete the replication set. Then delete the vdisk, or convert the volume to a standard volume if you only want to delete the volume.

I work for HPE
Doki
Established Member

Re: Unable to delete vdisk \ volumes \ disk groups that are part of a replication volume o

That did it!

set cli-parameters management-mode v2

show replication-sets

It listed the replication set "D&P"

delete replication-set D&P

It successfully deleted the replication set. After that I was able to easily delete the volume and snap pool from SMU.