Sponsored Content
Full Discussion: Expand LV
Operating Systems AIX Expand LV Post 302748705 by bakunin on Wednesday 26th of December 2012 06:06:18 PM
Old 12-26-2012
By adding PPs to the LV you expanded just that: the LV. You have to expand the FS too to make use of the enlarged capacity:

First, calculate how much space you added by multiplying the size of the PP (check with lsvg <vgname>) with the number of LPs you added. Let us suppose you have PPs of 1GB size and you added 2 LPs. Now calculate, how many disk blocks this is (a block is the standard FS unit, 512 bytes) - 2 LPs of 1024 * 1024 * 2 blocks:

Code:
# bc
2*1024*1024*2
4194304

Now use this value in a chfs command:

Code:
# chfs -a size=+4194304 /path/to/mountpoint

I hope this helps.

bakunin
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Terminal Expand

hi guys. i have written a script/program and i would strongly prefer if this script automatically expands the user's terminal whenever he or she starts the script. this is so the script/program can fit on the user's screeen without user having to manually drag and spread his screen. what... (2 Replies)
Discussion started by: Terrible
2 Replies

2. Shell Programming and Scripting

expand logic for > and <

Hi Input A12345678901234567890 < A12345678901234567890 AND C12345678901234567890 < D12345678901234567890 AND E12345678901234567890 > F12345678901234567890 If the length of the line at any point exceed more than 60 chars it should come to next line but it should not break a variable... (0 Replies)
Discussion started by: pbsrinivas
0 Replies

3. Shell Programming and Scripting

expand and uuencode...

I have a log file that looks fine when you view it in Unix but when I send it as an attachment to myself it looses its formatting... so I am using "expand" to replace the tabs with spaces and the format looks good. The code below works great but I was wondering if there was a way to do this without... (2 Replies)
Discussion started by: sethcoop
2 Replies

4. Shell Programming and Scripting

How to expand the same word?

Hi All, May I know how to expand the words? e.g: a aa aaa aaaa I have try to use for (i=0;i<5;i++) do c="a" echo -n $c done but the output is aaaaa. Is it need to use array?:confused: Thanks for your help! (5 Replies)
Discussion started by: natalie23
5 Replies

5. What is on Your Mind?

looking to expand skillset to the next level

Hi, This forum is great, I lurk here a lot and use a lot of what is posted here to help expand my skills. I have taken zero computer courses my entire life and for the most part and self taught. I am a Systems Administrator for a public school system that runs a 1:1 (6,000 Macbooks, 2,000+ Mac... (0 Replies)
Discussion started by: tlarkin
0 Replies

6. UNIX for Dummies Questions & Answers

How to expand who command?

When I do the who command it doesn't show all my info: $w gscn 6:08PM up 4 days, 20:33, 177 users, load averages: 7.46, 3.78, 3.43 USER TTY FROM LOGIN@ IDLE WHAT gscn R1 pool-92-199-17-1 5:46PM - w gscn Like in the 'From' column.... (8 Replies)
Discussion started by: guitarscn
8 Replies

7. AIX

Expand LUN

Hello all, I have the following env: * DS4300 storage SAN * AIX 5.3 Lpar (storage through vio server) * AIX 5.3 Server Some FS are too small do I'm setting up a process to increase the size of the FS. To expand the size of the FS I plan to do the following for the physical AIX server,... (1 Reply)
Discussion started by: petervg
1 Replies

8. Solaris

How to Expand a File System?

Hello everyone, I'm planning to expand a filesystem on solaris 10. This filesystem is managed by Solaris Volume Manager and Sun Cluster 3.2 /dev/md/APP-set/dsk/d120 50G 49G 1G 98% /MyFileSystem Can I do that by using this command: growfs -M ... (1 Reply)
Discussion started by: adilyos
1 Replies

9. Red Hat

How to expand three LVMs?

Hello All, It goes like this.. I have increased the data hard drive of server by 100GB and rebooted the server. I want to expand each of the LVM's by 30GB each .There are totally three LVMS to be expanded.Any help on complete commands that needs to be followed?Thanks (4 Replies)
Discussion started by: gull05
4 Replies
DF(1)							    BSD General Commands Manual 						     DF(1)

NAME
df -- display free disk space SYNOPSIS
df [-agklmn] [-G | -i | -P] [-t type] [file | file_system ...] DESCRIPTION
df displays statistics about the amount of free disk space on the specified file_system or on the file system of which file is a part. By default, all sizes are reported in 512-byte block counts. If neither a file or a file_system operand is specified, statistics for all mounted file systems are displayed (subject to the -l and -t options below). Note that the printed count of available blocks takes minfree into account, and thus will be negative when the number of free blocks on the filesystem is less than minfree. The following options are available: -a Show all mount points, including those that were mounted with the MNT_IGNORE flag. -G Display all the fields of the structure(s) returned by statvfs(2). This option cannot be used with the -i or -P options, and it is modelled after the Solaris -g option. This option will override the -g, -h, -k, and -m options, as well as any setting of BLOCKSIZE. -g The -g option causes the numbers to be reported in gigabytes (1024*1024*1024 bytes). -h "Human-readable" output. Use unit suffixes: Byte, Kilobyte, Megabyte, Gigabyte, Terabyte, Petabyte, Exabyte in order to reduce the number of digits to four or less. -i Include statistics on the number of free inodes. -k By default, all sizes are reported in 512-byte block counts. The -k option causes the numbers to be reported in kilobytes (1024 bytes). -l Display statistics only about mounted file systems with the MNT_LOCAL flag set. If a non-local file system is given as an argument, a warning is issued and no information is given on that file system. -m The -m option causes the numbers to be reported in megabytes (1024*1024 bytes). -n Print out the previously obtained statistics from the file systems. This option should be used if it is possible that one or more file systems are in a state such that they will not be able to provide statistics without a long delay. When this option is speci- fied, df will not request new statistics from the file systems, but will respond with the possibly stale statistics that were previ- ously obtained. -P Produce output in the following portable format: If both the -P and -k option are specified, the output will be preceded by the following header line, formatted to match the data following it: "Filesystem 1024-blocks Used Available Capacity Mounted on " If the -P option is specified without the -k options, the output will be preceded by the following header line, formatted to match the data following it: "Filesystem <blksize>-blocks Used Available Capacity Mounted on " The header line is followed by data formatted as follows: "%s %d %d %d %d%% %s ", <file system name>, <total space>, <space used>, <space free>, <percentage used>, <file system root> Note that the -i option may not be specified with -P. -t type Is used to indicate the actions should only be taken on filesystems of the specified type. More than one type may be specified in a comma-separated list. The list of filesystem types can be prefixed with ``no'' to specify the filesystem types for which action should not be taken. If a file system is given on the command line that is not of the specified type, a warning is issued and no information is given on that file system. ENVIRONMENT
BLOCKSIZE If the environment variable BLOCKSIZE is set, and the -g, -h, -k and -m options are not specified, the block counts will be dis- played in units of that size block. SEE ALSO
quota(1), fstatvfs(2), getvfsstat(2), statvfs(2), getbsize(3), getmntinfo(3), fs(5), fstab(5), mount(8), quot(8), tunefs(8) HISTORY
A df utility appeared in Version 6 AT&T UNIX. BSD
March 4, 2008 BSD
All times are GMT -4. The time now is 05:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy