- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Issues with Mirror 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
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
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
12-03-2012 02:09 AM
12-03-2012 02:09 AM
Issues with Mirror Disk
Hi,
Hope you guys can help.
I am just in the middle of a SAN migration. Originally I had 23 disks that could be seen down path c10. I then mirrored these devices to path c12. I then ran an lvreduce to remove the devices down c10. Unfortunately as there are so many devices to reduce I couldn’t run it from the command line. So what I did was list all the c10 devices in a flat file and then ran a “for” statement to lvreduce the disks.
Unfortunately what has happened now is it removed the first device in the list and most of my c12 devices. I say most because when I do an lvdisplay, there are no mirrored copies, but I am left with a mixture of c10 and c12 devices as the primary devices.
How can I get back to where I was with the primary devices as c10 and all the mirrored copies being c12? Is it a question of running a vgcfgrestore from my good configuration?
Thanks in advance.
S.
- Tags:
- lvreduce
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2012 10:59 AM
12-03-2012 10:59 AM
Re: Issues with Mirror Disk
>Unfortunately as there are so many devices to reduce I couldn't run it from the command line.
(For next time.) The command line can be continued and can have millions of bytes. Unfortunately the shell editing may limit it to 256 bytes. In that case list them in a script.
>what I did was list all the c10 devices in a flat file and then ran a “for” statement to lvreduce the disks.
You can do a for-loop or you can insert the whole file:
lvreduce ... $(< list-of-volumes)
- Tags:
- command substitution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2012 05:20 AM
12-04-2012 05:20 AM
Re: Issues with Mirror Disk
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!