Update Linux kernel 4.14.x

Arch linux pacman updated the linux kernel from 4.13.x to 4.14.x to stable channel.

[2017-12-03 20:00] [PACMAN] Running ‘pacman -Syu’
[2017-12-03 20:00] [PACMAN] synchronizing package lists
[2017-12-03 20:03] [PACMAN] starting full system upgrade
[2017-12-03 20:28] [ALPM] transaction started
[2017-12-03 20:28] [ALPM] upgraded linux-firmware (20171009.bf04291-1 -> 20171123.90436ce-1)
[2017-12-03 20:28] [ALPM] upgraded linux (4.13.12-1 -> 4.14.3-1) [2017-12-03 20:28] [ALPM] transaction completed

Advertisements

Changing My RAID Array, Add A Device And Resync

My previous post discussed removing a block device and partitioning it.

After creating the 2TB partition I can now add it to the existing array.

$mdadm /dev/md127 –add /dev/sda2 ##to add the 2TB partition (block device) to the array

$mdadm –detail /dev/md127 ##to check status of the array and component device

/dev/md127:
Version : 1.2
Creation Time : Tue Sep 6 02:59:21 2016
Raid Level : raid5
Array Size : 2929890816 (2794.16 GiB 3000.21 GB)
Used Dev Size : 976630272 (931.39 GiB 1000.07 GB)
Raid Devices : 4
Total Devices : 4
Persistence : Superblock is persistent

Intent Bitmap : Internal

Update Time : Sat Dec 2 10:00:56 2017
State : clean, degraded, recovering
Active Devices : 3
Working Devices : 4
Failed Devices : 0
Spare Devices : 1

Layout : left-symmetric
Chunk Size : 512K

Rebuild Status : 24% complete

Name : desktop:0
UUID : e3284314:1258cac3:1b6c243c:748be2fe
Events : 8551

Number Major Minor RaidDevice State
0 8 33 0 active sync /dev/sdc1
1 8 49 1 active sync /dev/sdd1
3 8 64 2 active sync /dev/sde
4 8 2 3 spare rebuilding /dev/sda2 ==>> note that mdadm added it as a spare first, with status “rebuilding”.

Also check with command,

$sudo less /proc/mdstat

Personalities : [raid6] [raid5] [raid4]
md127 : active raid5 sda2[4] sdd1[1] sdc1[0] sde[3]
2929890816 blocks super 1.2 level 5, 512k chunk, algorithm 2 [4/3] [UUU_]
[=====>……………] recovery = 26.8% (262702200/976630272) finish=102.1min speed=116481K/sec
bitmap: 0/8 pages [0KB], 65536KB chunk

unused devices: <none>

I like this command because it gives me recovery/rebuilding time and progress. I forgot how to execute it in real time. Also, I found out I could type /proc/mdstat on Firefox address bar and it will show my machine’s file up on the tab. I can just refresh the page. Nice.

The resync begins automatically after I added the block device. This is all hot-plugging. I have not removed or added a physical device in actual terms.

Changing My RAID Array, Removing And Partitioning Block Device

I’m attempting to shape my RAID to an all 2TB 3-block device array. My current array is as follows:

/dev/sda1 3TB active clean ==>> /dev/sda1 796GB
/dev/sda2 2TB
/dev/sdc1 2TB active clean
/dev/sdd1 2TB active clean
/dev/sde 1TB active clean ==>> –fail then –remove

My goal is to end up with a 4TB RAID array with 3 devices. Then use the “free” partitions /dev/sde and /dev/sda1 to create another RAID array later.

$mdadm /dev/md127 –fail /dev/sda1 ##to set the block device as fail

$mdadm /dev/md127 –remove /dev/sda1 ##to remove the block device from the array

$mdadm –detail /dev/md127 ##to check the array status, note the status of each of the component devices

You should see that one block device is removed now. I can start partitioning /dev/sda1 with fdisk.

$fdisk /dev/sda ##to load the device

If you have not used fdisk before, it is command line only but everything is easy to get.

$ sudo fdisk /dev/sda ##to load the device, give your root password
[sudo] password for donato:

