ONTAP Discussions

lun show unmapped

Rawat_Sunil
4,010 Views

I run the lun show unmapped command and show the unmapped luns and shows the below output

 

/vol/erpt6c/erpt6c.lun 25g (26843545600) (r/o, online)

 

and want to delete the unmapped lun first try offline command it shows error ( Read only permission)

 

dr-fas3140b*> lun offline /vol/erpt6c/erpt6c.lun
lun offline: /vol/erpt6c/erpt6c.lun : Read-only file system

 

try to destroy the it but face same problem

 

dr-fas3140b*> lun destroy /vol/erpt6c/erpt6c.lun
lun destroy: /vol/erpt6c/erpt6c.lun : Read-only file system

 

can any one suggest how i can delete the lun

 

 

Regards,

 

Sunil Rawat

 

 

3 REPLIES 3

marcusgross
4,000 Views

Hi,

 

is it a snapmirror destination?

 

Whats the output of vol status erpt6c?

 

 

Marcus

Rawat_Sunil
3,972 Views

Output is :-

 

dr-fas3140b*> vol status erpt6c
Volume State Status Options
erpt6c online raid_dp, flex snapmirrored=on, create_ucode=on,
snapmirrored fs_size_fixed=on
read-only
Containing aggregate: 'aggr_TD_02'
dr-fas3140b*>

Sahana
3,970 Views

Hi.

If its a snapmirror destination, you need to break the relation. Refer How to correctly delete a SnapMirror relationship 

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.
Public