Solved

VMware ESXi 5.0 remove iscsi lun from datastore

Posted on 2014-12-02
6
469 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 117
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
Network it in WD Red

There's an industry-leading WD Red drive for every compatible NAS system to help fulfill your data storage needs. With drives up to 8TB, WD Red offers a wide array of solutions for customers looking to build the biggest, best-performing NAS storage solution.  

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

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

Give your grad a cloud of their own!

With up to 8TB of storage, give your favorite graduate their own personal cloud to centralize all their photos, videos and music in one safe place. They can save, sync and share all their stuff, and automatic photo backup helps free up space on their smartphone and tablet.

Join & Write a Comment

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.
This article will show you how to create an ISO CD-ROM/DVD-ROM image (*.iso), and MD5 checksum signature, for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5). It's a good idea to compare checksums, because many installations fail because of a corr…
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 Micro Tutorial walks you through using a remote console to access a server and install ESXi 5.1. This example is showing remote access and installation using a Dell server. The hypervisor is the very first component of your virtual infrastructu…

758 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

18 Experts available now in Live!

Get 1:1 Help Now