Unsolved
This post is more than 5 years old
3 Posts
0
4161
How to shrink a filesystem
Hi,
Being a novice, I'm wonder if anyone can provide guidance on how to shrink a filesystem in an NS702. What I have now is fs0 with 100GB, and it's apparently has been over allocated. Now that I have limited free diskspace, I need to shrink this filesystem to accomodate new one.
Pls advise on how I can resize it while maintaining the data, and retaining the filesystem name.
Thanks in advance.
Being a novice, I'm wonder if anyone can provide guidance on how to shrink a filesystem in an NS702. What I have now is fs0 with 100GB, and it's apparently has been over allocated. Now that I have limited free diskspace, I need to shrink this filesystem to accomodate new one.
Pls advise on how I can resize it while maintaining the data, and retaining the filesystem name.
Thanks in advance.
dynamox
2 Intern
2 Intern
•
20.4K Posts
0
March 8th, 2007 06:00
Message was edited by:
dynamox
Rainer_EMC
8.6K Posts
1
March 23rd, 2007 14:00
All you can do is create a new, smaller one and copy the data. Either thru client-side utils like emcopy/robocopy/rdist or using server_archive
If you feel strongly about it you can file a Product Enhancement Request thru Powerlink
For smaller file data spaces its easier to create a larger file system and put multiple tree quoatas in it - tree quotas are subdirs that can be enlarged and shrunk on the fly.
dynamox
2 Intern
2 Intern
•
20.4K Posts
0
March 23rd, 2007 21:00
Rainer_EMC
8.6K Posts
0
April 6th, 2007 13:00
These requests get tracked and influence future Celerra capabilities
sundar.rajan
29 Posts
1
July 24th, 2013 19:00
here is one way .
This needs a bit of outage .
Assumption : fs01 is the filesystem that has been extended beyond limit say it was 10GB and now became 100GB which was not intended and used up space is 9GB
fs01 is mounted on /fs01 and shared as "fs01"
1. Create a required small size filesystem fs01 = 10GB
2. unmount the fs01 and mount it as ro as we do not want any changes during the copy.
3. mount the new filesystem fs02 as /fs02
4. use the ndmptool in the /nas/tools/ndmptool
5. use the copy filesystem functionality in the ndmptool and copy the
contents from fs01 to fs02
6. once the copy is finished unmount /fs02 and /fs01
7. mount the new fs02 as /fs01 ( reuse of the old mountpoint)
8. mount the fs01 as /fs01_temp
9. verify the access and data
10. once you are satisfied rename the old filesystem fs01 to fs01_delete
11. rename the newfilesystem fs02 as fs01 ( now you have the old shape of the fs01 with 10GB)
12 once you are happy with everything you can unmount the fs01_delete permanently and delete to reclaim space.
Make sure you disable the autoextend on the new filesystem so that it does not happen again .
or enforce quota for users .
The above procedure is same as .
backing up the filesystem using ndmp,
creating a new filesystem and restoring instead we use simple procedure without involving the DMA .
dynamox
2 Intern
2 Intern
•
20.4K Posts
0
July 24th, 2013 20:00
it's much easier to use server_archive
dynamox
2 Intern
2 Intern
•
20.4K Posts
0
July 24th, 2013 21:00
used it to migrate many terabytes, solid tool. Different strokes for different folks ..same result.
sundar.rajan
29 Posts
0
July 24th, 2013 21:00
server_archive can fail some times .
ndmptool is reliable ....
vijay_vemulapal
4 Posts
0
May 28th, 2014 07:00
Dynamox, Is it require any down time. Can you please share the procedure for the same.
Thanks in advance.
dynamox
2 Intern
2 Intern
•
20.4K Posts
0
May 28th, 2014 07:00
search "server_archive" , yes you will need brief downtime.
DigicelT_
2 Posts
0
June 14th, 2016 06:00
Hello everyone,
re igniting this thread, I ran into the same issue of over allocating, rahmad , did you resolve this? if so since this is a old thread is there a better tool. Which they had a GUI to shrink or reclaim allocated space not needed.
Rainer_EMC
8.6K Posts
0
June 14th, 2016 07:00
If you click on rahmad's Icon you'll see that he has last logged into the forum in January 2012 .....
If you want a GUI - there are several freeware and commercial Windows copy utils with a GUI
Rainer_EMC
8.6K Posts
0
June 14th, 2016 07:00
well you finally got your wish - it is now possible to create treequota's on existing directories in Unity :-)
DigicelT_
2 Posts
0
June 14th, 2016 08:00
thank you for your feedback greatly appreciated.
dynamox
2 Intern
2 Intern
•
20.4K Posts
0
June 16th, 2016 12:00
I thought this day would never come, and you saw me in Hopkinton last October for VNX TAP and did not say anything. So sneaky