Welcome to fdisk (util-linux 2.31).
Changes will remain in memory only, until you decide to write them. Be careful before using the write command.

Command (m for help): m
Help:

Generic
d delete a partition
F list free unpartitioned space
l list known partition types
n add a new partition
p print the partition table
t change a partition type
v verify the partition table
i print information about a partition

Misc
m print this menu
x extra functionality (experts only)

Script
I load disk layout from sfdisk script file
O dump disk layout to sfdisk script file

Save & Exit
w write table to disk and exit
q quit without saving changes

Create a new label
g create a new empty GPT partition table
G create a new empty SGI (IRIX) partition table
o create a new empty DOS partition table
s create a new empty Sun partition table

Create a new empty GPT partition table. This will set up deletion of all partitions and data on the device. Only when you type w is everything written to disk. So think before typing w.
I want to add a new partition. Type n to create a partition. I want to have a 2TB partition and the rest to another partition.
When asked for the type, type 29. I’m going to use these partitions in an array.

Command (m for help): p
Disk /dev/sda: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: C8877BCC-89D4-F84A-A427-46A4D2886055

Device Start End Sectors Size Type
/dev/sda1 4294969344 5860533134 1565563791 746.5G Linux RAID /dev/sda2 2048 4294969343 4294967296 2T Linux RAID

Partition table entries are not in disk order.

The partition seemed fine to me. So I made it permanent by typing w then q to exit fdisk.

Two Thousand Seventeen

wordpress logo with blogspot header imageI’m updating the theme which is the right thing to do. Two Thousand Seventeen theme seemed appropriate in this circumstance. The first thing I did was to use the same set of fonts. Then I selected an image from my blogspot blog and added the composite images to the logo of the wordpress blog. It’s my attempt at unifying the two blogs.

Two Thousand Seventeen is on its final weeks now. My blogs are not about being first to the scene. I will be there, I will come and be late but I will come right.

Update Gnucash 2.6.16 –> 2.6.18

It’s a long road to this update. It isn’t a normal update at all. I had to manually compile goffice0.8 and webkitgtk as well as gnucash itself.

It isn’t Gnucash fault in the end. After updating webkitgtk a few days back, that broke Gnucash. The next stable release wont be using webkitgtk with all of its vulnerabilities anymore. There’s that to look forward to.

GnuCash: Manually Build A Package In A Clean Space

I can’t use gnucash after an update a few days ago. I told you the details in this post.

My best option was to follow this thread at AUR/gnucash by the package maintainer. The basic structure of his solution is to first setup a clean space – chroot – where makechrootpkg can work without encountering errors from already installed packages. I need devtools and base-devel packages also.

So: #pacman -S base-devel git devtools –needed ##to install base-devel, git, devtools if not yet installed

$sudo mount -o remount,exec,suid /tmp ##to mount the filesystem on which to build with exec and suid flag on

Then I set up chroot as follows:
$mkdir /tmp/source/chroot -p
$cd /tmp/source
$sudo mkarchroot chroot/root base-devel

Now it’s time to get the package sources. Here I need goffice0.8 and webkitgtk. Since webkitgtk is a big package, compiles about 5-6 hours in some machines. I want to test this first on goffice0.8 which is a shorter operation.

$git clone “https://aur.archlinux.org/goffice0.8.git”
$cd goffice0.8
$makechrootpkg -T -r ../chroot/ ##to compile goffice0.8
$sudo cp *.pkg.tar.xz /var/cache/pacman/pkg/ ##to keep a copy of pkg in the system cache

The operation above took about 5 minutes on my machine. But it was successful, so I’m proceeding with the big one, webkitgtk.

$git clone “https://aur.archlinux.org/webkitgtk.git
$cd webkitgtk
$makechrootpkg -T -r ../chroot/ ##to compile webkitgtk
$sudo cp *.pkg.tar.xz /var/cache/pacman/pkg/ ## to keep a copy of pkg in the system cache

Now we have the packages to build gnucash.

