LVM-Reduced


 
Thread Tools Search this Thread
Operating Systems HP-UX LVM-Reduced
# 1  
Old 06-01-2008
LVM-Reduced

Hey guys how do you reduced a disk space in lvm?
# 2  
Old 06-02-2008
For reducing a logical volume, you can use the following command.

# lvreduce -L 16 /dev/vg01/data

Replace 16 with the final size of the logical volume in MBs.
Replace /dev/vg01/data with the appropriate logical volume device file.

Caution: If the logical volume contains any file system, the file-system need to be reduced first. And before the file -system can be reduced, it should be defragmented.

Suggestion: Take backup of the logical volume data and then do lvreduce. After reducing lv, restore the data backup.
# 3  
Old 06-02-2008
Do you have online-JFS?
If so use fsadm... then lvreduce
e.g. (live!)
ant # fsadm -b 500000 /home
fsadm: /etc/default/fs is used for determining the file system type
vxfs fsadm: /dev/vg00/rlvol5 is currently 819200 sectors - size will be reduced
vxfs fsadm: allocations found in shrink range, moving data
ant # lvreduce -L 500 /dev/vg00/lvol5
Warning: rounding up logical volume size to extent boundary at size "504" MB.
When a logical volume is reduced useful data might get lost;
do you really want the command to proceed (y/n) : y
Logical volume "/dev/vg00/lvol5" has been successfully reduced.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
ant #


All the best
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to convert non LVM root partition to LVM?

Hi Guys, I m using redhat 6, I have installed root partition as non-LVM . Is there any way i can convert it to LVM? (1 Reply)
Discussion started by: pinga123
1 Replies

2. Solaris

Root file system automatically reduced from 90 to 40%

Greetings. i have solaris 9. I had a problem with root file system day before yesterday when it got 100% full, i reduced it to 90% but then after one day it was automatically reduced to 40%!!! no human intervention was done. no reboot done. Last time when i checked in proc FS there were a lot... (3 Replies)
Discussion started by: mr_os
3 Replies

3. HP-UX

How to reduce LVM to create another LVM

Hi, I'm new to HP-UX. I have LVM on /var with 92Gig. I would like to reduce it to create another LVM for Oracle client with 800 meg or so. How to do it. I'm running 11.iv3 Thanks (4 Replies)
Discussion started by: lamoul
4 Replies

4. AIX

Time getting reduced by 1 hour

I am setting TZ=EST5EDT,M3.2.0/02:00:00,M11.1.0/02:00:00 Then Setting the date to Mar 14 01:40 EST date 0314014010 Sun Mar 14 01:40:36 EDT 2010 Note that it show it EST. According to my TZ variable 01:40 Should be in EST only. On executing date command once again it shows date Sun Mar... (4 Replies)
Discussion started by: januuj23
4 Replies
Login or Register to Ask a Question