Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

VMware ESXi 5.0 remove iscsi lun from datastore

Posted on 2014-12-02
6
478 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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Suggested Solutions

If we need to check who deleted a Virtual Machine from our vCenter. Looking this task in logs can be painful and spend lot of time, so the best way to check this is in the vCenter DB. Just connect to vCenter DB(default DB should be VCDB and using…
Giving access to ESXi shell console is always an issue for IT departments to other Teams, or Projects. We need to find a way so that teams can use ESXTOP for their POCs, or tests without giving them the access to ESXi host shell console with a root …
Teach the user how to join ESXi hosts to Active Directory domains Open vSphere Client: Join ESXi host to AD domain: Verify ESXi computer account in AD: Configure permissions for domain user in ESXi: Test domain user login to ESXi host:
This Micro Tutorial steps you through the configuration steps to configure your ESXi host Management Network settings and test the management network, ensure the host is recognized by the DNS Server, configure a new password, and the troubleshooting…

828 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