- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Mirror - change a disk
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
09-13-2004 08:55 PM
09-13-2004 08:55 PM
Mirror - change a disk
2. How to remove a disk that work in mirror from the system. I checked that lvreduce is not enough. What I should to do more?.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2004 09:09 PM
09-13-2004 09:09 PM
Re: Mirror - change a disk
Use the search of the technical knowledge base for KBAN00000347,Procedure for replacing an LVM disk in HP-UX 10.x and 11.x
DocId:KBAN00000347
You will have all the information you need
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2004 09:10 PM
09-13-2004 09:10 PM
Re: Mirror - change a disk
may this Thread will help you:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=5312
Regards
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2004 09:14 PM
09-13-2004 09:14 PM
Re: Mirror - change a disk
# lvreduce -m 0 /dev/vgXX/lvolX
for each mirrored logical volume.
# vgreduce /dev/vgXX /dev/dsk/cXtXdX
in order to reduce VG from PV to be substituted.
- shutdown the system and replace the disk.
- boot the system and
# vgextend /dev/vgXX /dev/dsk/cXtXdX
# lvextend -m 1 /dev/vgXX/lvolX /dev/dsk/cXtXdX
for each logical volume to be mirrored.
I am supposing that it is not the root/boot volume group.
HTH.
Best regards,
Fabio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2004 09:36 PM
09-13-2004 09:36 PM
Re: Mirror - change a disk
1. to change a spoiled mirror disk, first replace faulty disk with new disk, be sure SCSI ID should be same as old so device file will not change.
2. ioscan and see status should be claimed.
3. run vgcfgrestore on disk
4. run vgchange to resynchronise mirror.
To remove a disk from mirrore.
1. lvreduce -m 0
2. vgreduce /dev/vgxx /dev/dsk/cntmd0
now you can remove disk
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2004 09:38 PM
09-13-2004 09:38 PM
Re: Mirror - change a disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2004 09:42 PM
09-13-2004 09:42 PM
Re: Mirror - change a disk
assuming you are having hot swappable disk.
for reducing the mirror.
try,
1)
lvreduce -m 0 -A n /dev/vgXX/lvolX /dev/dsk/cXtXdX
provided you are having a single mirror .do this for all the LV's in that vg. '-A n' option is to prevent the lvreduce command from performing an automatic vgcfgbackup operation,which is likely to stuck on the defective disk.
2)
replace fauly disk.
do ioscan to insure that faulty disk is accessible (CLAIMED )
ioscan -f /dev/dsk/cXtXdX
3)
vgcfgrestore -n vgXX /dev/rdsk/cXtXdX
for restoring LVM header on the disk.
4)
vgchange -a y vgXX
or
vgchange -a e vgXX (for exclusively activated cluster vgs)
5)
put the mirror back to disk.
lvextend -m 1 /dev/vgXX/lvolX /dev/dsk/cXtXdX &
to check the progress of synchronization you could use
lvdisplay -v /dev/vgXX/lvolX |grep stale |wc -l
regds,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2004 09:42 PM
09-13-2004 09:42 PM
Re: Mirror - change a disk
Have you the ITRC knowledge base acces as Victor suggested you?
In ITRC knowledge base there are the very good procedures in order to replace the boot/root mirror disk.
ULVMKBRC00010386 - How to replace boot disk using LVM mirroring
LVMKBRC00005103 - How to create a Mirrored Boot Disk on PA-RISC Systems - Cookbook
Bets regards,
Fabio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2004 09:56 PM
09-13-2004 09:56 PM
Re: Mirror - change a disk
#vgactivate -a y vg00
#vgsync
will do.
# mkboot -a "hpux -lq ;0)/stand/vmunix" /dev/rdsk/cXtYdZ on both mirrors so that quorunm is ignored
regards
SK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2004 10:06 PM
09-13-2004 10:06 PM
Re: Mirror - change a disk
lvextend do the folloeing procedure.
1. Write LIF header and LIF files (ISL, AUTO, HPUX, LABEL):
mkboot -l /dev/rdsk/cXtXdX
lifls â l /dev/rdsk/cXtXdX (to ckeck it)
2.Write content of AUTO File (if autoboot is desired)
mkboot -a hpux /dev/rdsk/cXtXdX (autoboot with quroum forced )
mkboot -a 'hpux -lq' /dev/rdsk/cXtXdX
(autoboot without quroum forced)
lifcp /dev/rdsk/cXtXdX:AUTO - (to ckeck it)
3. Install ODE files (may be skipped):
cd /usr/sbin/diag/lif
getconf HW_CPU_SUPP_BITS (the result is either 32, 32/64 or 64)
mkboot -b updatediaglif -p ISL -p AUTO -p HPUX -p LABEL /dev/rdsk/cXtXdX (if 32 or 32/64)
mkboot -b updatediaglif2 -p ISL -p AUTO -p HPUX -p LABEL /dev/rdsk/cXtXdX (if 64)
(the -p option preserves the specified file so that it is not overwritten)
4. Write content of LABEL file,i.e set root, boot, swap and dump device:
note : This step can be omitted if you replace a failed mirror disk. Then this information has already been restored by vgcfgrestore. To be sure to have the latest information on the disk just do the following steps.
# lvlnboot -b /dev/
# lvlnboot -s /dev/
# lvlnboot -r /dev/
# lvlnboot -d /dev/
# lvlnboot â v (to ckeck