Moving free space from one LV to another LV


 
Thread Tools Search this Thread
Operating Systems AIX Moving free space from one LV to another LV
# 1  
Old 10-15-2010
Moving free space from one LV to another LV

in the same VG?

Is there a way we can do this?

We basically have a test server that used to be a production server. Now the newly created test directories have run out of space and the old production directories have alot of free space. Can we transfer that free space over?

If so how? Have never done this before and cant really find an easy explanation.
# 2  
Old 10-15-2010
I'm not sure what you're about to do. "free space" is basically the part of the disk(s), which is not used. You can move around the *used* space, so that specific LPs/PPs become free, but you cannot "move free space". Use the command "lmigratepp" to do so.

On how to use "lmigratepp" refer to this redbook.

I hope this helps.

bakunin
# 3  
Old 10-15-2010
Quote:
Originally Posted by NycUnxer
i[...]the newly created test directories have run out of space and the old production directories have alot of free space. Can we transfer that free space over.[...]
In case you use jfs2 filesystems in your LVs you could simply shrink the less used filesystems with the 'chfs' command. By reducing jfs FS size you free PP which in turn can then be used for increasing the other filesystems (again with the 'chfs' command).
Sometimes fragmentation gets into your way when shrinking. In that case try the 'defrags' command. And start by shrinking in small portions. I.e. if your PP size is 64 MB start by reducing the less used FS by 64 MB. If it works, try bigger chunks. Read the 'chfs' manpage for details.

So much to jfs2. With jfs filesystems that shrinking on the fly would not be possible. In that case you could backup the filesystems by mksysb and use the shrinkfs option at recovery. Or you backup, recreate the FS and restore manually.
If you are using raw devices you could cut off PP but you would need to know for sure that there was no data in the PP being cut of. That often turns out to be a problem so again you would probably fall back to manually backup the data, recreate the raw device and then recover.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Space moving to next column (awk HTML)

Hi I have create a report and have converted the text output to HTML but in the output there is a sentence "The transaction was aborted by the user.", the spaces between this sentence is considered as separate column. How can I overcome the same? I am providing my code, text output and... (7 Replies)
Discussion started by: Dumpi16
7 Replies

2. Fedora

Need to incrwase PHYSICAL VOLUME space on hard drive with free space on it

Hi, I run Fedora 17. I created a physical volume of 30GB on a disk with 60GB of space so there is 30GB of free space. On the physical volume, I created my volume group and logical volumes. I assigned all the space in the physical volume to my volume group. I need to add the 30GB of free space... (1 Reply)
Discussion started by: mojoman
1 Replies

3. Red Hat

On CentOS, moving space from large free directory to another

Hi. My "/usr" folder is running out of space. My "/home" folder is quite large and has a lot of free space. As follows: Filesystem Type Size Used Avail Use% Mounted on ... /dev/sda5 ext3 9.7G 2.6G 6.7G 28% / /dev/sda7 ext3 152G 16G 128G 11% /home /dev/sda3 ... (7 Replies)
Discussion started by: pkiula
7 Replies

4. Solaris

No space left on device but free space and inodes are available...

hi guys, me again ;) i recently opened a thread about physical to zone migration. My zone is mounted over a "bigger" LUN (500GB) and step is now to move the old files, from the physical server, to my zone. We are talking about 22mio of files. i used rsync to do that and every time at... (8 Replies)
Discussion started by: beta17
8 Replies

5. Shell Programming and Scripting

Free space at disk

Hi, I would like to create the new file system(mount point) in our unix server. before that i would like to know the total free space available in /home directory. Can you please let me know, how to find free space available for new filesystem? Be careful with your spelling and... (2 Replies)
Discussion started by: koti_rama
2 Replies

6. Shell Programming and Scripting

Calculate total space, total used space and total free space in filesystem names matching keyword

Good afternoon! Im new at scripting and Im trying to write a script to calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
Discussion started by: bigben1220
4 Replies

7. UNIX for Dummies Questions & Answers

free space, used space in ftp

Is possible to see how much available space there is on a ftp server and how much is used through ftp ? how ? free space: used space: thanks (1 Reply)
Discussion started by: aneuryzma
1 Replies

8. Solaris

how to get the more memory free space (see memory free column)

Hi all, Could please let me know how to get the more memory free space (not added the RAM) in local zone. -bash-3.00# vmstat 2 5 kthr memory page disk faults cpu r b w swap free re mf pi po fr de sr s0 s1 s1 s1 in sy cs us sy... (3 Replies)
Discussion started by: murthy76
3 Replies

9. Shell Programming and Scripting

Moving files with space, in for loop

Hi All I need to put a bunch of specific files in a directory (with loads of other files), into a tar archive. The best way I thought of doing this was putting the filenames into a file, reading them line by line in a for loop, and then adding them to a tar acrhive. However the filenames have... (6 Replies)
Discussion started by: saabir
6 Replies

10. UNIX for Advanced & Expert Users

moving space from one partition to another

How can I move some space allocated to one partition to another, i.e. from "/var" to "/" . Thanks! (4 Replies)
Discussion started by: jason6792
4 Replies
Login or Register to Ask a Question