snapshot is corrupt

Hello, I am having a problem from time to time, lets say each 2 or 3 weeks when I am trying to update the ports I receive a message that says "snapshot is corrupt" so I need to do:

rm /var/db/portsnap/tag && portsnap fetch extract

Why It is happen so often? I am using FreeBSD 9.2
 
adripillo said:
Hello, I am having a problem from time to time, lets say each 2 or 3 weeks when I am trying to update the ports I receive a message that says "snapshot is corrupt"
Bad blocks on a disk could do that. Or a very inconsistent filesystem due to power outages perhaps. Did you check the disk itself?
 
SirDice said:
adripillo said:
Hello, I am having a problem from time to time, lets say each 2 or 3 weeks when I am trying to update the ports I receive a message that says "snapshot is corrupt"
Bad blocks on a disk could do that. Or a very inconsistent filesystem due to power outages perhaps. Did you check the disk itself?

No, I did not. We had some electricity problems some months ago. Do u know a good way to check the disk? Thanks for reply
 
If it's UFS I can recommend booting to single user mode and running a full fsck(8) on everything. For ZFS a zpool scrub may find or correct some issues. The health of the disk itself can usually be tested with sysutils/smartmontools.
 
Back
Top