$git clone “https://aur.archlinux.org/gnucash.git”
$cd gnucash
$makechrootpkg -T -r ../chroot/ -I ../goffice0.8/goffice0.8-0.8.17-4-x86_64.pkg.tar.xz -I ../webkitgtk/webkitgtk2-2.4.11-6-x86_64.pkg.tar.xz ## I flag tells makechrootpkg to install it in the build copy of the chroot; also note the path to those packages, adjust as necessary
$sudo cp *.pkg.tar.xz /var/cache/pacman/pkg/ ## to keep a copy of pkg in the system cache

$ sudo pacman -U gnucash*.pkg.tar.xz ../webkitgtk/webkitgtk2*.pkg.tar.xz ../goffice0.8/goffice0.8*.pkg.tar.xz # to install the packages

I successfully installed gnucash 2.6.18-4

gnucash]$ sudo pacman -U gnucash*.pkg.tar.xz
loading packages…
resolving dependencies…
looking for conflicting packages…

Packages (1) gnucash-2.6.18-4

Total Installed Size: 50.00 MiB
Net Upgrade Size: 2.06 MiB

:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring [###################################################################] 100%
(1/1) checking package integrity [###################################################################] 100%
(1/1) loading package files [###################################################################] 100%
(1/1) checking for file conflicts [###################################################################] 100%
(1/1) checking available disk space [###################################################################] 100%
:: Processing package changes…
(1/1) upgrading gnucash [###################################################################] 100%
:: Running post-transaction hooks…
(1/8) Cleaning pacman cache
==> no candidate packages found for pruning
(2/8) Installing GConf schemas…
(3/8) Compiling GSettings XML schema files…
(4/8) Updating icon theme caches…
(5/8) syncing cached writes to disks
(6/8) Arming ConditionNeedsUpdate…
(7/8) Updating the info directory file…
(8/8) Updating the desktop file MIME type cache…

GnuCash In Arch Linux

I updated a number of packages today and Gnucash won’t start. I immediately went to the Archlinux website to see what’s happening. I can’t seem to find the package in the community repo. There’s a thread in AUR on how to compile Gnucash by hand no AUR helpers.

But I tried to compile goffice and webkit2, needed packages for Gnucash-git. No. It doesn’t work for me.

Funny but I’m now using my Android Tablet with Gnucash app to record transactions. This is working. We need to have the stable GnuCash back. This is a stop gap on my part. Transactions don’t stop when computers stop. Please don’t make me go back to paper.

ADDITIONS: I found a thread in Archlinux forum documenting this problem since June 30 2017. I have gnucash installed February 2017.

[sudo] password for donato:
[2017-02-11 20:27] [PACMAN] Running ‘pacman -S gnucash’
[2017-02-11 20:34] [ALPM] installed gnucash (2.6.15-1)
[2017-04-25 19:20] [ALPM] upgraded gnucash (2.6.15-1 -> 2.6.16-1)
[2017-06-02 05:00] [ALPM] upgraded gnucash (2.6.16-1 -> 2.6.16-2)
[2017-06-21 06:16] [ALPM] upgraded gnucash (2.6.16-2 -> 2.6.16-3)

I’m running 2.6.16 now and the current version in AUR is 2.6.18-4.

Error is: Nov 18 21:00:03 archdesktop gnucash.desktop[25648]: gnucash: error while loading shared libraries: libicui18n.so.59: cannot open shared object file: No such file or directory

Problem is I can’t reinstall, I seemed to have lost my cached gnucash in /var/cache/pacmacman/pkg. I don’t know how that could happen since I keep at least 2 versions with paccache.

Noscript10 Might Be Ready (by the end of the week)

I updated to Firefox 57 and these are the extensions that it supports and that I use.

Noscript isn’t in this list and Giorgio might release another script blocker extension called Noscript 10 that works with F57.

At least that’s what he said in this posting. In any case it could be days before things get sorted out. Users will have to decide which No script they want. The good news is user settings are saved until all the features of the old Noscript are activated in the new one.

Update Mozilla Firefox 56 –> 57

My machine runs on Arch Linux and it is a rolling release. Mozilla updated Firefox browser from 56 to 57 a few hours ago. I checked the Arch channels and it was in Testing for a while. But now I’ve been notified it is ready for users. Yes it is fast. Some extensions are not ready yet. I hope their developers release their compatible versions soon.