- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Recreating 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
11-19-2002 04:47 AM
11-19-2002 04:47 AM
Recreating Logical Volumes
I am trying to recreate all of the logical volumes within a vg, to do this i first need to remove all of the lv that have previously been created.
The lv's are to be used in a Clustered Oracle 9i RAC env
the /dev/vg52 directory contains files as follows:
brw-r----- 1 oraswuat dba 64 0x130028 Oct 31 12:02 rlv_undo_SWUAT01_a
crw-r----- 1 root sys 64 0x130028 Oct 31 12:02 rrlv_undo_SWUAT01_a
for each raw device
when i issue
lvremove -f /dev/vg52/lv_undo_SWUAT01_a
the rlv* and any lv* devices are removed but the rrlv device (which is the character device) does not get removed
Does any one know why and how to tremove this device.
(Yes I know that the rrlv device is the character device required for a raw volume device but this would meen having to change ALL the creation and management scripts I have writen and migrated from an other instance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2002 04:52 AM
11-19-2002 04:52 AM
Re: Recreating Logical Volumes
You need to use:
lvremove -f /dev/vg52/rlv_undo_SWUAT01_a
rlv* is your block special and rrlv* is your character special. The lv name always matches the block special.
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2002 05:00 AM
11-19-2002 05:00 AM
Re: Recreating Logical Volumes
but that does'nt answer why does not a lvremove remove the rrlv charater device?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2002 05:03 AM
11-19-2002 05:03 AM
Re: Recreating Logical Volumes
If you're going to re-create all of them, why not just export the vg the re-build it?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2002 05:13 AM
11-19-2002 05:13 AM
Re: Recreating Logical Volumes
Thanks anyway.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2002 11:26 AM
11-19-2002 11:26 AM
Re: Recreating Logical Volumes
If you tried to remove lv_undo_SWUAT01_a, then it would have removed that and the rlv_xxxx.
If your lvol is called rlv_undoxxx then it will remove that and rrlv_xxx when you type lvremove -f rlv_undoxxx.
Each lvol has only the character and raw device associated with it. So yes, only the lv and rlv will get removed..where and how did you create the rrlv* device???
(It would seem that is associated with a character device rlv* )
=Shekar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2002 11:53 AM
11-19-2002 11:53 AM
Re: Recreating Logical Volumes
What I was suggesting was to do a vgexport to get rid of the existing lvm structures without having to mess with lvremove, etc. Then do a pvcreate with a -f option and start over with vg/lv creation. I don't have a playpen available to me at the moment to prove whether it would work or not but I **think** it would.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2002 12:42 PM
11-19-2002 12:42 PM
Re: Recreating Logical Volumes
You may be concidefing using vgexport to delete information about your volume group:
vgexport /dev/VG_NAME
Then re-create your lvols as you see fit.
And, yes I agree with confusion you have in lvol names. We use raw devices as well. Names of lvols are without r, owned by root:bin.
Names for oracle raw devices are preceded with 'r' by unix; we own them by oracle:dba.
Hope this helps.
0leg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2002 12:28 AM
11-21-2002 12:28 AM
Re: Recreating Logical Volumes
I finally vgexported the vol group, and pvcreated the LUN then reimported the vol group, there seemed to have been a bit of confusion by the enginneer when he set up the lun/vg in the naming convention for the lv's
i manaually moved the rrlv_**** and rlv_***** to the standard naming convention.
thanks for your help.