- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- A mirroring question
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
04-07-2004 02:10 AM
04-07-2004 02:10 AM
Imagine I have a volume group of 6 physical volumes, only one large logical volume, there are 3 mirrored pairs, mirroring is restricted by pvg.
Question.
When taking one disk away from mirroring for replacement, will the command break mirroring for all disk pairs?
lvreduce -m 0 /dev/vgxx/lvolx /dev/dsk/cxtxdx
vgreduce /dev/vgxx /dev/dsk/cxtxdx
Points in advance for your feedback!
BR,
Mihails
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2004 02:15 AM
04-07-2004 02:15 AM
Re: A mirroring question
just replace it then:
pvcreate /dev/dsk/cxtxdx (optional)
vgcfgrestore
vgchange -ay vgXX
vgsync
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2004 02:28 AM
04-07-2004 02:28 AM
Re: A mirroring question
Here is the information regarding disk replacement :
1) If the disk is completely "dead", such as if you run ioscan and status is
"no_hw" then you can hot swap the disk online.
2) However in circumstances where the disk has not fully failed please do one of
the following to avoid data corruption :
a) reduce mirror before replacing the disk
b) deactivate VG before replacing the disk
c) shutdown system to replace the disk
If the disk was not completely dead, I would suggest to deactivate VG if possible. There is a good kmine document on the steps I have mentioned above if you are interested :
KBRC00009115.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2004 02:31 AM
04-07-2004 02:31 AM
SolutionYou mirror on the logical volume level, not the disk level so you "lvreduce" the logical volume, you remove the mirror from entire logical volume.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2004 02:53 AM
04-07-2004 02:53 AM
Re: A mirroring question
The disk is not dead yet, just generating bad warnings, so I should execute LVM commands before pulling it out. I'm just unsure about handling one big logical volume that is based on more than one pair of physical volumes.
Mark, you've answered my question, thanks. If this is true let me I ask more.
Should I re-create mirror on the whole pvg after disk replacement?
lvextend -m 1 /dev/vgxx/lvolx /dev/dsk/cxt1dx /dev/dsk/cxt2dx /dev/dsk/cxt3dx
If so, should I bring offline all the disks in the "faulty" pvg first?
lvreduce -m 0 /dev/vgxx/lvolx /dev/dsk/cxt1dx /dev/dsk/cxt2dx /dev/dsk/cxt3dx
Points in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2004 03:23 AM
04-07-2004 03:23 AM
Re: A mirroring question
run diskinfo and pvdisplay on it to be sure as well...
Using LVM commands, lvreduce the mirror on all Lvols that live on that mirror.
Then replace the disk and then add the mirror back again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2004 12:34 AM
04-08-2004 12:34 AM
Re: A mirroring question
Just a summary.
1. taking one pv from mirroring will break the entire mirror.
lvreduce -m 0 /dev/vgxx/lvolx /dev/dsk/cxtxdx
There's no need to mention other disks in lvreduce command.
2. You need to mention all 'freed' physical when recreating the mirror.
Just identify what pvs are actually not used by commands 'lvdisplay -v' and 'pvdisplay -v'.
Then issue a command like
lvextend -m 1 /dev/vgxx/lvolx /dev/dsk/cxt1dx /dev/dsk/cxt2dx /dev/dsk/cxt3dx
3. I faced the problem described in DocumentID 4000009061.
That is becuase importing volume group removes
/etc/lvmpvg.
Just to keep archives better. :-)
BR,
Mihails