Sponsored Content
Operating Systems AIX Filesystem reduction size issue Post 302900709 by borek on Thursday 8th of May 2014 10:36:54 AM
Old 05-08-2014
Ohh...ok. I always thought that LVM is smart enough and can do space reduction in fly (also if reduced LPs contain data).

Both filesystems are busy in < 50% - but looks like data are fragmented across all disks and LVM "lock" data during shrink process.

Is there an option to check if given LP is free or contain filesystem data?

Is there an option to do it online? Play with defrag command?
 

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

Changing Filesystem size.

Hi there, can i change the size of filesystem afterwards. i want give some more space to my /export/home and want take some space from /opt. is it possible in solaris ? Any help will be appriciated. Abid (2 Replies)
Discussion started by: abidmalik
2 Replies

2. AIX

Increasing the FileSystem Size

Hi Everybody, I have AIX 4.3 and I have a FileSystem with 400GB size, which called /db/run. Because of grow up of the application's data, more storage has been added 200GB. To add this space without affecting the application & the application's requirements, I have to add this 200GB to the existed... (9 Replies)
Discussion started by: aldowsary
9 Replies

3. UNIX for Dummies Questions & Answers

actual filesystem size during backup

Scenario............ ufsdump 0uf /dev/rmt/0n / root has 10GB available but only 5GB are used. Does the backup record the entire 10GB regardless of whats actually used or just the 5GB being used? (1 Reply)
Discussion started by: shorty
1 Replies

4. UNIX for Advanced & Expert Users

will a named pipe always be size 0 on filesystem?

I did cat < myFile >> myPipe I was hoping that if I did ls -l, myPipe would now be holding the contents of myFile, and would be the same size. But it was 0. Also strange was that when I did the command above, cat did not return control back to the shell. Why? thanks (4 Replies)
Discussion started by: JamesByars
4 Replies

5. UNIX for Dummies Questions & Answers

How to increase the filesystem size?

Hi.. I want to increase the file system size of any filesystem online, without using the Volume manager like LVMs, is it possible? & if yes then how? (3 Replies)
Discussion started by: Amol21
3 Replies

6. AIX

filesystem size

i am new in the field 3months to be precise. how do i come up with size, i want to change for the filesystem? assuming there is enough space on the volume group. do i just assign any value? (5 Replies)
Discussion started by: freeman
5 Replies

7. UNIX for Dummies Questions & Answers

Removing some size for filesystem

Hi All, Currently for filesystem /usr/sap/ccms we have allocated 50 GB of size and its mounted. Is there any procedure to remove 10 GB from it without disturbing data and allocate that 10 GB to another file system say /usr/sap/sapdata1. Thanks, Rohan (2 Replies)
Discussion started by: rohanxyz
2 Replies

8. UNIX for Advanced & Expert Users

Physical disk IO size smaller than fragment block filesystem size ?

Hello, in one default UFS filesystem we have 8K block size (bsize) and 1K fragmentsize (fsize). At this scenary I thought all "FileSytem IO" will be 8K (or greater) but never smaller than the fragment size (1K). If a UFS fragment/blocksize is allwasy several ADJACENTS sectors on disk (in a ... (4 Replies)
Discussion started by: rarino2
4 Replies

9. Red Hat

Increase the filesystem size

Hi I am using oracle linux 6.4. My hard drive capacity is 500 GB. my filesystem size onbly 50GB. I would like to extend my filesystem size to around 100GB. I tried many codes but still I am not able. this is the output of df -h : Filesystem Size Used Avail Use% Mounted on... (6 Replies)
Discussion started by: farshad
6 Replies

10. Hardware

Increasing the filesystem size

Hi Guys We have a VM machine, now I want to increase the size of the filesystem. We are running RHEL6 O/S. I have filesystem that is 500GB I want to increase that filesystem to 1.5 TB. The guy who manages the VM increased the size on the VM machine, now how do I make sure that the... (7 Replies)
Discussion started by: Phuti
7 Replies
LVREDUCE(8)						      System Manager's Manual						       LVREDUCE(8)

NAME
lvreduce - reduce the size of a logical volume SYNOPSIS
lvreduce [-A|--autobackup {y|n}] [-d|--debug] [-f|--force] [-h|--help] {-l|--extents [-]LogicalExtentsNumber| -L|--size [-]LogicalVolume- Size[kKmMgGtT]} [-v|--verbose] LogicalVolumePath DESCRIPTION
lvreduce allows you to reduce the size of a logical volume. Be careful when reducing a logical volume's size, because data in the reduced part is lost!!! You should therefore ensure that the (eg) filesystem on the volume is resized running lvreduce so that the extents that are to be removed are not in use. If the filesystem is ext2 then you can use the e2fsadm(8) command to both resize the filesystem and the logical volume together. Shrinking snapshot logical volumes (see lvcreate(8) for information to create snapshots) is supported as well. OPTIONS -A, --autobackup y/n Controls automatic backup of VG metadata after the change ( see vgcfgbackup(8) ). Default is yes. -d, --debug Enables additional debugging output (if compiled with DEBUG). -f, --force Force size reduction without any question. -h, --help Print a usage message on standard output and exit successfully. -l, --extents [-]LogicalExtentsNumber Reduce or set the logical volume size in units of logical extents. With the - sign the value will be subtracted from the logical volume's actual size and without it the will be taken as an absolute size. -L, --size [-]LogicalVolumeSize[kKmMgGtT] Reduce or set the logical volume size in units of megabyte by default. A size suffix of k for kilobyte, m for megabyte, g for giga- byte or t for terabyte is optional. With the - sign the value will be subtracted from the logical volume's actual size and without it the will be taken as an absolute size. -v, --verbose Gives verbose runtime information about lvreduce's activities. Example "lvreduce -l -3 /dev/vg00/lvol1" reduces the size of logical volume lvol1 in volume group vg00 by 3 logical extents. DIAGNOSTICS
lvreduce returns an exit code of 0 for success and > 0 for error: 1 no logical volume name on command line 2 invalid logical volume name 3 logical volume is not active 4 logical volume doesn't exist 5 error reading VGDA 6 error getting index of logical volume 7 new size of logical volume not smaller than old one 8 error setting VGDA up for reduce 9 error reducing logical volume in kernel 10 error writing VGDA to physical volume(s) 11 error getting index for read/write statistic transfer 12 error getting status of logical volume from kernel 13 error setting up copy on write exception table 95 driver/module not in kernel 96 invalid I/O protocol version 97 error locking logical volume manager 98 invalid lvmtab (run vgscan(8)) 99 invalid command line ENVIRONMENT VARIABLES
LVM_AUTOBACKUP If this variable is set to "no" then the automatic backup of VG metadata is turned off. LVM_VG_MAX_BACKUPS This variable determins the backup history depth of kept VGDA copy files in /etc/lvmconf. It can be set to a positive number between 0 and 999. The higher this number is the more steps are you able to backup with vgcfgrestore(8) from the changes you make to your volume groups. LVM_VG_NAME The default Volume Group Name to use. Setting this variable enables you to enter just the Logical Volume Name rather than its com- plete path. See also lvm(8), lvcreate(8), lvextend(8), lvchange(8), e2fsadm(8) AUTHOR
Heinz Mauelshagen <Linux-LVM@Sistina.com> Heinz Mauelshagen LVM TOOLS LVREDUCE(8)
All times are GMT -4. The time now is 08:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy