Sponsored Content
Full Discussion: Add new disks and expandlv
Operating Systems AIX Add new disks and expandlv Post 302350566 by bakunin on Friday 4th of September 2009 08:39:52 AM
Old 09-04-2009
First, add the disk(s) to the volume group in question. You have already figured that out:

Code:
extendvg <VGname> <diskname>

example: extendvg myVG hdisk99

Then issue a "lsvg <VGname>" and you will see the added available PPs. These are available to expand your file systems/logical volumes.

It is possible to directly increase the FS and LVM will automatically extend the LV for you but i want more control over this process so i habitually extend the LV first and only then the FS:

Code:
extendlv [-m<mapfile>] <LVname> <NrOfPPs>
or
extendlv <LVname> <NrOfPPs> [<PVname>]

example: extendlv MyLV 5
will increase the size of MyLV by 5 times the PP size. If MyLV is mirrored a multiple of 5 PPs will be added,
depending on the number of mirrors configured.

Then expand the filesystem to make use of the additional space in the LV: first convert your PP size to 512-byte-blocks:

blocks = <nr of PPs> * 2 * <PPsize in kb>

example: PP size is 256G, 2 PPs added:

2 * 2 * 1024 * 1024 * 256 = 1073741824

Then use this number to add that many blocks to your fs:

Code:
chfs -a size=+<nr of blocks> <FS>

example: chfs -a size=+1073741824 /my/file/system

You can do all this while the system is under load, there is no need to unmount anything, let alone stop the system.

I hope this helps.

bakunin
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how many disks do I have?

Hi How do I check how many disks do I have in Solaris & HP-UX? Also what does this mean c9t1d5 in /dev/dsk what is c, t, d etc cheers (8 Replies)
Discussion started by: g-e-n-o
8 Replies

2. Solaris

What do you use to wipe your disks?

What are y'all using to wipe your solaris disks? I am being question by IT Security, what I am using to wipe disk. Is anyone using a 3rd party utility? I have used the format utility in solaris previously. But they are looking for something commercial that I can use. Anyone have... (4 Replies)
Discussion started by: BG_JrAdmin
4 Replies

3. AIX

disks broke?

hay I'm new in the AIX-environment. Right now i'm testing some stuff out. But i can't test the LVM-part which is (to me) very important. I have 2 disks in my testmachine but it seems only 1 is working wel. I'll show you the output below of the disks... hdisk0 = in good condition hdisk2 =... (8 Replies)
Discussion started by: kvanelshocht
8 Replies

4. Solaris

disks in solaris

whats the command to find name of all disks. Is it iostat -En ? (1 Reply)
Discussion started by: vikashtulsiyan
1 Replies

5. Solaris

Re-using disks

I would like to know if I can move the disks from a V240 chassis into a V440 chassis to use the increased resources (CPU & Memory) to boost performance. I know you can move disks between V210/240 chassis's, but I'm not sure if this would work between 240s & 440s. Any help would be much appreciated. (4 Replies)
Discussion started by: Chains
4 Replies

6. Solaris

host cannot see FC disks

Have a V440 server which we need to connect up to a SE6140. Did the zoning on the 3900 brocade silkworm and did mapping from the array to the host manually host initiator did not autodetect the wwn and had to key in manually. probe-scsi-all cannot show the fc disks. What is the problem here? (7 Replies)
Discussion started by: incredible
7 Replies

7. Solaris

Are my disks mirrored ?

# metastat d1: Mirror Submirror 0: d11 State: Okay Submirror 1: d12 State: Okay Pass: 1 Read option: roundrobin (default) Write option: parallel (default) Size: 14582208 blocks (7.0 GB) d11: Submirror of d1 State: Okay Size: 14582208 blocks... (2 Replies)
Discussion started by: Exposure
2 Replies

8. Filesystems, Disks and Memory

FC related disks

Dear Friends, I would like know what are FC related disks and how it will be viewed by generic OSes (Unix, Unix like, Windows & etc.) AFAIK it is viewed by generic OS as SCSI. Can we have FC related disks as internal storage(physically) of general purpose machine (Server / PC /... (1 Reply)
Discussion started by: Tlogine
1 Replies

9. AIX

Striped FS , need to add new disks

Hi, I have a filesystem that is created on a VG with 12 disks. The FS is striped on these disks. Now I have to add 10 more disks to this volume group to help increase the space of the same FS that is striped. How should I add these disks to the Vg and i need these disks to be added such the FS... (1 Reply)
Discussion started by: aixromeo
1 Replies

10. Solaris

How to tell what disks are used for a zpool?

Hello, Does anyone know how I can tell what disk are being not being used by a zpool? For example in Veritas Volume manager, I can run a "vxdisk list" and disks that are marked as "online invalid" are disk that are not used. I'm looking for a similar command in ZFS which will easily show... (5 Replies)
Discussion started by: robertinoau
5 Replies
extendfs_hfs(1M)														  extendfs_hfs(1M)

NAME
extendfs_hfs: extendfs - extend HFS file system size SYNOPSIS
size] special DESCRIPTION
If the original HFS file system image created on special does not make use of all of the available space, the command can be used to increase the capacity of an HFS file system by updating the file system structure to include the extra space. The command-line parameter special specifies the character device special file of either a logical volume or a disk partition. The special must be unmounted before the command can be run (see mount(1M)). Options recognizes the following options: Specify the HFS file system type. Query the size of special. No file system extension will be done. Verbose flag. Specifies the number of blocks to be added to the file system. If the number of blocks is not specified, the maximum possible size is used. EXAMPLES
To increase the capacity of a file system created on a logical volume, enter: WARNINGS
The root file system cannot be extended using the command because the root file system is always mounted, and the command only works on unmounted file systems. will fail if used on a file system, on a logical volume, where the logical block size of the logical volume is greater than the file sys- tem's fragment size. The logical block size, of a logical volume changes, when additional disks with larger sector size are added. RETURN VALUE
returns the following values: 0 No errors were detected and file system was successfully extended. 1 Command aborted. SEE ALSO
extendfs(1M), lvextend(1M), mkfs(1M), mount(1M), umount(1M). extendfs_hfs(1M)
All times are GMT -4. The time now is 01:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy