1 <?xml version=
"1.0" encoding=
"ISO-8859-1"?>
2 <rss version='
2.0' xmlns:lj='http://www.livejournal.org/rss/lj/
1.0/'
>
4 <title>Petter Reinholdtsen - Entries from July
2013</title>
5 <description>Entries from July
2013</description>
6 <link>http://people.skolelinux.org/pere/blog/
</link>
10 <title>How to fix a Thinkpad X230 with a broken
180 GB SSD disk
</title>
11 <link>http://people.skolelinux.org/pere/blog/How_to_fix_a_Thinkpad_X230_with_a_broken_180_GB_SSD_disk.html
</link>
12 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/How_to_fix_a_Thinkpad_X230_with_a_broken_180_GB_SSD_disk.html
</guid>
13 <pubDate>Wed,
17 Jul
2013 23:
50:
00 +
0200</pubDate>
14 <description><p
>Today I switched to
15 <a href=
"http://people.skolelinux.org/pere/blog/The_Thinkpad_is_dead__long_live_the_Thinkpad_X230_.html
">my
16 new laptop
</a
>. I
've previously written about the problems I had with
17 my new Thinkpad X230, which was delivered with an
18 <a href=
"http://people.skolelinux.org/pere/blog/Intel_SSD_520_Series_180_GB_with_Lenovo_firmware_still_lock_up_from_sustained_writes.html
">180
19 GB Intel SSD disk with Lenovo firmware
</a
> that did not handle
20 sustained writes. My hardware supplier have been very forthcoming in
21 trying to find a solution, and after first trying with another
22 identical
180 GB disks they decided to send me a
256 GB Samsung SSD
23 disk instead to fix it once and for all. The Samsung disk survived
24 the installation of Debian with encrypted disks (filling the disk with
25 random data during installation killed the first two), and I thus
26 decided to trust it with my data. I have installed it as a Debian Edu
27 Wheezy roaming workstation hooked up with my Debian Edu Squeeze main
28 server at home using Kerberos and LDAP, and will use it as my work
29 station from now on.
</p
>
31 <p
>As this is a solid state disk with no moving parts, I believe the
32 Debian Wheezy default installation need to be tuned a bit to increase
33 performance and increase life time of the disk. The Linux kernel and
34 user space applications do not yet adjust automatically to such
35 environment. To make it easier for my self, I created a draft Debian
36 package
<tt
>ssd-setup
</tt
> to handle this tuning. The
37 <a href=
"http://anonscm.debian.org/gitweb/?p=collab-maint/ssd-setup.git
">source
38 for the ssd-setup package
</a
> is available from collab-maint, and it
39 is set up to adjust the setup of the machine by just installing the
40 package. If there is any non-SSD disk in the machine, the package
41 will refuse to install, as I did not try to write any logic to sort
42 file systems in SSD and non-SSD file systems.
</p
>
44 <p
>I consider the package a draft, as I am a bit unsure how to best
45 set up Debian Wheezy with an SSD. It is adjusted to my use case,
46 where I set up the machine with one large encrypted partition (in
47 addition to /boot), put LVM on top of this and set up partitions on
48 top of this again. See the README file in the package source for the
49 references I used to pick the settings. At the moment these
50 parameters are tuned:
</p
>
54 <li
>Set up cryptsetup to pass TRIM commands to the physical disk
55 (adding discard to /etc/crypttab)
</li
>
57 <li
>Set up LVM to pass on TRIM commands to the underlying device (in
58 this case a cryptsetup partition) by changing issue_discards from
59 0 to
1 in /etc/lvm/lvm.conf.
</li
>
61 <li
>Set relatime as a file system option for ext3 and ext4 file
64 <li
>Tell swap to use TRIM commands by adding
'discard
' to
65 /etc/fstab.
</li
>
67 <li
>Change I/O scheduler from cfq to deadline using a udev rule.
</li
>
69 <li
>Run fstrim on every ext3 and ext4 file system every night (from
70 cron.daily).
</li
>
72 <li
>Adjust sysctl values vm.swappiness to
1 and vm.vfs_cache_pressure
73 to
50 to reduce the kernel eagerness to swap out processes.
</li
>
77 <p
>During installation, I cancelled the part where the installer fill
78 the disk with random data, as this would kill the SSD performance for
79 little gain. My goal with the encrypted file system is to ensure
80 those stealing my laptop end up with a brick and not a working
81 computer. I have no hope in keeping the really resourceful people
82 from getting the data on the disk (see
83 <a href=
"http://xkcd.com/
538/
">XKCD #
538</a
> for an explanation why).
84 Thus I concluded that adding the discard option to crypttab is the
85 right thing to do.
</p
>
87 <p
>I considered using the noop I/O scheduler, as several recommended
88 it for SSD, but others recommended deadline and a benchmark I found
89 indicated that deadline might be better for interactive use.
</p
>
91 <p
>I also considered using the
'discard
' file system option for ext3
92 and ext4, but read that it would give a performance hit ever time a
93 file is removed, and thought it best to that that slowdown once a day
94 instead of during my work.
</p
>
96 <p
>My package do not set up tmpfs on /var/run, /var/lock and /tmp, as
97 this is already done by Debian Edu.
</p
>
99 <p
>I have not yet started on the user space tuning. I expect
100 iceweasel need some tuning, and perhaps other applications too, but
101 have not yet had time to investigate those parts.
</p
>
103 <p
>The package should work on Ubuntu too, but I have not yet tested it
106 <p
>As for the answer to the question in the title of this blog post,
107 as far as I know, the only solution is to replace the disk. It might
108 be possible to flash it with Intel firmware instead of the Lenovo
109 firmware. But I have not tried and did not want to do so without
110 approval from Lenovo as I wanted to keep the warranty on the disk
111 until a solution was found and they wanted the broken disks back.
</p
>
116 <title>Intel SSD
520 Series
180 GB with Lenovo firmware still lock up from sustained writes
</title>
117 <link>http://people.skolelinux.org/pere/blog/Intel_SSD_520_Series_180_GB_with_Lenovo_firmware_still_lock_up_from_sustained_writes.html
</link>
118 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Intel_SSD_520_Series_180_GB_with_Lenovo_firmware_still_lock_up_from_sustained_writes.html
</guid>
119 <pubDate>Wed,
10 Jul
2013 13:
30:
00 +
0200</pubDate>
120 <description><p
>A few days ago, I wrote about
121 <a href=
"http://people.skolelinux.org/pere/blog/The_Thinkpad_is_dead__long_live_the_Thinkpad_X230_.html
">the
122 problems I experienced with my new X230 and its SSD disk
</a
>, which
123 was dying during installation because it is unable to cope with
124 sustained write. My supplier is in contact with
125 <a href=
"http://www.lenovo.com/
">Lenovo
</a
>, and they wanted to send a
126 replacement disk to try to fix the problem. They decided to send an
127 identical model, so my hopes for a permanent fix was slim.
</p
>
129 <p
>Anyway, today I got the replacement disk and tried to install
130 Debian Edu Wheezy with encrypted disk on it. The new disk have the
131 same firmware version as the original. This time my hope raised
132 slightly as the installation progressed, as the original disk used to
133 die after
4-
7% of the disk was written to, while this time it kept
134 going past
10%,
20%,
40% and even past
50%. But around
60%, the disk
135 died again and I was back on square one. I still do not have a new
136 laptop with a disk I can trust. I can not live with a disk that might
137 lock up when I download a new
138 <a href=
"http://www.skolelinux.org/
">Debian Edu / Skolelinux
</a
> ISO or
139 other large files. I look forward to hearing from my supplier with
140 the next proposal from Lenovo.
</p
>
142 <p
>The original disk is marked Intel SSD
520 Series
180 GB,
143 11S0C38722Z1ZNME35X1TR, ISN: CVCV321407HB180EGN, SA: G57560302, FW:
144 LF1i,
29MAY2013, PBA: G39779-
300, LBA
351,
651,
888, LI P/N:
0C38722,
145 Pb-free
2LI, LC P/N:
16-
200366, WWN:
55CD2E40002756C4, Model:
146 SSDSC2BW180A3L
2.5" 6Gb/s SATA SSD
180G
5V
1A, ASM P/N
0C38732, FRU
147 P/N
45N8295, P0C38732.
</p
>
149 <p
>The replacement disk is marked Intel SSD
520 Series
180 GB,
150 11S0C38722Z1ZNDE34N0L0, ISN: CVCV315306RK180EGN, SA: G57560-
302, FW:
151 LF1i,
22APR2013, PBA: G39779-
300, LBA
351,
651,
888, LI P/N:
0C38722,
152 Pb-free
2LI, LC P/N:
16-
200366, WWN:
55CD2E40000AB69E, Model:
153 SSDSC2BW180A3L
2.5" 6Gb/s SATA SSD
180G
5V
1A, ASM P/N
0C38732, FRU
154 P/N
45N8295, P0C38732.
</p
>
156 <p
>The only difference is in the first number (serial number?), ISN,
157 SA, date and WNPP values. Mentioning all the details here in case
158 someone is able to use the information to find a way to identify the
159 failing disk among working ones (if any such working disk actually
165 <title>July
13th: Debian/Ubuntu BSP and Skolelinux/Debian Edu developer gathering in Oslo
</title>
166 <link>http://people.skolelinux.org/pere/blog/July_13th__Debian_Ubuntu_BSP_and_Skolelinux_Debian_Edu_developer_gathering_in_Oslo.html
</link>
167 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/July_13th__Debian_Ubuntu_BSP_and_Skolelinux_Debian_Edu_developer_gathering_in_Oslo.html
</guid>
168 <pubDate>Tue,
9 Jul
2013 10:
40:
00 +
0200</pubDate>
169 <description><p
>The upcoming Saturday,
2013-
07-
13, we are organising a combined
170 Debian Edu developer gathering and Debian and Ubuntu bug squashing
171 party in Oslo. It is organised by
<a href=
"http://www.nuug.no/
">the
172 member assosiation NUUG
</a
> and
173 <a href=
"http://www.skolelinux.org/
">the Debian Edu / Skolelinux
174 project
</a
> together with
<a href=
"http://bitraf.no/
">the hack space
175 Bitraf
</a
>.
</p
>
177 <p
>It starts
10:
00 and continue until late evening. Everyone is
178 welcome, and there is no fee to participate. There is on the other
179 hand limited space, and only room for
30 people. Please put your name
180 on
<a href=
"http://wiki.debian.org/BSP/
2013/
07/
13/no/Oslo
">the event
181 wiki page
</a
> if you plan to join us.
</p
>
186 <title>The Thinkpad is dead, long live the Thinkpad X230?
</title>
187 <link>http://people.skolelinux.org/pere/blog/The_Thinkpad_is_dead__long_live_the_Thinkpad_X230_.html
</link>
188 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/The_Thinkpad_is_dead__long_live_the_Thinkpad_X230_.html
</guid>
189 <pubDate>Fri,
5 Jul
2013 08:
30:
00 +
0200</pubDate>
190 <description><p
>Half a year ago, I reported that I had to find a
191 <a href=
"http://people.skolelinux.org/pere/blog/Thank_you_Thinkpad_X41__for_your_long_and_trustworthy_service.html
">replacement
192 for my trusty old Thinkpad X41
</a
>. Unfortunately I did not have much
193 time to spend on it, and it took a while to find a model I believe
194 will do the job, but two days ago the replacement finally arrived. I
196 <a href=
"http://www.linlap.com/lenovo_thinkpad_x230
">Thinkpad X230
</a
>
197 with SSD disk (NZDAJMN). I first test installed Debian Edu Wheezy as
198 a roaming workstation, and it seemed to work flawlessly. But my
199 second installation with encrypted disk was not as successful. More
200 on that below.
</p
>
202 <p
>I had a hard time trying to track down a good laptop, as my most
203 important requirements (robust and with a good keyboard) are never
204 listed in the feature list. But I did get good help from the search
205 feature at
<a href=
"http://www.prisjakt.no/
">Prisjakt
</a
>, which
206 allowed me to limit the list of interesting laptops based on my other
207 requirements. A bit surprising that SSD disk are not disks according
208 to that search interface, so I had to drop specifying the number of
209 disks from my search parameters. I also asked around among friends to
210 get their impression on keyboards and robustness.
</p
>
212 <p
>So the new laptop arrived, and it is quite a lot wider than the
213 X41. I am not quite convinced about the keyboard, as it is
214 significantly wider than my old keyboard, and I have to stretch my
215 hand a lot more to reach the edges. But the key response is fairly
216 good and the individual key shape is fairly easy to handle, so I hope
217 I will get used to it. My old X40 was starting to fail, and I really
218 needed a new laptop now. :)
</p
>
220 <p
>Turning off the touch pad was simple. All it took was a quick
221 visit to the BIOS during boot it disable it.
</p
>
223 <p
>But there is a fatal problem with the laptop. The
180 GB SSD disk
224 lock up during load. And this happen when installing Debian Wheezy
225 with encrypted disk, while the disk is being filled with random data.
226 I also tested to install Ubuntu Raring, and it happen there too if I
227 reenable the code to fill the disk with random data (it is disabled by
228 default in Ubuntu). And the bug with is already known. It was
229 reported to Debian as
<a href=
"http://bugs.debian.org/
691427">BTS
230 report #
691427 2012-
10-
25</a
> (journal commit I/O error on brand-new
231 Thinkpad T430s ext4 on lvm on SSD). It is also reported to the Linux
233 <a href=
"https://bugzilla.kernel.org/show_bug.cgi?id=
51861">Kernel bugzilla
234 report #
51861 2012-
12-
20</a
> (Intel SSD
520 stops working under load
235 (SSDSC2BW180A3L in Lenovo ThinkPad T430s)). It is also reported on the
236 Lenovo forums, both for
237 <a href=
"http://forums.lenovo.com/t5/T400-T500-and-newer-T-series/T430s-Intel-SSD-
520-
180GB-issue/m-p/
1070549">T430
238 2012-
11-
10</a
> and for
239 <a href=
"http://forums.lenovo.com/t5/X-Series-ThinkPad-Laptops/x230-SATA-errors-with-
180GB-Intel-
520-SSD-under-heavy-write-load/m-p/
1068147">X230
240 03-
20-
2013</a
>. The problem do not only affect installation. The
241 reports state that the disk lock up during use if many writes are done
242 on the disk, so it is much no use to work around the installation
243 problem and end up with a computer that can lock up at any moment.
245 <a href=
"https://git.efficios.com/?p=test-ssd.git
">small C program
246 available
</a
> that will lock up the hard drive after running a few
247 minutes by writing to a file.
</p
>
249 <p
>I
've contacted my supplier and asked how to handle this, and after
250 contacting PCHELP Norway (request
01D1FDP) which handle support
251 requests for Lenovo, his first suggestion was to upgrade the disk
252 firmware. Unfortunately there is no newer firmware available from
253 Lenovo, as my disk already have the most recent one (version LF1i). I
254 hope to hear more from him today and hope the problem can be
260 <title>The Thinkpad is dead, long live the Thinkpad X230
</title>
261 <link>http://people.skolelinux.org/pere/blog/The_Thinkpad_is_dead__long_live_the_Thinkpad_X230.html
</link>
262 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/The_Thinkpad_is_dead__long_live_the_Thinkpad_X230.html
</guid>
263 <pubDate>Thu,
4 Jul
2013 09:
20:
00 +
0200</pubDate>
264 <description><p
>Half a year ago, I reported that I had to find a replacement for my
265 trusty old Thinkpad X41. Unfortunately I did not have much time to
266 spend on it, but today the replacement finally arrived. I ended up
267 picking a
<a href=
"http://www.linlap.com/lenovo_thinkpad_x230
">Thinkpad
268 X230
</a
> with SSD disk (NZDAJMN). I first test installed Debian Edu
269 Wheezy as a roaming workstation, and it worked flawlessly. As I write
270 this, it is installing what I hope will be a more final installation,
271 with a encrypted hard drive to ensure any dope head stealing it end up
272 with an expencive door stop.
</p
>
274 <p
>I had a hard time trying to track down a good laptop, as my most
275 important requirements (robust and with a good keyboard) are never
276 listed in the feature list. But I did get good help from the search
277 feature at
<ahref=
"http://www.prisjakt.no/
">Prisjakt
</a
>, which
278 allowed me to limit the list of interesting laptops based on my other
279 requirements. A bit surprising that SSD disk are not disks, so I had
280 to drop number of disks from my search parameters.
</p
>
282 <p
>I am not quite convinced about the keyboard, as it is significantly
283 wider than my old keyboard, and I have to stretch my hand a lot more
284 to reach the edges. But the key response is fairly good and the
285 individual key shape is fairly easy to handle, so I hope I will get
286 used to it. My old X40 was starting to fail, and I really needed a
287 new laptop now. :)
</p
>
289 <p
>I look forward to figuring out how to turn off the touch pad.
</p
>
294 <title>Fourth alpha release of Debian Edu/Skolelinux based on Debian Wheezy
</title>
295 <link>http://people.skolelinux.org/pere/blog/Fourth_alpha_release_of_Debian_Edu_Skolelinux_based_on_Debian_Wheezy.html
</link>
296 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Fourth_alpha_release_of_Debian_Edu_Skolelinux_based_on_Debian_Wheezy.html
</guid>
297 <pubDate>Wed,
3 Jul
2013 14:
00:
00 +
0200</pubDate>
298 <description><p
>The fourth wheezy based alpha release of Debian Edu was wrapped up
299 today. This is the release announcement:
</p
>
301 <p
><strong
>New features for Debian Edu
7.1+edu0~alpha3 released
302 2013-
07-
03</strong
></p
>
304 <p
>These are the release notes for for Debian Edu / Skolelinux
305 7.1+edu0~alpha3, based on Debian with codename
"Wheezy
".
</p
>
307 <p
><strong
>About Debian Edu and Skolelinux
</strong
></p
>
309 <p
><a href=
"http://www.skolelinux.org/
">Debian Edu, also known as
310 Skolelinux
</a
>, is a Linux distribution based on Debian providing an
311 out-of-the box environment of a completely configured school
312 network. Immediately after installation a school server running all
313 services needed for a school network is set up just waiting for users
314 and machines being added via GOsa², a comfortable Web-UI. A netbooting
315 environment is prepared using PXE, so after initial installation of
316 the main server from CD, DVD or USB stick all other machines can be
317 installed via the network. The provided school server provides LDAP
318 database and Kerberos authentication service, centralized home
319 directories, DHCP server, web proxy and many other services. The
321 <a href=
"http://people.skolelinux.org/pere/blog/Educational_applications_included_in_Debian_Edu___Skolelinux__the_screenshot_collection____.html
">more
322 than
60 educational software packages
</a
> and more are available from
323 the Debian archive, and schools can choose between KDE, Gnome, LXDE
324 and Xfce desktop environment.
</p
>
326 <p
>This is the fourth test release based on Debian Wheezy. Basically
327 this is an updated and slightly improved version compared to the
328 Squeeze release.
</p
>
330 <p
><strong
>Software updates
</strong
></p
>
332 <li
>Dropped ispell dictionaries from our default installation.
</li
>
333 <li
>Dropped menu-xdg from the KDE desktop option, to drop the Debian
334 submenu. It was not included with Gnome, LXDE or Xfce, so this
335 brings KDE in line with the others.
</li
>
336 <li
>Dropped xdrawchem, xjig and xsok from our default installation as
337 they don
't have a desktop menu entry and thus won
't show up in the
338 menu now that menu-xdg was removed.
</li
>
339 <li
>Removed the killer system to kill left behind processes on
340 multi-user machines, as it was no longer able to understand when a
341 X display was in use and killed the processes of the active users
343 <li
>Dropped the golearn (from goplay) package as the debtags in wheezy
344 are too few to make the package useful.
</li
>
346 <p
><strong
>Other changes
</strong
></p
>
348 <li
>Updated artwork matching http://wiki.debian.org/DebianArt/Themes/Joy
349 <li
>Multi-arch i386/amd64 USB stick ISO available.
</li
>
350 <li
>Got rid of ispell/wordlist related debconf questions that showed
351 up for some language options.
</li
>
352 <li
>Switched to using http.debian.net as APT source by default.
</li
>
353 <li
>Fixed proxy configuration on Main Server installations.
</li
>
354 <li
>Changed LTSP setup to ask dpkg to use force-unsafe-io the same way
355 d-i is doing it.
</li
>
356 <li
>Made sure root and user passwords were not left behind in the
357 debconf database after installation on Main Server installations.
</li
>
358 <li
>Made Roaming Workstation dynamic setup more robust and added draft
359 script setup-ad-client to hook a Roaming Workstation up to a
360 Active Directory server instead of a Debian Edu Main Server.
</li
>
361 <li
>Update system to install needed firmware packages during
362 installation, to work properly in Wheezy.
</li
>
363 <li
>Update system to handle hardware quirks (debian-edu-hwsetup).
</li
>
364 <li
>Corrected PXE installation setup to properly pass selected desktop
365 and keymap settings to PXE installation clients.
</li
>
366 <li
>LTSP diskless workstations use sshfs by default, allowing them to
367 work without adding them to DNS and NIS netgroups for NFS access.
</li
>
369 <p
><strong
>Known issues
</strong
></p
>
371 <li
>No mass import of user account data in GOsa (ldif or csv)
372 available yet (
698840).
</li
>
373 <li
>Artwork not enabled for all desktops.
</li
>
375 <p
><strong
>Where to get it
</strong
></p
>
377 <p
>To download the multiarch netinstall CD release you can use
</p
>
379 <li
><a href=
"ftp://ftp.skolelinux.org/skolelinux-cd/wheezy/debian-edu-
7.1+edu0~a3-CD.iso
">ftp://ftp.skolelinux.org/skolelinux-cd/wheezy/debian-edu-
7.1+edu0~a3-CD.iso
</a
></li
>
380 <li
><a href=
"http://ftp.skolelinux.org/skolelinux-cd/wheezy/debian-edu-
7.1+edu0~a3-CD.iso
">http://ftp.skolelinux.org/skolelinux-cd/wheezy/debian-edu-
7.1+edu0~a3-CD.iso
</a
></li
>
381 <li
>rsync -avzP ftp.skolelinux.org::skolelinux-cd/wheezy/debian-edu-
7.1+edu0~a3-CD.iso .
</li
>
384 <p
>The MD5SUM of this image is:
2b161a99d2a848c376d8d04e3854e30c
385 <br
>The SHA1SUM of this image is:
498922e9c508c0a7ee9dbe1dfe5bf830d779c3c8
</p
>
387 <p
>To download the multiarch USB stick ISO release you can use
</p
>
389 <li
><a href=
"ftp://ftp.skolelinux.org/skolelinux-cd/wheezy/debian-edu-
7.1+edu0~a3-USB.iso
">ftp://ftp.skolelinux.org/skolelinux-cd/wheezy/debian-edu-
7.1+edu0~a3-USB.iso
</a
></li
>
390 <li
><a href=
"http://ftp.skolelinux.org/skolelinux-cd/wheezy/debian-edu-
7.1+edu0~a3-USB.iso
">http://ftp.skolelinux.org/skolelinux-cd/wheezy/debian-edu-
7.1+edu0~a3-USB.iso
</a
></li
>
391 <li
>rsync -avzP ftp.skolelinux.org::skolelinux-cd/wheezy/debian-edu-
7.1+edu0~a3-USB.iso .
</li
>
394 <p
>The MD5SUM of this image is:
25e808e403a4c15dbef1d13c37d572ac
395 <br
>The SHA1SUM of this image is:
15ecfc93eb6b4f453b7eb0bc04b6a279262d9721
</p
>
397 <p
><strong
>How to report bugs
</strong
></p
>
399 <p
><a href=
"http://wiki.debian.org/DebianEdu/HowTo/ReportBugs
">http://wiki.debian.org/DebianEdu/HowTo/ReportBugs
</a
></p
>