Star Wars: The Last Jedi Poster

The Last Jedi is coming this December 2017. I can’t wait.
My guess is we can watch it later in the Christmas season or even later than the New Year 2018. The Filipino Film Festival season usually starts the 15th December up to January 7th. Only Filipino films are shown in theaters. Unless there’s a special run, we would see it much later.


Adding A New Disk To A RAID Array part 2

I have added the new disk and the RAID array is finished syncing, now what?

You can check the result of the RAID sync with:

$sudo mdadm –detail /dev/md127
##Note the array size.


In my case, I’m using logical volume management LVM.

$sudo pvdisplay
##Note the PV size

The PV size is what you can work with. In my case I want to allocate the free space to two logical volumes. I want to add 300GB to my Music lv and the rest to my Videos lv.

$sudo lvextend -L +300G /dev/ubuntu-vg/Music-lv
##This will add 300 GB to my Music-lv.

$sudo lvextend -l +100%FREE /dev/ubuntu-vg/Videos-lv
##This will add the rest of the free space left to my Videos-lv.

We still need to extend the filesystem to the added space. I have ext4 filesystem.

$sudo resize2fs /dev/ubuntu-vg/Music-lv
##This extends the filesystem to the added space.

$sudo resize2fs /dev/ubuntu-vg/Videos-lv
##This extends the filesystem to the added space.

Check the results.

$df -h
[donato ~]$ df -ht ext4
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vol1-root 30G 18G 11G 62% /
/dev/mapper/vol1-home 174G 27G 138G 17% /home
/dev/mapper/ubuntu–vg-Music–lv 591G 210G 355G 38% /home/donato/Music
/dev/mapper/ubuntu–vg-Videos–lv 2.2T 1.1T 1.1T 51% /home/donato/Videos
[donato ~]$

Got A Bad Deal On A Disk

From: root <>
To: root
Bcc: <>
Subject: SMART error (ErrorCount) detected on host: archdesktop
Date: Fri, 06 Oct 2017 18:01:17 +0800

This message was generated by the smartd daemon running on:

host name: archdesktop
DNS domain: [Empty]

The following warning/error was logged by the smartd daemon:

Device: /dev/sda [SAT], ATA error count increased from 0 to 2

Device info:
Hitachi HUS724030ALE641, S/N:P8HEUS2R, WWN:5-000cca-22cd460f8, FW:MJ8OA5F0, 3.00 TB

For details see host’s SYSLOG.

You can also use the smartctl utility for further investigation.
No additional messages about this problem will be sent.

It seems SMART detected errors when I added a supposedly new disk to my RAID array.

$sudo smartctl -a /dev/sda

SMART Error Log Version: 1
ATA Error Count: 2
CR = Command Register [HEX]
FR = Features Register [HEX]
SC = Sector Count Register [HEX]
SN = Sector Number Register [HEX]
CL = Cylinder Low Register [HEX]
CH = Cylinder High Register [HEX]
DH = Device/Head Register [HEX]
DC = Device Command Register [HEX]
ER = Error register [HEX]
ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It “wraps” after 49.710 days.

Error 2 occurred at disk power-on lifetime: 18128 hours (755 days + 8 hours)
When the command that caused the error occurred, the device was active or idle.

This “new” disk has 18,124 power-on-hours. Somebody tried to clean it and pass it off as new. I bought this disk online. It’s easy to get information from a disk when you’re using SMART tools in your computer. But SMART gave it a PASSED tag. The error itself is discussed at this forum. Perhaps replacing the cable is next though.