Subscribe

Create/destroy LUN

We are experiencing great difficulty is trying to create a LUN as the file already exists!!! The error reported is: `lun_path must not be in use as a file` Also we cannot destroy the lun as `no such lun exists`. The lun was previously there (snapmirrored and in-sync) but due to a hard disk failure we had to swap the disk out and as a result of this swap the lun seems to have disappeared. Any help in resolving this issue would be greatly appreciated.

Create/destroy LUN

Hi and welcome to the Community!

Can you mount a volume containing this left-over LUN via either CIFS, or NFS & check whether you can see this LUN as a file & consequently delete it?

Regards,

Radek

Create/destroy LUN

Actually it is possible to create LUN from a file. May be worth a try before finally removing it

Create/destroy LUN

Radek

Thank you for your reply.

I have very little experience with netapp.  Pretty much self taught!  The system I am working on is a test system,so I can play around with it.  Do I have to create a new volume to mount and how do I go about mounting it?  I can find no mount command in filer view orin my terminal window under help!  I have tried to recreate my missing LUN named /vol/vol_dc03/dc03.lun but get the error “lun_path must not be in use as a file”. When I try to destroy the LUN I get the error “lun does not exist”.  I must admit I am at a bit baffled by it now.  This LUN was up and running until afew days ago until we had a hardware failure.

How do you create a LUN form file?

My time zone is GMT plus 3 so I had left work before I received your last reply.

Thank you for your help.

Re: Create/destroy LUN

I can find no mount command in filer view orin my terminal window

You mount volume on host, not on filer. On filer you share it (CIFS) or export it (NFS)

How do you create a LUN form file?

Just specify file path when creating a LUN. Beware, LUN content will be whatever garbage happens to be in file right now But in the worst case you may be able to delete it again using "lun destroy"

lun create -f <file_path> -t <ostype> [ -o noreserve ] [ -e space_alloc ] <lun_path>

Create/destroy LUN

aborzenkov

Thank you for your help.

Here is the command I used and the error.

MSSTRNGNAC1S1>lun create -f /vol/vol_dc03/ -t windows -o noreserve /vol/vol_dc03/dc03.lun

luncreate: File already exists at /vol/vol_dc03/dc03.lun

luncreate: lun_path must not be in use as a file

MSSTRNGNAC1S1>

Is there a Netapp for Dummies, because I don't know what this is telling me HELP!!!!

Re: Create/destroy LUN

Please show result of “lun show -v” on filer.

Create/destroy LUN

MSSTRNGNAC1S1>lun show -v

        /vol/vol_dc01/dc01.lun      15.0g (16113323520)   (r/w, online, mapped)

                Serial#: P3X7K4W-jP3s

                Share: none

                Space Reservation: enabled

                Multiprotocol Type: windows

                Maps: group_FC=1

        /vol/vol_grid/grid.lun      25.0g (26847313920)   (r/w, online, mapped)

                Serial#: P3X7K4W-jsge

                Share: none

                Space Reservation: enabled

                Multiprotocol Type: windows

                Maps: group_FC=5

        /vol/vol_iSCSI/bd_ora.lun  400.1g (429557022720)  (r/w, online, mapped)

                Comment: "ASM LUN Site1for Oracle RAC"

                Serial#: P3X7K4StA0mL

                Share: none

                Space Reservation: enabled

                Multiprotocol Type: windows

                Maps: Group_ISCSI=13

        /vol/vol_iSCSI/ocr1.lun      1.0g (1077511680)    (r/w, online, mapped)

                Comment: "OCR LUN Site1for Oracle RAC"

                Serial#: P3X7K4StA0mJ

               Share: none

                Space Reservation: enabled

                Multiprotocol Type: windows

                Maps: Group_ISCSI=17

        /vol/vol_iSCSI/voting1.lun    1.0g (1077511680)    (r/w, online, mapped)

                Comment: "Voting LUN Site1for Oracle RAC"

                Serial#: P3X7K4StA0tH

                Share: none

                Space Reservation: enabled

                Multiprotocol Type: windows

                Maps: Group_ISCSI=15

        /vol/vol_ifmb/ifmb.lun      25.0g (26847313920)   (r/w, online, mapped)

                Serial#: P3X7K4W-k-Gm

                Share: none

                Space Reservation: enabled

                Multiprotocol Type: windows

                Maps: group_FC=7

        /vol/vol_rac01/rac01.lun    25.0g (26847313920)   (r/w, online, mapped)

                Serial#: P3X7K4W-kEY8

                Share: none

                Space Reservation: enabled

                Multiprotocol Type: windows

                Maps: group_FC=3

        /vol/vol_rac02/rac02.lun    25.0g (26847313920)   (r/o, online)

                Serial#: P3X7K4UuJmjy

                Share: none

                Space Reservation: enabled (nothonored by containing Aggregate)

                Multiprotocol Type: windows

MSSTRNGNAC1S1>lun show

        /vol/vol_dc01/dc01.lun      15.0g (16113323520)   (r/w, online, mapped)

        /vol/vol_grid/grid.lun      25.0g (26847313920)   (r/w, online, mapped)

        /vol/vol_iSCSI/bd_ora.lun  400.1g (429557022720)  (r/w, online, mapped)

        /vol/vol_iSCSI/ocr1.lun      1.0g (1077511680)    (r/w, online, mapped)

        /vol/vol_iSCSI/voting1.lun    1.0g (1077511680)    (r/w, online, mapped)

        /vol/vol_ifmb/ifmb.lun      25.0g (26847313920)   (r/w, online, mapped)

        /vol/vol_rac01/rac01.lun    25.0g (26847313920)   (r/w, online, mapped)

        /vol/vol_rac02/rac02.lun    25.0g (26847313920)   (r/o, online)

MSSTRNGNAC1S1>

Re: Create/destroy LUN

Is volume vol_dc03 online? “vol status”?

Create/destroy LUN

Yes it is online.  Should I take it offline?