Linux Thin Lun space reclamation


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Linux Thin Lun space reclamation
# 1  
Old 12-08-2015
Linux Thin Lun space reclamation

Hello,
We have IBM storwize v7000 storage. I have created thin provisioned LUN and attached it to my server(dell r910, Centos 7).
Whenever I copy files in that LUN correspondingly Thin provisioned LUN's used space increases but when I remove files to free up space the LUN's size isn't decreased.
I have opened case to IBM to address the issue but they stated that there is nothing wrong with the storage and that I should follow OS instructions to release removed blocks whenever files are removed .

Please share your opinion about this and pls let me know if you faced the same issue and how did you solve it.
Thanks in advance dear forum members
# 2  
Old 12-08-2015
Usually there needs to be some sort of API for the integration of the OS with the storage device in order for the storage array to know that storage is no longer used. There sometimes can also be space reclamation if devices are zeroed by the OS, it depends on the implementation.
# 3  
Old 12-08-2015
are there any SAN storage out there with the possibility to reclaim unused space? I really have never seen/heard about such storage. Does somebody have examples (but please don't say about vmware)?
# 4  
Old 12-09-2015
Have no idea what should be done...
# 5  
Old 12-09-2015
Hitachi has reclaim zero pages on enterprise level storage (VSP)

This is mostly used in combination with software on the machine.
For instance, with ASM, you can reclaim zero pages from ASM, then reclaim on storage.

A nice document :
https://www.hds.com/assets/pdf/recla...on-utility.pdf

There is an article on RHEL network regarding :
https://access.redhat.com/solutions/45514

It involves creating a lvol with all free space from volume group, dd-ing the lvol with using /dev/zero, removing the lvol, remount with discard and running fstrim.
After that you can reclaim the storage space from storage GUI/command line.

Dunno how would you apply the same on raw volume tho (no VG).

Hope that helps.
Regards
Peasant.

Last edited by Peasant; 12-09-2015 at 04:34 AM..
This User Gave Thanks to Peasant For This Post:
# 6  
Old 12-09-2015
@Peasant, I will try the same for LVM. let you know the results

---------- Post updated at 04:27 AM ---------- Previous update was at 04:00 AM ----------

FOR IBM V7000 red-hats recommendation did not worked.
(dd if=/dev/zero of=/dev/$vg/$lv)

And per red-hat they remove VG which does not make sense if I destroy vg/file-system I can remove the corresponding LUN and recreate it.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Linux

Mount a newly added LUN on a GNU/Linux distro

Hi I am not familiar with the linux, but I was asked to create a file system on a LUN from the NetApp that was mapped to the linux server. The server is runing: uname -a Linux localhost.localdomain 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:15 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux and now... (6 Replies)
Discussion started by: fretagi
6 Replies

2. Red Hat

adding LUN to linux server

Hi All, I am new for this blog and this is my first Query on this blog. I would like to dael with graet masters on linux. Here we go, After storage people created the LUN, How to add that LUN to Linux server. (Make that LUN visibility on linux server.) ? How to view the LUN... (5 Replies)
Discussion started by: abhay1983
5 Replies

3. Red Hat

Need to mount LUN on two linux boxs (one rw the other ro) caveat details inside

Calling all Linux GURU's. The purpose of this thread is to try an recreate what we already have stood up in my environment, however the steps i am having to produce my own. I have got multiple applications that dump the data to various LUNs, the LUNs are managed by an Enterprise SAN... (11 Replies)
Discussion started by: jcejka
11 Replies

4. Red Hat

Grow LUN presented on Linux host

Hi, I have a SAN LUN of 550 GB created as an ext3 partition of the entire lun and need to make the lun and partition larger... 600 GB # fdisk -l /dev/sdj Disk /dev/sdj: 590.5 GB, 590558003200 bytes 255 heads, 63 sectors/track, 71797 cylinders Units = cylinders of 16065 * 512 = 8225280... (3 Replies)
Discussion started by: jamba1
3 Replies

5. Shell Programming and Scripting

using jdbc:thin in bash

Hi I want to include in my script a test for DB connection with jdbc:thin connection string(not using tnsnames.ora) For example:... (3 Replies)
Discussion started by: gdan2000
3 Replies

6. Solaris

I have LUN ID, how to find disk relate to that LUN ID?

I have a list of LUN ID, my task is to find if disk has been added or not. How do I do that? I have been searching the forum and not able to find answer. thanks (4 Replies)
Discussion started by: uuontario
4 Replies

7. Filesystems, Disks and Memory

Finding SAN Lun's on Linux.

Am trying to differentiate between the local disks and LUN's presented from SAN onto the server. Have Tried fdisk -l, however I quite cudn't differentiate the local disks from SAN presented LUN's. Can you pls. let me know the procedure and commands to find this. OS - RHEL 4 SAN - EMC... (3 Replies)
Discussion started by: Crazy_murli
3 Replies

8. AIX

volume group space addition after LUN creation

Hi, I was told that 300GB of LUN has been allocated to my server by the SAN group. apart from rootvg i have 2 volume groups(oracle) for which i need to add space as follows: oradbvg 250GB to be added oralvg 50GB what are the steps that i should follow after iam being told that LUN has been... (4 Replies)
Discussion started by: karthikosu
4 Replies

9. Linux

BOOTP on HP Thin clients

Please m new around here! Can anyone take me thru implementing bootp on my thin clients via my central server? Preciate ur assistance. Thanks folks! (2 Replies)
Discussion started by: chuk_uka
2 Replies
Login or Register to Ask a Question