PaulHowarth/Blog

Paul Howarth's Blog

<< <  2017 / 1 >  >>
Mon Tue Wed Thu Fri Sat Sun
            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          

Recent Entries

Tuesday 17th January 2017

Storage Clean-Up

My build-system server akira looks like it'll be running out of space in the next few months so I have purchased a pair of WD Red 3TB drives (which, as always, I shall be operating in a RAID1 mirror configuration) and I intend to replace an existing pair of Seagate Barracuda 320GB (/dev/sdc and /dev/sdd), partitioned as follows:

/dev/sdc: 298.1 GiB with GPT partition table

Seagate Barracuda 7200.10 (ST3320620AS), Serial # 9QF1FZJ3

Partition

Start Sec

End Sec

Size

RAID device

Usage

sdc1

40

2087

1024.0 KiB

BIOS boot partition

sdc2

2088

1026087

500.0 MiB

/dev/md0

Not in use

sdc3

1026088

2050087

500.0 MiB

/dev/md1

Not in use

sdc4

2050088

169822247

80.0 GiB

/dev/md4

VgOSzion

sdc5

169822248

589252647

200.0 GiB

/dev/md5

VgServerDataZion

-

-

17.1 GiB spare

These drives were inherited from my old builder machine zion (long since repurposed as a children's PC) but the only active use I am making of them now is the 200.0 GiB of data in the VgServerDataZion volume group. Fortunately I still had over 200 GiB of free space in that volume group on other drives, so it was a simple job to move the data off /dev/md5 and free up that space:

# pvmove /dev/md5
# vgreduce VgServerDataZion /dev/md5

Having done that, I could get rid of the underlying RAID device too. I got the UUID of the device:

# mdadm --detail /dev/md5
/dev/md5:
        Version : 1.2
  Creation Time : Sun Nov 20 15:25:31 2011
     Raid Level : raid1
     Array Size : 209714104 (200.00 GiB 214.75 GB)
  Used Dev Size : 209714104 (200.00 GiB 214.75 GB)
   Raid Devices : 2
  Total Devices : 2
    Persistence : Superblock is persistent

    Update Time : Tue Jan 17 13:43:32 2017
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           Name : zion.city-fan.org:5
           UUID : e5429a07:9e448a9d:5eb96fa5:cbdda65c
         Events : 7020

    Number   Major   Minor   RaidDevice State
       0       8       37        0      active sync   /dev/sdc5
       2       8       53        1      active sync   /dev/sdd5

Then I commented out the corresponding entry in /etc/mdadm.conf:

ARRAY /dev/md/zion.city-fan.org:5        metadata=1.2 level=raid1 UUID=e5429a07:9e448a9d:5eb96fa5:cbdda65c

Then I stopped the device and cleared the RAID metadata from the underlying partitions to stop them being detected at the next boot:

# mdadm --stop /dev/md5
# mdadm --zero-superblock /dev/sdc5 /dev/sdd5

Now, VgOSzion is a hangover from the old machine and can go too:

# vgremove VgOSzion

It was then time to remove the other RAID devices still using the drives:

# mdadm --detail /dev/md0
/dev/md0:
        Version : 1.0
  Creation Time : Sun Jun  3 17:08:25 2012
     Raid Level : raid1
     Array Size : 511988 (499.99 MiB 524.28 MB)
  Used Dev Size : 511988 (499.99 MiB 524.28 MB)
   Raid Devices : 2
  Total Devices : 2
    Persistence : Superblock is persistent

    Update Time : Sun Jan 15 01:21:06 2017
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           Name : zion.intra.city-fan.org:0
           UUID : 85639673:8bd04838:a53c8215:ca9ad125
         Events : 737

    Number   Major   Minor   RaidDevice State
       0       8       34        0      active sync   /dev/sdc2
       1       8       50        1      active sync   /dev/sdd2
# mdadm --detail /dev/md1
/dev/md1:
        Version : 1.0
  Creation Time : Tue Jan 22 11:14:18 2013
     Raid Level : raid1
     Array Size : 511936 (499.94 MiB 524.22 MB)
  Used Dev Size : 511936 (499.94 MiB 524.22 MB)
   Raid Devices : 2
  Total Devices : 2
    Persistence : Superblock is persistent

    Update Time : Sun Jan 15 02:20:41 2017
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           Name : zion.intra.city-fan.org:1
           UUID : 9f162bcf:6b7557dd:eed0f554:9241c60e
         Events : 643

    Number   Major   Minor   RaidDevice State
       0       8       35        0      active sync   /dev/sdc3
       1       8       51        1      active sync   /dev/sdd3
# mdadm --detail /dev/md4
/dev/md4:
        Version : 1.2
  Creation Time : Sun Nov 20 15:25:10 2011
     Raid Level : raid1
     Array Size : 83884984 (80.00 GiB 85.90 GB)
  Used Dev Size : 83884984 (80.00 GiB 85.90 GB)
   Raid Devices : 2
  Total Devices : 2
    Persistence : Superblock is persistent

    Update Time : Tue Jan 17 16:11:17 2017
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           Name : zion.city-fan.org:4
           UUID : 953629e8:fe9f2d1e:570f883f:bd10d8c0
         Events : 5369

    Number   Major   Minor   RaidDevice State
       0       8       36        0      active sync   /dev/sdc4
       2       8       52        1      active sync   /dev/sdd4
# vi /etc/mdadm.conf
(comment out/remove entries corresponding to the above UUIDs for `/dev/md0`, `/dev/md1` and `/dev/md4`)
ARRAY /dev/md/zion.intra.city-fan.org:0  metadata=1.0 level=raid1 UUID=85639673:8bd04838:a53c8215:ca9ad125
ARRAY /dev/md/zion.intra.city-fan.org:1  metadata=1.0 level=raid1 UUID=9f162bcf:6b7557dd:eed0f554:9241c60e
ARRAY /dev/md/zion.city-fan.org:4        metadata=1.2 level=raid1 UUID=953629e8:fe9f2d1e:570f883f:bd10d8c0
# mdadm --stop /dev/md0
# mdadm --stop /dev/md1
# mdadm --stop /dev/md4
# mdadm --zero-superblock /dev/sdc2 /dev/sdd2 /dev/sdc3 /dev/sdd3 /dev/sdc4 /dev/sdd4

And that was that. The drives are ready to be replaced.

Fedora Project

  • Updated GeoIP-GeoLite-data to the January 2017 databases in F-24, F-25, Rawhide, EPEL-5 and EPEL-6

  • Updated perl-Modern-Perl to 1.20170117 in Rawhide:

  • Updated perl-Ref-Util to 0.113 in Rawhide:

    • Fix bugtracker link

Local Packages

  • Updated GeoIP-GeoLite-data to the January 2017 databases as per the Fedora version

  • Updated perl-Ref-Util to 0.113 as per the Fedora version

Friday 13th January 2017

Fedora Project

  • Updated perl-Specio to 0.32 in Rawhide:

    • Fixed a bug in the inlining for types create by any_can_type() and object_can_type(); this inlining mostly worked by accident because of some List::Util XS magic, but this broke under the debugger (GH#6, DateTime GH#49)

Local Packages

  • Dropped the autotools-compat packages autoconf260, automake19 and automake110 from the yum/dnf repositories; nothing seems to be using them and they FTBFS on modern systems

  • Updated perl-Specio to 0.32 as per the Fedora version

Thursday 12th January 2017

Fedora Project

  • Updated perl-Math-BigInt to 1.999808 in Rawhide:

    • In Math::BigInt and Math::BigFloat, add methods bdfac() for double factorial

    • In Math::BigInt and Math::BigFloat, add methods to_hex(), to_oct(), and to_bin() for hexadecimal, octal, and binary string output without prefix; even for Math::BigFloat there is still only support for integer output

    • Add tests for new methods in Math::BigInt and Math::BigFloat

    • Add test for as_oct() corresponding to the old tests for as_hex() and as_bin()

    • In Math::BigInt::Lib, add method _dfac() for double factorial, and corresponding tests

    • In Math::BigInt::Lib, fix bug in overloaded "int"

    • In Math::BigInt::Lib, implement much faster versions of _from_hex(), _from_oct(), and _from_bin()

    • In Makefile.PL, improve the wording in the message displayed if some of the installed backend libraries are not a subclass of Math::BigInt::Lib (and hence will not provide newer methods)

    • Fix minor bugs in some of the author library test files (t/author-lib*.t)

    • Allow leading and trailing whitespace in the input to from_hex(), from_oct(), and from_bin(), and add tests to verify; this is a regression (CPAN RT#119805)

  • Updated perl-Math-BigInt-GMP to 1.6003 in Rawhide:

    • Fix syntax for required version of Math::BigInt::Lib

    • Better checking of POD coverage
    • Sync test files with Math-BigInt-1.999808

Wednesday 11th January 2017

Fedora Project

  • Updated perl-Test-Simple to 1.302075 in Rawhide:

    • Add 'cid' to trace

    • Add signatures to trace

    • Add related() to events

    • Now it is possible to check if events are related
    • Add 'no_fork' option to run_subtest()

Local Packages

  • Updated perl-File-Remove (1.57) not to build-require perl(Test::TrailingSpace) when bootstrapping, to avoid build dependency cycles

  • Updated perl-Term-Table to 0.006:

    • Fix rendering issue when all lines are the same length
  • Updated perl-Test-Simple and perl-Test2 to 1.302075 as per the Fedora version

Tuesday 10th January 2017

Local Packages

  • Updated perl-B-Hooks-EndOfScope (0.21) to take account of Test::Kwalitee ≥ 1.21 now being available back to Fedora 9 and to fix FTBFS when perl is not in the minimal buildroot

  • Updated perl-File-Remove (1.57) and perl-Test-TrailingSpace (0.0301) to take account of Test::Kwalitee::Extra now being available universally

  • Updated perl-namespace-autoclean (0.28), perl-Test-Mojibake (1.1), perl-Test-Portability-Files (0.07) and perl-YAML-Tiny (1.69) to take account of Test::Kwalitee ≥ 1.21 now being available back to Fedora 9

  • Updated perl-XML-LibXML (2.0128) to take account of Test::Kwalitee::Extra now being universally available, but this module's use of a build-time module Conftest requires Module::CPANTS::Analyse ≥ 0.96, which is still only available from Fedora 9 onwards

Other Entries

Year 2017

January

February

March

April

May

June

July

August

September

October

November

December

Year 2016

January

February

March

April

May

June

July

August

September

October

November

December

Year 2015

January

February

March

April

May

June

July

August

September

October

November

December

Year 2014

January

February

March

April

May

June

July

August

September

October

November

December

Year 2013

January

February

March

April

May

June

July

August

September

October

November

December

Year 2012

January

February

March

April

May

June

July

August

September

October

November

December

Year 2011

January

February

March

April

May

June

July

August

September

October

November

December

Year 2010

January

February

March

April

May

June

July

August

September

October

November

December

Year 2009

January

February

March

April

May

June

July

August

September

October

November

December

Year 2008

January

February

March

April

May

June

July

August

September

October

November

December

Year 2007

January

February

March

April

May

June

July

August

September

October

November

December

Year 2006

January

February

March

April

May

June

July

August

September

October

November

December

{i} Local Packages refers to my local package repository at http://www.city-fan.org/ftp/contrib/


Recent