Solved

VMware ESXi 5.0 remove iscsi lun from datastore

Posted on 2014-12-02
6
472 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 118
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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 118
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 118

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) 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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

When we have a dead host and we lose all connections to the ESXi, and we need to find a way to move all VMs from that dead ESXi host.
In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

895 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now