ONTAP Discussions

fail to remove virtual object from dataset

mauro
2,553 Views

I'd like to remove some relationships and some objects from a virtual (vmware) dataset, but i'm non able to do.

C:\Documents and Settings\user>dfpm relationship list -a |findstr vmprod3

          30896 snapvault                 30886 vmprod3              naitsede01:/vol_hq__vm_prod_03/vmprod03  naitsede05:/bck_hq_vol__vm_prod_03/vmprod03 No

          30897 volume_snapmirror         30886 vmprod3              naitsede05:/bck_hq_vol__vm_prod_03       naitsleo3:/repl_hq_vol__vm_prod_03       No

          32762 volume_snapmirror         30886 vmprod3              naitsede05:/bck_hq_vol__vm_prod_03_1     naitsleo3:/bck_hq_vol__vm_prod_03        No

          32816 volume_snapmirror         30886 vmprod3              naitsede05:/bck_hq_vol__vm_prod_03_1     naitsleo3:/bck_hq_vol__vm_prod_03_1      No

I want to remove the last 2 relationships (32816 , 32762) and remove object (volumes) naitsleo3:/bck_hq_vol__vm_prod_03,naitsleo3:/bck_hq_vol__vm_prod_03_1 and naitsede05:/bck_hq_vol__vm_prod_03_1

C:\Documents and Settings\s.tedeschi>dfpm dataset relinquish naitsleo3:/bck_hq_vol__vm_prod_03_1

Relinquished relationship (32816) with destination bck_hq_vol__vm_prod_03_1 (32813).

It seems ok, but caused no effects... the relationship still remains...

Then:

C:\Documents and Settings\s.tedeschi>dfpm dataset list -l vmprod3

Id         Name                                                    Dataset Id Dataset Name         Type       Export Name

---------- ------------------------------------------------------- ---------- -------------------- ---------- ----------------------------------------

     30868 naitsede01:/vol_hq__vm_prod_03                               30886 vmprod3              volume

     30871 naitsede01:/vol_hq__vm_prod_03/vmprod03                      30886 vmprod3              qtree      naitsede01:/vol/vol_hq__vm_prod_03/vmprod03

     30889 naitsede05:/bck_hq_vol__vm_prod_03                           30886 vmprod3              volume     naitsede05:/vol/bck_hq_vol__vm_prod_03

     32753 naitsede05:/bck_hq_vol__vm_prod_03_1                         30886 vmprod3              volume

     30895 naitsede05:/bck_hq_vol__vm_prod_03/vmprod03                  30886 vmprod3              qtree

     30892 naitsleo3:/repl_hq_vol__vm_prod_03                           30886 vmprod3              volume

     32813 naitsleo3:/bck_hq_vol__vm_prod_03_1                          30886 vmprod3              volume

     32759 naitsleo3:/bck_hq_vol__vm_prod_03                            30886 vmprod3              volume

     30898 naitsleo3:/repl_hq_vol__vm_prod_03/vmprod03                  30886 vmprod3              qtree

and remove objetcs 32753,32759,32813

C:\Documents and Settings\s.tedeschi>dfpm dataset remove vmprod3 32759

Error: Could not remove members from dataset vmprod3 (30886). Reason: naitsleo3:/bck_hq_vol__vm_prod_03 is not in vmprod3:root.

Why ???

I manually (into data ontap) removed relationships and removed volumes, but objects are still present..

The problem that i have is  "dataset non conformant" !!! If i try to conformant othe volumes and relationships will be created....

2 REPLIES 2

mauro
2,553 Views

I've tried with option "-N mirror"

C:\Documents and Settings\s.tedeschi>dfpm dataset remove -N Backup vmprod3 32753

Dataset dry run results

----------------------------------

Do: Check if a dataset vmprod3 (30886) needs to be pushed to host service W3ITDFMNETAPP (24448).

Effect: Push dataset vmprod3 (30886) configuration to host service W3ITDFMNETAPP (24448).

Removed volume naitsede05:/bck_hq_vol__vm_prod_03_1 (32753) from dataset vmprod3 (30886).

C:\Documents and Settings\s.tedeschi>dfpm dataset remove -N mirror vmprod3 32759

Dataset dry run results

----------------------------------

Do: Check if a dataset vmprod3 (30886) needs to be pushed to host service W3ITDFMNETAPP (24448).

Effect: Push dataset vmprod3 (30886) configuration to host service W3ITDFMNETAPP (24448).

Removed volume naitsleo3:/bck_hq_vol__vm_prod_03 (32759) from dataset vmprod3 (30886).

That's good!!

C:\Documents and Settings\s.tedeschi>dfpm dataset list -l vmprod3

Id         Name                                                    Dataset Id Dataset Name         Type       Export Name

---------- ------------------------------------------------------- ---------- -------------------- ---------- ----------------------------------------

     30868 naitsede01:/vol_hq__vm_prod_03                               30886 vmprod3              volume

     30871 naitsede01:/vol_hq__vm_prod_03/vmprod03                      30886 vmprod3              qtree      naitsede01:/vol/vol_hq__vm_prod_03/vmprod03

     30889 naitsede05:/bck_hq_vol__vm_prod_03                           30886 vmprod3              volume     naitsede05:/vol/bck_hq_vol__vm_prod_03

     30895 naitsede05:/bck_hq_vol__vm_prod_03/vmprod03                  30886 vmprod3              qtree

     30892 naitsleo3:/repl_hq_vol__vm_prod_03                           30886 vmprod3              volume

     30898 naitsleo3:/repl_hq_vol__vm_prod_03/vmprod03                  30886 vmprod3              qtree

C:\Documents and Settings\s.tedeschi>dfpm relationship list -a |findstr vmprod3

          30896 snapvault                 30886 vmprod3              naitsede01:/vol_hq__vm_prod_03/vmprod03  naitsede05:/bck_hq_vol__vm_prod_03/vmprod03 No

          30897 volume_snapmirror         30886 vmprod3              naitsede05:/bck_hq_vol__vm_prod_03       naitsleo3:/repl_hq_vol__vm_prod_03       No

thomas_glodde
2,553 Views

try a "dfpm dataset remove help" and go for a -f removal of the secondary object

eg

dfpm dataset remove -N SECONDARY -f 1234 FILER:/badvolume

it will destroy the volume then and forget about the relationship, you might need to snapvault release on primary still tho.

Public