- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Extend Logical volumes
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2001 07:18 AM
10-04-2001 07:18 AM
I need a great help from the UNIX experts because in my current project there is no Unix administrator.
Here system is Oracle Parallel Server in HP-UX 11.0 environment (oracle 8.1.6) and database is created in the RAW devices.
For the RAW devices volume group is vgoracle. In the volume group (vgoracle) all oracle datafiles logical volumes were created.
The problem is, for the system datafile the logical volume name is orasystem and the size is 300 MB. I need to increase this the orasystem logical volume from 300MB to 1.5GB or 1GB.
After shutdown the database can I increase the logical volume? If I increase the logical volume is there any possibility of database crush. Now the situation is I should not re-create the database.
Also the below scripts is correct
lvextend -l 1500 /dev/vgoracle/orasystem /dev/dsk/c6t0d0
regards
Michael
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2001 07:28 AM
10-04-2001 07:28 AM
Re: Extend Logical volumes
Also, you need to use the UPPER CASE "L" option, not the "lower case" option. The UPPER CASE "L" tells the system to extend the LV in X number of MEGABYTES ie "-L 1500" = 1.5GB. If you use the lower case "l", as in "-l 1500", you will get 1500 * 4MB extents, which is not what you want.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2001 07:28 AM
10-04-2001 07:28 AM
Re: Extend Logical volumes
Not quite, use this:
lvextend -L1500 /dev/vgoracle/orasystem
Befor you do this, first do a vgdisplay -v /dev/vgorasystem to make sure that you have enough free extents to extend the logical volume.
The good news is that the operation is safe. Your existing data will not be clobbered.
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2001 07:29 AM
10-04-2001 07:29 AM
Re: Extend Logical volumes
1. Bring down your oracle database. Make sure there are no oracle processes running.
2. If this is a file system, then you need to unmount the file system.
umount /dev/vgoracle/orasystem.
If this is raw, skip this step.
3. Extend the file system
lvextend -L 1500 /dev/vgoracle/orasystem
This will increase the orasystem logical volume to 1.5 GB. If you want to extend it to a specific disk, specify the disk name
lvextend -L 1500 /dev/vgoracle/orasystem /dev/dsk/c6t0d0
-L option is less confusing. You can specify the new size in MBs.
3. Again, if this is a file system, you need to an extendfs
extendfs /dev/vgoracle/rorasystem.
If not ***DO NOT use the above command****
4. If this is a file system, you need to mount it back.
mount /dev/vgoracle/orasystem.
Otherwise, skip this step.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2001 07:34 AM
10-04-2001 07:34 AM
SolutionAfter making sure you brought down the database, just use
lvextend -L 1500 /dev/vgoracle/orasystem
or
lvextend -L 1500 /dev/vgoracle/orasystem /dev/dsk/c6t0d0
As you told you don't have an administrator, you can use the above process if you have to extend a file system.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2001 07:38 AM
10-04-2001 07:38 AM
Re: Extend Logical volumes
Here with I am giving the details
1. We are using RAW devices.
2. the vgdisplay result is below
VG Name /dev/vgoracle
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 31
Open LV 31
Max PV 16
Cur PV 6
Act PV 6
Max PE per PV 4331
VGDA 12
PE Size (Mbytes) 4
Total PE 25980
Alloc PE 7665
Free PE 18315
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
3. the vgdisplay -v reslut is
--- Physical volumes ---
PV Name /dev/dsk/c6t0d0
PV Name /dev/dsk/c4t0d0 Alternate Link
PV Status available
Total PE 4330
Free PE 2991
Autoswitch On
PV Name /dev/dsk/c6t0d1
PV Name /dev/dsk/c4t0d1 Alternate Link
PV Status available
Total PE 4330
Free PE 3314
Autoswitch On
PV Name /dev/dsk/c6t0d2
PV Name /dev/dsk/c4t0d2 Alternate Link
PV Status available
Total PE 4330
Free PE 3066
Autoswitch On
PV Name /dev/dsk/c6t0d3
PV Name /dev/dsk/c4t0d3 Alternate Link
PV Status available
Total PE 4330
Free PE 3314
Autoswitch On
PV Name /dev/dsk/c6t0d4
PV Name /dev/dsk/c4t0d4 Alternate Link
PV Status available
Total PE 4330
Free PE 2316
Autoswitch On
PV Name /dev/dsk/c6t0d5
PV Name /dev/dsk/c4t0d5 Alternate Link
PV Status available
Total PE 4330
Free PE 3314
Autoswitch On
I am expecting your valid response
Thanks & Regards
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2001 07:54 AM
10-04-2001 07:54 AM
Re: Extend Logical volumes
Looks like you have enough free extents so you should be ok to extend your filesystem.
Shutdown oracle
lvextend -L 1536 /dev/vgoracle/orasystem
lvdisplay /dev/vgoracle/orasystem
Start Oracle
Here is used 1536 because 1.5GB*1024=1536MB
lvdisplay is to check the LV size has been increased.
-HTH
Ramesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2001 08:00 AM
10-04-2001 08:00 AM
Re: Extend Logical volumes
Regards
Michael selvam