- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Unable to mirror swap logical volume
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
07-31-2006 11:44 AM
07-31-2006 11:44 AM
I'm trying to mirror the whole root volume group (vg00) and I had success with all lv's inside of it except lvol2 (swap). I get this error:
lvsync: Couldn't re-synchronize stale partitions of the logical volume:
I/O error
lvsync: Couldn't resynchronize logical volume "/dev/vg00/lvol2".
This is the error when I performed lvsync /dev/vg00/lvol2. I also had the same error when I tried initially to create the mirror (lvextend -m ....).
Is there another way to mirror a logical-volume when it is swap?
I have a bag full of poitns :)
Thanks!
Jorge
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2006 11:50 AM
07-31-2006 11:50 AM
Re: Unable to mirror swap logical volume
I have attached the method I use to make mirror installations hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2006 01:11 PM
07-31-2006 01:11 PM
Re: Unable to mirror swap logical volume
Now if you are getting lvsync error and complains about some stale extents then you might be getting into problem.
Check the swap for stale extents using
lvdisplay -v /dev/vg00/lvol2|grep stale
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2006 01:20 PM
07-31-2006 01:20 PM
Re: Unable to mirror swap logical volume
Rajeev: Yes, that's what I'm using to create the mirror but you can only use that command once. After you create the initial mirror, after that you need to use lvsync.... This is what I get when I do the lvdisplay -v:
LV Status available/stale
00504 /dev/dsk/c0t0d0 00542 current /dev/dsk/c4t0d0 00542 stale
00508 /dev/dsk/c0t0d0 00546 current /dev/dsk/c4t0d0 00546 stale
I have more spare disks...I could easy remove the disk and put a new one and resync the vg complete...the problem is that ALL the vg is already synced EXCEPT the swap logical-volume (or at least part of the swap). I'm wondering if I would end up with errors while trying to resync back after placing new disk....
Thanks,
Jorge
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2006 01:21 PM
07-31-2006 01:21 PM
Re: Unable to mirror swap logical volume
More than likely, you have a disk device with bad sectors on it and your swap space was being mirrored over these sectors. I/O error usually means something deep down inside the hardware is bad.
try this command :
mirrdisk=/dev/dsk/c0t20 # modify according to your device driver of the mirror disk you are using
dd if=${mirrdisk} of=/dev/null
see if it bums out somewhere in the process. Be forewarned, this command may take hours to run if your disk device is big, so run it sometime late at night and leave. Come back the next day to see the results.
hope this helps
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2006 01:37 PM
07-31-2006 01:37 PM
Re: Unable to mirror swap logical volume
lvreduce all the mirrored lv and detach the disk and add new disk and then carry the process again.
It would be work doing a dd on the disk before you carry on mirroring (if its not a new disk) coz you might end up with stale extents again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2006 02:14 PM
07-31-2006 02:14 PM
SolutionBased on this output :
00504 /dev/dsk/c0t0d0 00542 current /dev/dsk/c4t0d0 00542 stale
00508 /dev/dsk/c0t0d0 00546 current /dev/dsk/c4t0d0 00546 stale
I'm sure about the problem on /dev/dsk/c4t0d0. The disk need to replace immediate, since the disk is the mirror of the primary disk (/dev/dsk/c0t0d0).
To check the disk, you can run the command below :
# dd if=/dev/rdsk/c4t0d0 of=/dev/null bs=1024k
If you see any I/O error comes from the disk, the disk is absolutely have a problem.
Can check also with the command below :
# ioscan -nfCdisk
# diskinfo -v /dev/rdsk/c4t0d0
Hope this information can help you.
Cheers,
AW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2006 02:26 PM
07-31-2006 02:26 PM
Re: Unable to mirror swap logical volume
Also thanks to the others!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2006 02:33 PM
07-31-2006 02:33 PM