- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Reallocating a Volume group
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
07-16-2002 09:05 AM
07-16-2002 09:05 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2002 09:11 AM
07-16-2002 09:11 AM
Re: Reallocating a Volume group
You can use vgexport.
HTH,
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2002 09:12 AM
07-16-2002 09:12 AM
Re: Reallocating a Volume group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2002 09:13 AM
07-16-2002 09:13 AM
Re: Reallocating a Volume group
The easist method is to simply 'vgexport /dev/vgXX'. This will cleanup '/etc/lvmtab' (and optionally '/etc/lvmpvg'); and remove the device files in /dev/vgXX. When done you will need to edit '/etc/fstab' to remove any mountpoints and yo( will need to do a forced 'pvcreate' ('pvcreate -f /dev/rdsk/cXtYdZ) on the physical disk that were associcated with vgXX to remove their LVM information.
This method is far faster than 'lvremove'; 'vgreduce'; 'vgremove'; and then manually cleanup 'dev/vgXX'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2002 09:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2002 09:14 AM
07-16-2002 09:14 AM
Re: Reallocating a Volume group
Use vgexport /dev/vg02
Then you can always vgextend
#vgextend /dev/vg03 /dev/dsk/c1t2d0
( if vgextend does not work then you can use)
#pvcreate -f /dev/rdsk/c1t2d0
Then you can do a vgextend.
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2002 09:14 AM
07-16-2002 09:14 AM
Re: Reallocating a Volume group
Good Luck,
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2002 09:14 AM
07-16-2002 09:14 AM
Re: Reallocating a Volume group
I should have added (of course) that you will first need to unmount any mounted filesystems and do:
# vgchange -a n /dev/vgXX
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2002 09:14 AM
07-16-2002 09:14 AM
Re: Reallocating a Volume group
use SAM to do this.
run SAM
then DISKs and file systems
then volume groups
select the vg
then Actions and remove.
it automatically removes all the LVs under it. the disk will be freed.
then select existing volume group and Actions then extend the volume group add this disk.
regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2002 09:18 AM
07-16-2002 09:18 AM
Re: Reallocating a Volume group
Let us call the temp vg as test
1. lvreduce /dev/test/lvol1
2. lvreduce /dev/test/lvol2
3. vgreduce /dev/test /dev/dsk/cxtydz
4. vgexport /dev/test
5. pvdisplay /dev/dsk/cxtydz ( assume that this disks belonged to the vg test)
6. pvcreate /dev/rdsk/cxtydz
6. vgextend /dev/test1 ( exisitng vg which you have to extednd ) /dev/dsk/cxtydz
and you are good to go.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2002 09:25 AM
07-16-2002 09:25 AM
Re: Reallocating a Volume group
Then do the rest other steps ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2002 09:28 AM
07-16-2002 09:28 AM
Re: Reallocating a Volume group
To be very sure...you can always go to the Init level s and make the changes. make sure that the users are not using the system. Or if you are very sure that nobody is using the system, you can do it in the run level 3 also.
Piyush