- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Rename LVMs and Groups (this should be easy I thin...
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
11-19-2001 05:20 AM
11-19-2001 05:20 AM
Rename LVMs and Groups (this should be easy I think)
Needless to say this played heck with the LVM headers and the like. We've been battling several issues, like hard disk space wasn't partitioned correctly and we've even had redo.logs in the root partition when I saw it.
If we can remove and rename the LVMs and volume groups then we should be home free. I'm just not familiar with HPUX that much so I'm at a bit of a loss. Any help is appreciated
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2001 05:24 AM
11-19-2001 05:24 AM
Re: Rename LVMs and Groups (this should be easy I think)
Do you want the data on the disks or do you merely want to reclaim the space and destroy all knowledge of it?
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2001 05:34 AM
11-19-2001 05:34 AM
Re: Rename LVMs and Groups (this should be easy I think)
What sort of external drives is this system connected to? You mentioned 12 drives- are these drives on a external RAID array . If so, are those disks currently connected to the system?
What is the intention? Do you want to blow away the database and reconfigure the system?
or do you want to preserve it and continue using it? or do you want to take backup and reconfigure it?
As an initial check:
#ioscan -nf >/tmp/ioscan.out
-> gives you all info on the I/O connected to the system
#ioscan -nfCdisk >/tmp/ioscan-disk.out
-> gives info on what diskcontrollers/disks the system can see
#vgdisplay -v >/tmp/vgv.out
-> this actually should show what VG's are currently enabled and visible on the system and their configuration. This should give you an idea on how the VG's were laid out previously
#mount >/tmp/mount.out
-> shows current FS mounted
#Compare mount.out with /etc/fstab and see how many Filesystems were mounted and how mnay did not.
#Is the database running?
ps -ef |grep pmon (quick and dirty check)
IF the database is not running, or the vgdisplay output gives errors on vg not enabled, then you need to make sure all the disks are connected properly.
If you can post the mount information it would
help.
-raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2001 05:38 AM
11-19-2001 05:38 AM
Re: Rename LVMs and Groups (this should be easy I think)
Simple answer to your subject question.
Yes, you can rename LV and VG.
First you need to have the VG enabled to rename the LV in it.
eg: vgdisplay -v testvg should give an output
if not, do
vgchange -a y testvg and it should work.
Else you don't have the disks connected correctly.
If the vgchange works, then :
You can rename the LV's in the VG by doing
simple mv command :
cd /dev/testvg
mv file newfile
(remember to rename both the block and raw files and also make sure they are not being used by anybody at that time)
To rename VG:
vgexport -v -m /tmp/testvg.map -f /tmp/testvg.disk testvg
mkdir /dev/newvg
mknod /dev/newvg/group c 64 0x??0000
vgimport -m /tmp/testvg.map -f /tmp/testvg.disk newvg
HTH
raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2001 05:38 AM
11-19-2001 05:38 AM
Re: Rename LVMs and Groups (this should be easy I think)
2. Then, you can delete all exported vg device directory under /dev (i.e.: /dev/vg01).
3. mkdir /dev/vg_newname
4. mknod /dev/vg_newname/group c 64 0xnn0000 (nn=01 to kernel:MAXVGs). the nn number just need to be uniq accros the OS.
5. vgimport /dev/vg_newname /dev/dsk/c?t?d? [/dev/dsk/c?t?d?] ...
If you had disk from an other system who you know they have been in a volume group, just do a: ioscan; mv /etc/lvmtab /etc/lvmtab.old; vgscan; strings /etc/lvmtab. This will give you information about which disk under which vg.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2001 06:32 AM
11-19-2001 06:32 AM
Re: Rename LVMs and Groups (this should be easy I think)
My intention is to retain the data for this oracle database at ALL costs. I'm not onsite so I can't say what kind of of system the external drives are on but all 24 are in it from my last view.
They have several older volume groups and various data point where the Oracle DBFs are located. Hope that clarafies a little better.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2001 06:38 AM
11-19-2001 06:38 AM
Re: Rename LVMs and Groups (this should be easy I think)
Looks like what you need is this link,
http://docs.hp.com/hpux/onlinedocs/B2355-90742/B2355-90742.html
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90742/B2355-90742_top.html&con=/hpux/onlinedocs/B2355-90742/00/00/47-con.html&toc=/hpux/onlinedocs/B2355-90742/00/00/47-toc.html&searchterms=Managing%20Disks%20and%20Files%20&queryid=20011119-064204
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2001 06:43 AM
11-19-2001 06:43 AM
Re: Rename LVMs and Groups (this should be easy I think)
In that case,you would need to start off by checking whether oracle instance is up and running and whether the DBA/users are able to see all the stuff in it.
<< I'm not onsite so I can't say what kind of of system the external drives are on but all 24 are in it from my last view>>
ioscan -nfCdisk will show what drives are there and also will give a brief description from which you can figure out the type of disks.
HTH
raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2001 06:50 AM
11-19-2001 06:50 AM
Re: Rename LVMs and Groups (this should be easy I think)
Also the IOSCAN does show all the devices, and their types. We've made backups of the older FSTAB and LVMTAB files. The hard disks vary in make and sizes, most are made by SeaGate.
We have another engineer on site taking a peek at it as we speak.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2001 06:45 AM
11-26-2001 06:45 AM
Re: Rename LVMs and Groups (this should be easy I think)
Any other ideas on what to do with this problem? We're starting to get dead ends. Thanks for all the help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2001 07:54 AM
11-26-2001 07:54 AM
Re: Rename LVMs and Groups (this should be easy I think)
The more detail you provide, the better we will, be able to help you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2001 08:02 AM
11-26-2001 08:02 AM
Re: Rename LVMs and Groups (this should be easy I think)
I would be very curious to know the error messages you are receiving?
Share and enjoy! Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2001 12:12 PM
11-26-2001 12:12 PM
Re: Rename LVMs and Groups (this should be easy I think)
Here's the latest item of concern:
The devices do not reconstruct in the /dev/dsk and /dev/rdsk after a reboot or ioscan. One suggestion I read:
rename the /etc/io.config
run ioscan
I'm working on getting the other errors as they come through. Just both of us are putting out fires at different client sites, which makes this a bit difficult.
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2001 01:01 PM
11-26-2001 01:01 PM
Re: Rename LVMs and Groups (this should be easy I think)
insf -e
...jcd...