Network and Storage Protocols

LUN is offline in Windows 2008 R2

VARAPRASADUP
36,896 Views

Hi,

Greetings.

I have created a LUN and exported to a Windows 2008 R2 server where LUN is visible as offline not accessible. In Netapp, LUN is online and in Windows server, LUN is visible as two disks.

Can someone help me here to findout the root cause and fix it.

Regards,

Varaprasad

1 ACCEPTED SOLUTION

VARAPRASADUP
36,894 Views

Thank you Ariel.

I have come across couple of issues while making a LUN online and accessible. Here is the issue and fix for my issue:

1. LUN created and assigned to a Windows host

2. On Windows 2008R2 OS, command prompt -> diskpart

    diskpart> SAN policy (Shows the SAN policy set as offline)

    diskpart> SAN policy=onlineall

    diskpart> SAN policy (Shows the policy available as online)

3. Rescan the disks from "DIsk Management" prompt and was able to view the LUN as disk.

4. Though disk was online this time, server stopped me from initializing the disk as disk property was set to Read-only

5. From "Diskpart>" prompt,

    diskpart> list disk (Lists all the disks availble on the server with numbers)

    diskpart> select disk n (Where n is the disk number you want to access)

    diskpart> attributes disk

    diskpart> attributes disk clear readonly

    diskpart> attributes disk Readonly option should be set to "NO" now)

6. From disk management, right click on the LUN (disk device) and select suitable option.

This clears my issue and enabled me to access the LUN from Windows 2008 R2.

View solution in original post

6 REPLIES 6

GARYWCONTROLCIRCLE
36,897 Views

You can see it twice because you have two paths from the server to the storage. You need to install the DSM MPIO tools.

VARAPRASADUP
36,895 Views

Thanks Gary for your prompt response. Is this because of multipathing, LUN goes offline in Windows? How could i make the LUN online on Windows??

Please suggest.

Varaprasad

GARYWCONTROLCIRCLE
36,895 Views

You should be able to just launch disk manager -> Right click -> Online.

VARAPRASADUP
36,895 Views

When i right click on LUN, all options are greyed out except "Properties". Even i could not create drive lettered disks (simple volumes) on the LUN from disk manegement.

superderivatives
36,894 Views

Hi,

Microsoft has changed how SAN disks are handled by its Windows 2008 editions.

the default SAN policy is now VDS_SP_OFFLINE_SHARED for all SAN disks except the boot disk.

Here's the solution to this annoying problem:

DISKPART> san policy=OnlineAll

good luck,

Ariel

VARAPRASADUP
36,895 Views

Thank you Ariel.

I have come across couple of issues while making a LUN online and accessible. Here is the issue and fix for my issue:

1. LUN created and assigned to a Windows host

2. On Windows 2008R2 OS, command prompt -> diskpart

    diskpart> SAN policy (Shows the SAN policy set as offline)

    diskpart> SAN policy=onlineall

    diskpart> SAN policy (Shows the policy available as online)

3. Rescan the disks from "DIsk Management" prompt and was able to view the LUN as disk.

4. Though disk was online this time, server stopped me from initializing the disk as disk property was set to Read-only

5. From "Diskpart>" prompt,

    diskpart> list disk (Lists all the disks availble on the server with numbers)

    diskpart> select disk n (Where n is the disk number you want to access)

    diskpart> attributes disk

    diskpart> attributes disk clear readonly

    diskpart> attributes disk Readonly option should be set to "NO" now)

6. From disk management, right click on the LUN (disk device) and select suitable option.

This clears my issue and enabled me to access the LUN from Windows 2008 R2.

Public