- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Using the Mirror Copy
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
02-08-2001 01:22 AM
02-08-2001 01:22 AM
I am having one doubt..
If I am having a non-root volume and
having it mirrored to some other volume.
and if one of these hard disks fails,is it
possible for us to use the data in the other
hard disk as such ...or what are the steps
to break the mirror and use the mirror copy.
Do we use lvreduce or lvremove ??
Help me out please
Sundar
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2001 01:41 AM
02-08-2001 01:41 AM
SolutionSupposing that lvol from /dev/dsk/c1t1d0 are mirrored on /dev/dsk/c2t2d0.
If c1t1d0 failed :
- Your data are still available from /dev/dsk/c2t2d0. Perharps you will not see that c1t1d0 is failed.
- To check if mirror copy is OK, via cron, write a script which for each logical volume do :
lvdisplay -v /dev/vgXX/lvolname |grep stale |wc -l
If answer is not 0 then your is bad !
- What you need to do if c1t1d0 failed :
DO NOT USE lvremove ! This will remove your lvol from c1t1d0 AND c2t2d0.
You can do a :
lvreduce -m 0 /dev/vgXX/lvolname /dev/dsk/c1t1d0
(or each lvol on c1t1d0)
vgreduce /dev/vgXX /dev/dsk/c1t1d0
Then when the failed disk will be replaced :
pvcreate -d /dev/rdsk/c1t1d0
vgextend /dev/vgXX /dev/dsk/vgXX
lvextend -m 1 /dev/vgXX/lvolname /dev/dsk/c1t1d0
(for each lvol)
An other method is using vgcfgrestore command.
Regards,
Patrice.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2001 02:26 AM
02-08-2001 02:26 AM
Re: Using the Mirror Copy
IF You ha hotplug disks replace the bad disk and
restore LVM data to new disk
vgcfgrestore -n vgxx /dev/rdsk/.......
and activate vg
vgchange -a y -s vgxx
syncronize VG
vgsync vgxx
regards, Saa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2001 02:31 AM
02-08-2001 02:31 AM
Re: Using the Mirror Copy
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xd3a7854994d9d4118fef0090279cd0f9,00.html
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x56f25f260cafd4118fef0090279cd0f9,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2001 02:41 AM
02-08-2001 02:41 AM
Re: Using the Mirror Copy
Fine patrice,Thanks ..
I am having one more thing to ask on
vgcfgrestore.
If the disk with scsi id say 2 failed,then
I am replacing the disk and using the
vgcfgrestore..
then what are all the steps I have to take
care...
I) is the new hard disk that will replace
the bad one need to have the same SCSI id??
II) Do we need to run pvcreate,vgextend
lvcreate,newfs,lvextend..
I guess pvcreate and newfs should be
necessary..but what are all the commands
that we need to run if we use vgcfgrestore to
restore the volume group.
Clear me please...
Sundar
and if anyone finds time,pls mail me at
sundar_hp@indiatimes.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2001 06:39 AM
02-09-2001 06:39 AM
Re: Using the Mirror Copy
Title : procedure for replacing an LVM disk
Date : 19971211
Type : EN
Document ID : UNX1001086
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2001 07:32 AM
02-09-2001 07:32 AM
Re: Using the Mirror Copy
I have never tried to use the method that Sandor mentions. Part of the idea with mirroring is to avoid any downtime and deactivating the group requires that it not be mounted. Also, the physical scsi id (bus and target) controls the device address location. Using Patrice's method allows you to remirror any drive connected to the system. This means that you could use a spare drive in a totally different location. Mirrordisk allows you to have up to three copies of the data. You could mirror the spare immediately and then when the failed drive gets replaced you can mirror it into the arrangement and afterward break down the mirror to the spare drive. This is a better method to use (if you have a spare drive) where the primary drive is protected with a mirror during the entire recovery evolution and the i/o required to copy the extents has much less contention with any other processes accessing data from the drives at the same time.