- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Not able to reduce 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
06-05-2005 09:18 PM
06-05-2005 09:18 PM
Not able to reduce vg00
Please tell me how to reduce a missing OV from vg00
one of the root disk was mirrored ( /dev/dsk/c1t2d0) with /dev/dsk/c2t2d0. c1t2d0 failed and i am not able to replace the fialed one.
I tried
1. replaced the failed.
2. Pvcreate -fB /dev/rdsk/c1t2d0
--- given error already exists /etc/lvmtab ----
3.Tried vgcfgrestore /dev/vg00 /dev/dsk/c1t2d0
..Given I/O error
So i put the disk in another slot( disk is hotswappable) and
pvcreate -fB /dev/dsk/c0t1d0
mkboot -l /dev/dsk/c0t1d0
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c0t1d0
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c0t1d0
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c0t1d0
but lvlnboot -v ==== does'nt show any details
Only error can't query /dev/dsk/c1t2d0
pls tell how to overcome this error or vgreduce this.
All suggestions will be appreciated highly
regds
Binu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2005 09:23 PM
06-05-2005 09:23 PM
Re: Not able to reduce vg00
Here are the steps i follow
1. ioscan -H path### (eg 0/4/0/0 do not use .) # put disk as claimed from no-hw
2. ioscan -funC disk|more # check to see hw is claimed
3. mv /etc/lvmtab /etc/lvmtab.old # pvcreate fails if disk is in lvmtab
4. pvcreate -f -B /dev/rdsk/c_t_d0 # sets aside a boot area
5. mv /etc/lvmtab.old /etc/lvmtab # moves it back
6. vgcfgrestore -n vg00 /dev/rdsk/c_t_d0 # restores headers on drive
7. vgchange -a y /dev/vg00 # puts drive online
8. vgsync vg00 # if disk does not automatically start syncing (if stale)
9. mkboot /dev/rdsk/c_t_d0 # puts the boot sector in the boot area
10. mkboot -a "hpux -lq" /dev/rdsk/c_t_d0 # puts HPUX in the auto file
11. lvlnboot -Rv /dev/vg00 # updates the LIF with the info from the BDRA
12. cd /usr/sbin/diag/lif
13. mkboot -b updatediaglif -p ISL -p HPUX -p LABEL -p AUTO /dev/rdsk/c_t_d0 # to put ODE, etc. back on boot area
14. vgdisplay -v vg00 # to check it
Hope this will work...
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2005 09:28 PM
06-05-2005 09:28 PM
Re: Not able to reduce vg00
Good day to you !
Check the document at the url below (document-ID : LVMKBRC00006116) about 'Replacing a mirrored root disk' :
http://www6.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000068955762
Hope this can help you.
Cheers,
AW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2005 09:29 PM
06-05-2005 09:29 PM
Re: Not able to reduce vg00
Reverse the steps you have done, i.e., lvreduce the logical volumes, and put the disk back on the slot where the disk failed.
Now perform the following steps:
1. # pvcreate -Bf /dev/rdsk/c1t2d0
2. # vgcfgrestore -n /dev/vg00 /dev/rdsk/c1t2d0
3. # vgchange -a y /dev/vg00
4. # mkboot -l /dev/rdsk/c1t2d0
5. # mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t2d0
6. # vgsync /dev/vg00
Now confirm if the disk is indeed mirrored:
# lvlnboot -v
Take the backup of vg00:
# vgcfgbackup vg00
Hope this helps,
Regards,
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2005 09:42 PM
06-05-2005 09:42 PM
Re: Not able to reduce vg00
vgreduce -l vg00 /dev/dsk/c1t2d0
Enrico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2005 10:33 PM
06-05-2005 10:33 PM
Re: Not able to reduce vg00
http://www.unixadm.net/howto/bad_disk.html
Regard,
Hoang Chi Cong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2005 11:29 PM
06-06-2005 11:29 PM
Re: Not able to reduce vg00
Thanks for the immediate response,but pls advice , if am doing pvcreate -fB /dev/dsk/c1t2d0..it says error entry already exists in /etc/lvmtab
pls reply
regs
binu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2005 11:43 PM
06-06-2005 11:43 PM
Re: Not able to reduce vg00
to forcebly the LV mirrors and reduce the PV forcebly with "vgreduce -l" (also removes the entry in lvmtab). See manapages for all aove commands. Then stsrt from pvcreate .....
Regds
TT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2005 11:45 PM
06-06-2005 11:45 PM
Re: Not able to reduce vg00
Remove (or rename) the file /etc/lvmtab and create it afterwards again with the command vgscan.
The correct entries are placed now again in /etc/lvmtab. Afterwards the creation of the new mirrored disk will succeed.
best regards,
Kurt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2005 11:51 PM
06-06-2005 11:51 PM
Re: Not able to reduce vg00
#mv /etc/lvmtab /etc/lvmtab.old
#vgscan -a
--Error gives says that /dev/dsk/c1t2d0 not found.lvmtab not created
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2005 12:04 AM
06-07-2005 12:04 AM
Re: Not able to reduce vg00
1. ioscan -H path### (eg 0/4/0/0 do not use .) # put disk as claimed from no-hw
2. ioscan -funC disk|more # check to see hw is claimed
3. mv /etc/lvmtab /etc/lvmtab.old # pvcreate fails if disk is in lvmtab
4. pvcreate -f -B /dev/rdsk/c_t_d0 # sets aside a boot area
5. mv /etc/lvmtab.old /etc/lvmtab # moves it back
6. vgcfgrestore -n vg00 /dev/rdsk/c_t_d0 # restores headers on drive
----HERE i got the error that /dev/dsk/c0t1d0 cannot queried..I/O error. (Confirmed disk has no problem)
pls help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2005 12:32 AM
06-07-2005 12:32 AM
Re: Not able to reduce vg00
have you tried with
vgreduce -l vg00
Enrico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2005 12:36 AM
06-07-2005 12:36 AM
Re: Not able to reduce vg00
1.First reduce all your lv mirrors in vg00 from the failed disk forcefully.
lvreduce -k -m 0 /dev/vg00/lvol$i
2.Do vgreduce that disk forcefully.
vgreduce -l /dev/vg00 /dev/dsk/c1t2d0
3.mv lvmtab to lvmtab.old
4.vgscan -v
5. Add the disk and Do the new mirroring.
regards
sivakumar p.