Operating System - HP-UX
1825777 Members
2174 Online
109687 Solutions
New Discussion

Re: extending raw volumes.

 
joe_91
Super Advisor

extending raw volumes.

We have created some raw volumes for oracle use and there is a request to increase those volumes, Can this be done? If so what ould be the procedure to do it? HP-UX 11.0.

Thanks

Joe
6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: extending raw volumes.

How did you create them? What did you create, for that matter.

Assuming that they are raw logical volumes, take a look at lvextend.


Pete

Pete
Srikanth Arunachalam
Trusted Contributor

Re: extending raw volumes.

Hi Joe,

The following procedure outlines how to resize an LVM filesystem.

The procedure should first be tested in test before being performed against a production environment. Make sure that the database tablespace is offline or the database is shutdown before doing this activity.

1. Backup all data on the filesystem
Repartitioning a disk/device is a destructive process that may result in complete loss of volume data.
Backup the contents of the volume to be resized before proceeding.

2. Globally unmount the filesystem to be resized (This is only when you do not have online JFS, if you have online JFS just perform the lvextend without unmounting it).

3. Perform a filesystem check using fsk
before extending

fsck -F vxfs -o full

4. Resize the underlying device/partition using lvextend
lvextend -L /dev/vgXX/lvolXX

Thanks,
Srikanth
Srikanth Arunachalam
Trusted Contributor

Re: extending raw volumes.

Hi Joe,

The following procedure outlines how to resize an LVM filesystem using LVM. If you are using ASM for Oracle, then RAW volumes cannot be extended using below procedure, you need to create a new RAW volumes. The attached document will guide you through it.

The procedure should first be tested in test before being performed against a production environment. Make sure that the database tablespace is offline or the database is shutdown before doing this activity.

1. Backup all data on the filesystem
Repartitioning a disk/device is a destructive process that may result in complete loss of volume data.
Backup the contents of the volume to be resized before proceeding.

2. Globally unmount the filesystem to be resized (This is only when you do not have online JFS, if you have online JFS just perform the lvextend without unmounting it).

3. Perform a filesystem check using fsk
before extending

fsck -F vxfs -o full

4. Resize the underlying device/partition using lvextend
lvextend -L /dev/vgXX/lvolXX

5. Resize the filesystem with following condition.
If you are using Online JFS, then you use 'fsadm' to extend the filesystem. If no onlineJFS present use 'extendfs'.

Thanks,
Srikanth
Thanks,
Srikanth
Victor Fridyev
Honored Contributor

Re: extending raw volumes.

Hi,

The procedure is very simple if you have enough space in the volume group, wher the logical volume[s] created.

lvextend -L new_size_in_MB /dev/vg00/lvlolname


Don't forget to backup the DB before.

HTH
Entities are not to be multiplied beyond necessity - RTFM
JIJ_1
Frequent Advisor

Re: extending raw volumes.

Hi Joe,
Yes.It can be extended by using the lvextend command.

#lvextend -L /dev//

Please note that since it is a raw lvol no need to do execute newfs command.

Regards!
Jijeesh
Tim Nelson
Honored Contributor

Re: extending raw volumes.

Are these volumes under the control of LVM or are they, as you termed, raw i.e. you are using /dev/dsk/cxtxdx ?

The method is different for each, just need a clarification.