Jump to content


Photo

Problem with iSCSI SR - can't get to free the space

Started by Giacomo Arru , 17 March 2017 - 07:56 AM
6 replies to this topic

Giacomo Arru Members

Giacomo Arru
  • 7 posts

Posted 17 March 2017 - 07:56 AM

I have a problem with one of my iSCSI SRs.

 

I have 1 500gb disk and I need to move to another SR.

 

But I can't because I can't get the needed free space - SR is 1TB big.

 

XenCenter says: 1001.4 GB used of 1024 GB total (1500.2 GB allocated)

 

 

 

 

Any suggestions?

Attached Thumbnails

  • 2017-03-17 08_53_19.png
  • 2017-03-17 08_52_40-- h.png


Amarnath Reddy Citrix Employees

Amarnath Reddy
  • 130 posts

Posted 17 March 2017 - 12:07 PM

Hello Giacomo,

 

Since you do not have free space left on the Source SR, the move of the VDI will not work.

VDI move will create a snapshot on both source and destination SRs.

 

At this point you could try VM full copy to move the disk.

 

https://support.citrix.com/article/CTX116685

 

 

Regards,

Amar



Giacomo Arru Members

Giacomo Arru
  • 7 posts

Posted 17 March 2017 - 12:13 PM

Hi Amar,

thank you for your reply.

 

The problem IS that I can't free space. I have only one disk, 500GB, in a 1TB SR. But the space looks used, I don't know by what! I have no snapshots.



Amarnath Reddy Citrix Employees

Amarnath Reddy
  • 130 posts

Posted 17 March 2017 - 12:38 PM

Could you run the below command on xenserver cli and share the output.

 

vhd-util scan -f -m "VHD-*" -l VG_XenStorage-<UUID of SR> -p

 

 

Select the SR and click on general tab to view the UUID of the SR.

 

 



Tobias Kreidl Members

Tobias Kreidl
  • 18,867 posts

Posted 20 March 2017 - 12:33 AM

In the worst case, you may need to export the VM and import it back in again. A VM copy may work if the VM is shut down and hence would not require snapshot space. If successful, just delete the original after starting up and testing the new copy.

 

-=Tobias



Giacomo Arru Members

Giacomo Arru
  • 7 posts

Posted 20 March 2017 - 06:51 AM

I have a very small maintenance window in the night so there's not the time to migrate offline.

 

I'll try an online move while we have low disk activity in the night, after I recovered some free space.

 

 

#vhd-util scan -f -m "VHD-*" -l VG_XenStorage-b4326021-2f41-e45b-86d4-cea21e389189 -p

 

Output:

vhd=VHD-bb52a9d4-457b-46e5-9023-651955ce85d3 capacity=536870912000 size=503345840128 hidden=1 parent=none
   vhd=VHD-0475541c-5366-44d3-9338-75538db88373 capacity=536870912000 size=537927876608 hidden=0 parent=VHD-bb52a9d4-457b-46e5-9023-651955ce85d3



Giacomo Arru Members

Giacomo Arru
  • 7 posts

Posted 20 March 2017 - 07:14 AM

May I expand the SR and then perform a live migration? Or is it safer to do it offline?