- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Resync stale blocks
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
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
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
тАО08-03-2010 11:04 AM
тАО08-03-2010 11:04 AM
Resync stale blocks
The disk with the stale blocks is c8t6d0.
So would this be the correct method?
pvchange -a n /dev/dsk/c8t6d0
dd if=/dev/null of=/dev/rdsk/c8t6d0
pvcreate /dev/rdsk/c8t6d0
vgcfgrestore -n myvg /dev/rdsk/c8t6d0
vgchange -a y mhvg
Check the sync status.
pvdisplay -v /dev/dsk/c6t6d0 | more
I have never wiped a drive before. Normally the drives are totally bad and we just pull/replace them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2010 11:19 AM
тАО08-03-2010 11:19 AM
Re: Resync stale blocks
This isn't going to accomplish your objective. If the drive is bad, *replace* it:
http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c01911837/c01911837.pdf
And that, said, by the way:
# dd if=/dev/null of=/dev/rdsk/c8t6d0
...isn't going to write anything. You would to use something like '/dev/zero'.
If you think that your stale extents are transient, due perhaps to a loss of path, then re-sync the logical volume with:
# lvsync /dev/vgXX/lvolY
or:
# vgsync /dev/vgXX
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2010 12:30 PM
тАО08-03-2010 12:30 PM
Re: Resync stale blocks
Problem is that the drive seems to be working other than the stale extents. I just wanted to make sure the device is not having any other problems.
I did run into problems using dd if=/dev/null so thanks for pointing out the correct way to wipe the drive.
If its able to write all zeros to the drive I will call it good and added the drive back into the vg sync it and check on it again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2010 01:29 PM
тАО08-03-2010 01:29 PM
Re: Resync stale blocks
> If its able to write all zeros to the drive I will call it good and added the drive back into the vg sync it and check on it again.
I would have re-synced the mirror ('lvsync' or 'vgsync' as noted). and then I might have *read* the drive :
# dd if=/dev/rdsk/c8t6d0 of=/dev/null bs=1024k
Note the raw device to bypass the buffer cache and the large block size so it gets done as fast as possible.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2010 01:55 PM
тАО08-03-2010 01:55 PM
Re: Resync stale blocks
While it may be OK now, and you may be able to resync all extents now, eventually the disk will fail.
I have found it to be more expedient to just go ahead and replace a disk when it starts showing stale extents.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2010 02:17 PM
тАО08-03-2010 02:17 PM
Re: Resync stale blocks
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2010 02:56 PM
тАО08-03-2010 02:56 PM
Re: Resync stale blocks
I don├в t expect it to fix the drive but it├в s been a good learning exercise.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2010 09:59 PM
тАО08-03-2010 09:59 PM
Re: Resync stale blocks
And if you analyze the units of entropy, it is exactly the same as information and we all know you need more and more disk space. :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2010 03:29 PM
тАО08-04-2010 03:29 PM
Re: Resync stale blocks
dd if=/dev/zero of=/dev/rdsk/c8t6d0 bs=1024k
I/O error
34733+0 records in
34732+1 records out
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2010 04:10 PM
тАО08-04-2010 04:10 PM