- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to put this disk back to vg00?
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
10-23-2006 05:47 AM
10-23-2006 05:47 AM
how to put this disk back to vg00?
Now I want to put the disk back, recover everything on the disk, including every one of logical volume. How do I do that?
I can use vgextend to inlcude the disk in vg00 now, but when I do lvextend -m 1 ...
it is show me stale pe...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2006 05:51 AM
10-23-2006 05:51 AM
Re: how to put this disk back to vg00?
pvcreate pv_disk
vgextend /dev/vg00 pv_disk
lvextend -m 1 /dev/vg00/lvolx pv_disk
You might have to vgsync
vgsync /dev/vg00
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2006 05:51 AM
10-23-2006 05:51 AM
Re: how to put this disk back to vg00?
Mirror synchronization takes some time. If all is proceeding well, doing:
# lvdisplay -v /dev/vg00/lvol7|grep -c stale
...for example, should show a decreasing count of stale extents.
Remember that LVM mirroring occurs at the *logical volume* level, not at the volume group nor at the physical disk level.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2006 06:00 AM
10-23-2006 06:00 AM
Re: how to put this disk back to vg00?
he follows the procedure to come back to synchronize lvols of vg00 lvextem - m 1 /dev/vg00/lvxx (to execute in all lvols of vg00) to verify if this ok with the command lvdisplay - v /dev/vg00/lvolxx in case that some PE with status of stale exists to execute the command lvsync /dev/vg00/lvolxxx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2006 11:11 AM
10-23-2006 11:11 AM
Re: how to put this disk back to vg00?
1. pvcreate -B -f /dev/rdsk/c#t#d#
2. vgextend vg00 /dev/dsk/c#t#d#
3. mkboot /dev/rdsk/c#t#d#
4. mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c#t#d#
5. for lv in /dev/vg00/lvol*
do
lvextend -m 1 $lv /dev/dsk/c#t#d#
done
6. lvlnboot -v
7. setboot -a
Yang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2006 02:30 AM
10-24-2006 02:30 AM
Re: how to put this disk back to vg00?
I am not asking how to configure the disk in vg00, and make the mirror. The disk used to be one of the mirror in vg00, and I did lvreduce -m 0..., and vgreduce, therefore, the disk was taken out. Now, I want to add the disk back in vg00 as it was before.
Without going through all normal steps, is there any simple way to recover everything as the way is was before?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2006 02:35 AM
10-24-2006 02:35 AM
Re: how to put this disk back to vg00?
after removing disk from vg00 and break mirror you cannot put it back without following the normal procedure for creating mirrors on vg00 - it taka aprox 30-40 min (depend on data).
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2006 02:35 AM
10-24-2006 02:35 AM
Re: how to put this disk back to vg00?
So, you reduced the mirrors for logical volumes residing on a particular physical volume of a volume group. Then, you 'vgreduce'd the disk from the volume group. Good.
Now, to put everything back the way it was, you must 'vgextend' the volume group and 'lvextend -m 1' every logical volume that you want mirrored to the physical disk. There is no short-cut.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2006 08:24 AM
10-24-2006 08:24 AM
Re: how to put this disk back to vg00?
run "vgcfgrestore -n /dev/vg00 -l" if you could find your old pv_disk there, or you could find a "/etc/lvmconf/vg00.conf.old" which contain old pv_dsk info, then you can run
man vgcfgrestore
vgcfgrestore -n /dev/vg00 /dev/rdsk/c#t#d#
Yang