Solved

VMware ESXi 5.0 remove iscsi lun from datastore

Posted on 2014-12-02
6
475 Views
Last Modified: 2015-01-12
Hello,

I have a datastore on ESXi 5.0 that consists of a 2.7TB  local disk and a 2TB  iscsi LUN. I want to remove the LUN. Is there a way to do that, or do I need to destroy the datastore and recreate it, this time assigning only the local disk?

What will happen if the LUN dies, or loses network connection?

At the moment I am considering adding a new datastore, shutting down the VMs and removing them from inventory, then moving their folders to the new datastore, and re-adding them to inventory.

I thought about using Veeam Backup to do migration, but it does not copy the snapshots and failed on machines that were not shut down.

Thanks!
0
Comment
Question by:rookie_b
  • 3
  • 2
6 Comments
 
LVL 119
ID: 40477346
I have a datastore on ESXi 5.0 that consists of a 2.7TB  local disk and a 2TB  iscsi LUN. I want to remove the LUN. Is there a way to do that, or do I need to destroy the datastore and recreate it, this time assigning only the local disk?

when you state 2.7TB local disk, do you mean a virtual machine with a 2.7TB virtual disk?

or the physical disk is 2.7TB, and the datastore is 2.7TB, and it has a 2TB virtual machine disk ?

the 2TB virtual disk is used as an iSCSI Server with 2TB LUN?

In removing a datastore, the first thing that should be done, is the contents removed.

and then the datastore unmounted from the ESXi server.
0
 
LVL 38

Expert Comment

by:Hypercat (Deb)
ID: 40477369
I'm not sure what you mean by "removing" the LUN.  Generally speaking if you don't need to have the host machine connected to that device any more, you can simply delete it from the storage configuration on the ESXi host.  The question, though, is where your VMWare software, logs, etc., reside and where the VMs are stored. A LUN is basically just an iSCSI connection to a physical location on a file server/NAS. So, where is that and what is stored there?
0
 

Author Comment

by:rookie_b
ID: 40478168
Hi,

Initially the datastore was 2.7TB, hosted on fixed local storage. THen we increased the size of the datastore by adding a 2TB iscsi lun from a NAS. Unfortunatelly, even though we haven't used the space - it is set to prefer the fixed storage, we cannot reverse it and reduce the size of the datastore. When I try detaching the iscsi target, it says it is being used in a datastore, so we cannot remove it.
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 119
ID: 40478186
I'm not sure, I'm following here...

you have extended a local datastore, by adding an iSCSI LUN to it, as an extent?

so you have two datastores, connected to the ESXi server?

one on local storage and one on iSCSI storage?

or do you just have one single datastore?

If you have added additional storage to a local datastore, you will have to destroy the entire datastore, you remove the iSCSI LUN.

Could you upload a screenshot of your datastores?
0
 

Author Comment

by:rookie_b
ID: 40488896
I have a single datastore, which I increased by adding the iscsi. Now I realize it's a very bad practice, but I still need to deal with it. It looks like I will have to destroy it and rebuild it. I can move all the VMs, but there is a .locker folder with logs on it. That would probably prevent me from destroying the datastore, or will it?
0
 
LVL 119

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 500 total points
ID: 40488945
Yes, you will need to move the ESXi logs off the server.

see my EE Article to change the location


Part 11: HOW TO: Suppress Configuration Issues System logs on host are stored on non-persistent storage
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
When we purchase storage, we typically are advertised storage of 500GB, 1TB, 2TB and so on. However, when you actually install it into your computer, your 500GB HDD will actually show up as 465GB. Why? It has to do with the way people and computers…
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question