- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Renaming Logical Volume
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
01-02-2005 02:52 AM
01-02-2005 02:52 AM
Renaming Logical Volume
We have a small problem.
We have 9iRAC(9.2.0.5) implmented with
(RAW Devices) on HP-UX platform. it is 24 x 7 system and we cannot afford any down time.
now the problem is as we have raw devices we have already created some LV's in advance and kept it as we fall short of space in any of the tablespace we alot those lv's and add a datafile to it.
Now the thing is the name of LV and datafile has to b the same so v have kept some standered naming. But i want my newly added datafile name resembling to tablespace_name so that i can make out which datafile belongs to which tablespace.
and one thing more v have our LV's shared and mirrored. So can anyone give me the solution for this.
I need to do it online.
Thanks
Musaddaq
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2005 05:39 AM
01-02-2005 05:39 AM
Re: Renaming Logical Volume
Try to use soft links for this purpose:
ln -s /dev/vgXX/lvolY NEEDED_NAME
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2005 06:02 AM
01-02-2005 06:02 AM
Re: Renaming Logical Volume
So rename them in pairs so you don't forget to rename for device files:
mv /dev/vg03/lvol2 /dev/vg03/ora33
mv /dev/vg03/rlvol2 /dev/vg03/rora33
NOTE: You cannot rename the volume group directories, only the lvols.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2005 10:16 AM
01-02-2005 10:16 AM
Re: Renaming Logical Volume
As long as you are not using the lv at present on any node, you can rename it without any problem. You can use the move "mv" command to do this. Do remeber you have to do this on all the nodes and you must do the "mv" for the block as well as the character device for the lv.
mv old_lv_namd new_lv_name
mv rold_lv_name mv rnew_lv_name
This is pretty common when the vg's are preallocated and at the time new lvs are required to be added into the database, just rename then and use them. Remember do this on all the nodes. I remember that in the env where we use this, we need to change the owner:group of the character device file to oracle:dba to allow the dba to create tablespaces on the raw lv and for oracle to use them. This also must be done on all nodes.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2005 10:57 AM
01-02-2005 10:57 AM
Re: Renaming Logical Volume
directory in a map file - but only if the VG contains mountable filesystems.
If your volume group only contains raw filesystems you will be OK. If there is a mixture then you must remember to do a vgcfgbackup of the volume group (I think that will be enough).
If you look under /etc/lvmconfig you'll see (for example):
vg00.conf
vg00.mapfile
vg_oradb.conf
This implies that vg00 has mountable filesystems, and vg_oradb.conf does not (hence no map file).
To be honest with you I don't have a vg with both mounted and raw files - so I'm not 100% sure that the raw lvols will appear in the map file. The usual contents would be something along the lines of:
2 lv_db01
1 lv_db02
3 lv_db03
4 lv_db04
5 lv_db05
6 lv_db06
etc etc.
Col.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2005 04:49 PM
01-02-2005 04:49 PM
Re: Renaming Logical Volume
it seems real helpfull.I will try ur suggestions and will get back to u all.
Thanks and wish u all a very happy and prosperous new year.
Musaddaq
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2005 05:15 PM
01-02-2005 05:15 PM
Re: Renaming Logical Volume
If you run out of space in one of those raw files, you will need to break mirrors to extend the size of the raw devices.
There will be a peformance hit while you are building the mirorrs and exposure during the operation itself.
Because I can, I've always renamed my raw adabas devices with the database down.
A simple, carefully executed mv command should be possible to execute the rename.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com