1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mageia-discuss] software-induced hard disk sector reallocation problem
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mageia-discuss%40mageia.org?Subject=Re%3A%20%5BMageia-discuss%5D%20software-induced%20hard%20disk%20sector%20reallocation%0A%09problem&In-Reply-To=%3C50A093DE.8090005%40bigpond.com%3E">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="008921.html">
<LINK REL="Next" HREF="008926.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mageia-discuss] software-induced hard disk sector reallocation problem</H1>
<B>Tony Blackwell</B>
<A HREF="mailto:mageia-discuss%40mageia.org?Subject=Re%3A%20%5BMageia-discuss%5D%20software-induced%20hard%20disk%20sector%20reallocation%0A%09problem&In-Reply-To=%3C50A093DE.8090005%40bigpond.com%3E"
TITLE="[Mageia-discuss] software-induced hard disk sector reallocation problem">tablackwell at bigpond.com
</A><BR>
<I>Mon Nov 12 07:14:54 CET 2012</I>
<P><UL>
<LI>Previous message: <A HREF="008921.html">[Mageia-discuss] Anyone here that feel interested & that have time to.......
</A></li>
<LI>Next message: <A HREF="008926.html">[Mageia-discuss] software-induced hard disk sector reallocation problem
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#8925">[ date ]</a>
<a href="thread.html#8925">[ thread ]</a>
<a href="subject.html#8925">[ subject ]</a>
<a href="author.html#8925">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Greetings all,
I've stumbled on what seems like a really nasty problem, where after
adding a new disk, a different perfectly good disk (as of a few minutes
prior) comes to have a large number of reallocated sectors and the
mageia 'smart' software is screaming at me that the disk is about to
fail _now_ and to back it up.
Context:
mageia 1
7 sata disks.
bought a new (my first) 3TB disk, used gdisk to partition it, 'L' for
partition types, chose the last option for MBR (was this wrong?) Next
created an encrypted filesystem on this:
a) modprobe dm-mod
/usr/local/bin/cryptsetup.sh -c aes -h ripemd160 -y -b `blockdev
--getsize /dev/
sdg1` create cryptvol2 /dev/sdg1
b) mke2fs -j /dev/mapper cryptvol2
c) after completion, dmsetup remove cryptvol2
d) mount the new filesystem with;
modprobe dm-mod
/usr/local/bin/cryptsetup.sh -c aes -h ripemd160 -y -b `blockdev
--getsize /dev/
sdg1` create cryptvol2 /dev/sdg1
mount /dev/mapper/cryptvol2 /mnt/crypt2
All looked good, but there was a 'smart' warning icon about a disk about
to fail. The 3 TB disk I'd just done happened to be /dev/sdg. The disk
reporting errors was /dev/sdh, a 2TB disk.
Device: /dev/sdh
SMART status: enabled
Automatic Offline Data Collection status: enabled
ALERT: The drive is reporting that it will FAIL very soon.
Please back up as soon as possible!
I grumbled, thought it a strange coincidence that this just appeared,
took out the 'faulty' disk, bought another 3TB disk to replace it, did
it all again. The new 3TB disk as again seen as /dev/sdg. Did same
stuff again, up came the same error message about yet _another_ disk.
Having had zero reallocated sectors only a few minutes before, it now
reports 3975 reallocated sectors, the identical number to the first
'normal' disk, and same error messages. The 'faulty' disk was again the
one seen as /dev/sdg. This reallocation seems to have welded itself into
the disk; persists after reboot.
Help! I've no idea where to go next. Looks like a major bug, but in what?
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="008921.html">[Mageia-discuss] Anyone here that feel interested & that have time to.......
</A></li>
<LI>Next message: <A HREF="008926.html">[Mageia-discuss] software-induced hard disk sector reallocation problem
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#8925">[ date ]</a>
<a href="thread.html#8925">[ thread ]</a>
<a href="subject.html#8925">[ subject ]</a>
<a href="author.html#8925">[ author ]</a>
</LI>
</UL>
<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-discuss">More information about the Mageia-discuss
mailing list</a><br>
</body></html>
|