Visit Our UNIX and Linux User Community

disk space shortage, how to migrate to LVM?

Thread Tools Search this Thread
Operating Systems AIX disk space shortage, how to migrate to LVM?
# 1  
Old 03-30-2009
disk space shortage, how to migrate to LVM?


I'm working on AIX 6.1. I inherited something I do not know and now I need to bring it into the line.

# df -m
Filesystem MB blocks Free %Used Mounted on
/dev/hd4 | 256.00 | 87.09 | 66% /
/dev/hd2 | 4608.00 | 82.45 | 99% /usr
/dev/hd3 | 256.00 | 212.34 | 18% /tmp
/dev/hd1 | 256.00 | 1.95 | 100% /home

/dev/lv02 | 65024.00 | 60709.92 | 7% /home/users
/dev/lv03 | 65024.00 | 65001.13 | 1% /temp

Now you know why I'm asking of some help.
I'm running out of space on /dev/hd* :|

I have plenty of free space on other drives so I can set up few more LVMs.
Is there any easy way to migrate my files from running-short filesystems to LVMs?

I think that I should prepare lvm, copy all files from such fs and then modify /etc/filesystems to point new disk space for a mountpoint.
Am I correct?

Is there some magic command for such copying?

Do I have to reboot to check whether it works?

Best regards
# 2  
Old 03-30-2009
Hello michael,

Did you checked free space available in in the vg?

"lsvg rootvg" and check for free PPs....
If free PPs are available you can extend those Filesystems online...
# 3  
Old 03-30-2009
Originally Posted by rrlog
Hello michael,

Did you checked free space available in in the vg?

"lsvg rootvg" and check for free PPs....
If free PPs are available you can extend those Filesystems online...

VGs are OK, but regular partitions are running short.
That is the issue.

# 4  
Old 03-30-2009
Afaik you always have LVM under AIX. You can easy enlarge the FS/LV with it online. It will grab space from unused PP from your VG.

chfs -a size=+100M /home        # adds 100 MB of space to the FS/LV

Mounting mountpoints into other mountpoints is not a good style. You can get trouble with mount orders etc. especially in cluster environments when you have loads of those.
# 5  
Old 03-31-2009
I didn't think you could create filesystems directly on disks in AIX. I thought they all had to be in VGs. I'd be extemely surprised if you have an AIX 6 install with no rootvg. Run these commands to check if you do indeed have a rootvg:

lsvg rootvg
lsvg -l rootvg

I'd be interested in seeing the output.
# 6  
Old 04-01-2009
Originally Posted by michalwu
VGs are OK, but regular partitions are running short.
That is the issue.

Partitions(LV) creates under the VG. Most of time free space remains in VG after creating LVs. That you can check by command...
lsvg rootvg
Check the Free PPs in the output. If the PPs are available. You can increase your LV by command..

chfs -a size=1G /mountpointname
else you can add another PV (disk) into VG by..

extendvg vgname pvname
and than can use migratepv command. Check man page for it.
# 7  
Old 04-01-2009

u misunderstood lvm, all file system under lvm.
lsvg rootvg will give u a brief message of free space of rootvg which all your troubled fs in.

smit fs to change the size of file system. or #chfs -a size=+10m /home to add 10m to /home. etc.

lsvg rootvg
VOLUME GROUP: rootvg VG IDENTIFIER: 0003336597305871
VG STATE: active PP SIZE: 32 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 1084 (34688 megabytes)
MAX LVs: 256 FREE PPs: 264 (8448 megabytes)
LVs: 10 USED PPs: 820 (26240 megabytes)
MAX PPs per PV: 1016 MAX PVs: 32

Previous Thread | Next Thread
Test Your Knowledge in Computers #104
Difficulty: Easy
Unix is a family of multitasking, portable, multi-user computer operating systems, which do not have time-sharing capability.
True or False?

8 More Discussions You Might Find Interesting

1. Linux

How to migrate a running lvm.?

Hi all, Please explain how do i. Migrate and backup a running lvm..!! Thanks, Sent from my LG-D802 using Tapatalk (3 Replies)
Discussion started by: lordkizzo
3 Replies

2. HP-UX

LVM: is possible to replace a disk?

Scenario1: VG00 lvm,not mirrored,2 disk of 36GB vg size VG00 size is under 30G. Is possible to remove a disk of 36GB and replace "on fly" with a disk of 300GB on VG00? Thanks (6 Replies)
Discussion started by: Linusolaradm1
6 Replies

3. BSD

Migrate a Hard Disk

hi Has anyone already tried to migrate a hard disk with FreeBSD using recoverdisk? (1 Reply)
Discussion started by: ccc
1 Replies

4. AIX

AIX LVM migrate lp

Hi, I have questions about unix AIX's lvm. Is there some problem to do migrate lp into a mirrored vg or should i break the mirror before? Is necessary to run reorgvg after I migrate lp ? thanks (1 Reply)
Discussion started by: alfastar
1 Replies

5. Red Hat

How to Migrate from Single Disk to Many? (RHEL 4.6)

I have a Red Hat Enterprise 4.6 virtual server built on 1 virtual disk running Oracle Applications on VMware ESX 3.5; the performance of the virtual server is not good because of IO bottlenecks. The ESX server is reporting minimal load, it's the virtual server which is struggling with disk IO... (2 Replies)
Discussion started by: home4ktt
2 Replies

6. AIX

Disk I/O Issue using LVM

We have a filesystem which contains 8 hard disks but i am facing disk I/O issue becuase data is not spreading across all the disks.Is there any way i can check how data is spreading and any parameter we need to change to spread ata across all disks. OS--AIX 5.3 (1 Reply)
Discussion started by: ukatru
1 Replies

7. Solaris

Migrate VxVM boot disks to higher capacity disk

Hi, Im getting a downtime of 4 hrs to do porting of bootdisks. Currently, the system is running on Sf4800. 2 internal disk 36G connected to a SE3510 storage. We're getting 72G disks and we want to restore the OS from the current 36G to the 72G disk. System is under veritas volume manager ctrl.... (4 Replies)
Discussion started by: incredible
4 Replies

8. HP-UX

disk adding through lvm

Hi dear(s) Can u explain how to add a disk through lvm with commands. I need to add a 9 gb scsi HS disk to a Hp D class 9000 server. (2 Replies)
Discussion started by: sreekumar.R
2 Replies

Featured Tech Videos