- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Deleting and recreating a logical volume in a Serv...
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
Discussions
Discussions
Discussions
Forums
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
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-11-2002 11:30 AM
тАО11-11-2002 11:30 AM
Deleting and recreating a logical volume in a Service Guard environment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2002 11:46 AM
тАО11-11-2002 11:46 AM
Re: Deleting and recreating a logical volume in a Service Guard environment
Here is one way to try it. I would probably try it without taking down the cluster or the package. I would stop any applications running the package first. Then,
umount /your/filesys
lvremove /dev/vg_whatever/lvol##
lvcreate -L 100000 -n lvol## /dev/vg_whatever
mount /dev/vg_whatever/lvol## /your/filesys
Using the '-n' option on the lvcreate command will let you recreate the logical volume with the same name as the old one, which will save you having to edit any package control scripts.
If you decide to be really safe and do it with the package down, you'll have to add a couple of extra steps. First, you'll probably have to activate your volume group
vgchange -a e /dev/vg_whatever
lvremove /dev/vg_whatever/lvol##
lvcreate -L 100000 -n lvol## /dev/vg_whatever
vgchange -a n /dev/vg_whatever
Then restart your cluster and package.
If it were me, I'd do it with the package up so that you don't have to worry about the vgchange commands on the volume group. Plus, if there is a problem with the disk array, my guess is that it will show up when you do the 'lvcreate' command.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2002 05:18 PM
тАО11-11-2002 05:18 PM
Re: Deleting and recreating a logical volume in a Service Guard environment
Remove the logical volume .
#lvremove /dev/vg_name/lv_name.
Create the logical volume :
#lvcreate -L 100000 -n lv_name /dev/vg_name .
Create the file sstem on the LV :
#newfs -F vxfs -o
#mount you File system .
Son't have to halt the package at all .
If you want to halt the package . Then shutdown you cluster . Take your VG away from the cluster :
#vgchange -c n /dev/vg_name .
Activate the VG normally :
#vgchange -a y /dev/vg_name .
Remove and recreate the LV as expalined above and also create the file system .
Deactivate the volume group.
#vghange -a n /dev/vg_name
Put the VG back in the cluster :
#vgchange -c y /dev/vg_name .
Restart your package .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2002 02:47 AM
тАО11-12-2002 02:47 AM
Re: Deleting and recreating a logical volume in a Service Guard environment
All other LVM changes can be done while the cluster is up.
The vgimport needs to be executed any time when a "new" LVM device file was created, e.g. as it would happen when you create a new lvol.
You have to use vgexport and vgimport on the other cluster node.Pls think of to create a new mapfile!!!
So your cluster can be up and running, just your package has to be down !!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2002 07:35 AM
тАО11-14-2002 07:35 AM
Re: Deleting and recreating a logical volume in a Service Guard environment
Morris