The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > HP-UX
.
google unix.com



HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-01-2008
sbn sbn is offline
Registered User
  
 

Join Date: May 2008
Posts: 36
LVM-Reduced

Hey guys how do you reduced a disk space in lvm?
  #2 (permalink)  
Old 06-02-2008
Adams Nave Adams Nave is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 23
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 (permalink)  
Old 06-02-2008
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,585
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:58 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0