$ whois -h whois.ripe.net POEM-RIPE55-SONG [...] % Information related to 'POEM-RIPE55-SONG' poem: POEM-RIPE55-SONG form: FORM-PROSE descr: At his first RIPE meeting, Gary wrote this and performed at descr: the closing plenary. It was truly awesome. descr: http://www.youtube.com/watch?v=_y36fG2Oba0 descr: text: A long long time ago text: I can still remember text: when my laptop could connect elsewhere. text: text: And I tell you all there was a day text: the network card I threw away text: had a purpose - and it worked for you and me. text: text: But 18 years completely wasted text: with each address we've aggregated text: the tables overflowing text: the traffic just stopped flowing... text: text: And now we're bearing all the scars text: and all my traceroutes showing stars. text: The packets would travel faster in cars text: the day the routers died. [... continued ...]
Humeur
Proxmox and replacing disk in ZFS pool
For one time this blog post will not be around Telecom and Cisco/Juniper/Nokia or something like this.
Just to keep in mind how to replace a faulty device in a ZFS pool.
I have :
root@pve:~# zpool status -x root@pve:~# zpool status pool: pve-zfs state: DEGRADED status: One or more devices could not be used because the label is missing or invalid. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Replace the device using 'zpool replace'. see: http://zfsonlinux.org/msg/ZFS-8000-4J scan: resilvered 41.9M in 0 days 00:00:11 with 0 errors on Sun Jul 24 13:38:51 2022 config: NAME STATE READ WRITE CKSUM pve-zfs DEGRADED 0 0 0 mirror-0 DEGRADED 0 0 0 wwn-0x50014ee267b78b52 ONLINE 0 0 0 2534239155907356895 FAULTED 0 0 0 was /dev/sdb1 mirror-1 ONLINE 0 0 0 wwn-0x50014ee267b63342 ONLINE 0 0 0 wwn-0x50014ee2bd0cf6b4 ONLINE 0 0 0 errors: No known data errors
But how to replace this faulty device when all the howto on the net talk about replace/make offline the old disk… But in my situation I have made an RMA on the disk and don’t have mind to make the faulty device offline.
Nevertheless, I have replaced my 2TB disk with a new one, such as :
But If I made :
root@pve:~# zpool replace pve-zfs 2534239155907356895 ata-WDC_WD20EFRX-68EUZN0_WD-WCC4M1EUJ8KN invalid vdev specification use '-f' to override the following errors: /dev/disk/by-id/ata-WDC_WD20EFRX-68EUZN0_WD-WCC4M1EUJ8KN-part1 contains a filesystem of type 'ntfs'
After make a little apt-get install parted :
root@pve:~# parted /dev/sda GNU Parted 3.2 Using /dev/sda Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) print Model: ATA WDC WD20EFRX-68E (scsi) Disk /dev/sda: 2000GB Sector size (logical/physical): 512B/4096B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 1049kB 2000GB 2000GB primary ntfs (parted) rm 1 (parted) print Model: ATA WDC WD20EFRX-68E (scsi) Disk /dev/sda: 2000GB Sector size (logical/physical): 512B/4096B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags (parted) mklabel GPT Warning: The existing disk label on /dev/sda will be destroyed and all data on this disk will be lost. Do you want to continue? Yes/No? Yes (parted) q Information: You may need to update /etc/fstab. root@pve:~#
So :
root@pve:~# zpool replace pve-zfs 2534239155907356895 ata-WDC_WD20EFRX-68EUZN0_WD-WCC4M1EUJ8KN
root@pve:~# zpool status -x
pool: pve-zfs
state: DEGRADED
status: One or more devices is currently being resilvered. The pool will
continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
scan: resilver in progress since Sun Jul 24 14:23:11 2022
10.5G scanned at 716M/s, 4.04G issued at 276M/s, 450G total
0B resilvered, 0.90% done, 0 days 00:27:37 to go
config:
NAME STATE READ WRITE CKSUM
pve-zfs DEGRADED 0 0 0
mirror-0 DEGRADED 0 0 0
wwn-0x50014ee267b78b52 ONLINE 0 0 0
replacing-1 DEGRADED 0 0 0
2534239155907356895 FAULTED 0 0 0 was /dev/sdb1
ata-WDC_WD20EFRX-68EUZN0_WD-WCC4M1EUJ8KN ONLINE 0 0 0
mirror-1 ONLINE 0 0 0
wwn-0x50014ee267b63342 ONLINE 0 0 0
wwn-0x50014ee2bd0cf6b4 ONLINE 0 0 0
errors: No known data errors
root@pve:~#
How I get the new device name :
root@pve:~# ls -l /dev/disk/by-id | grep J8KN lrwxrwxrwx 1 root root 9 Jul 24 14:23 ata-WDC_WD20EFRX-68EUZN0_WD-WCC4M1EUJ8KN -> ../../sda lrwxrwxrwx 1 root root 10 Jul 24 14:23 ata-WDC_WD20EFRX-68EUZN0_WD-WCC4M1EUJ8KN-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Jul 24 14:23 ata-WDC_WD20EFRX-68EUZN0_WD-WCC4M1EUJ8KN-part9 -> ../../sda9 root@pve:~#
Where “J8KN” is a pattern of the Serial Number you can pick on the new disk.
Musical Annual French cities festival and ridiculous thoughts
For the annuary musical amateur festival in all roads and cities of France, my prefered song :
Sorry for me music stops in April 5, 1994. Perhaps I have not enough searched on jamendo or independant scene. I don’t have ever found a music with all this primitive energy I can feel with Nirvana music. Maybe life should have stopped in the 90s, it would have been better considering all the shit that we can see, live, with all these media, this escalation in the presence on social networks. What would Kurt think living in 2022? I know this post is in that movement. I only ever wrote on this rag to share my bullshit, my feelings and hacks on free systems (BSD my love come here :-)) that I have been around since 1997.
See you soon at #frnog 34 !
A new more act for the planet !
Event though I make some little efforts as lot of humans for the planet, I am searching for a long time a way to do more and more efficient. I hope I have found this way. I have bought Time For The Planet‘s share company. The aim of it, it is found raising 1 billion euros and be able to invest in 100 companies. Ok you will tell me you have made capitallistic investment ?! No, it is where I found it awesome, these companies must and will create innovation in global warming reserach. AND these results will be publically share into Open Source fashion so that it wan be use by humanity. I am in this OpenSource manner from 1997, where I installed my first Slackware-3.3 (https://mirrors.slackware.com/slackware/slackware-3.3/). So I am really sensible to this way to share with others.
Do it now !
FreeBSD, xrdp and Lumina-desktop
Hey girls and guys,
A little post to give you some news about my fails and tries with FreeBSD. I have had tried to install a little FreeBSD-13, xrdp and Lumina-desktop on my proxmox to test.
As done for other things installed :
pkg install xrdp lumina
It was so easy and quick …
![](https://blog.clucas.fr/wp-content/uploads/2021/09/FreeBSD-Lumina-1024x640.png)
Ready for GreenDay… but for 2022
![](https://blog.clucas.fr/wp-content/uploads/2021/08/Capture-décran-2021-08-14-à-10.34.38-1.png)
Can’t wait to live this again. Hella Mega Tour…
GreenDay tour is on the way (Hella Mega tour). Hope to see you there in Paris in June 2022, feel free to join me, you know me twitter account 🙂
FreeBSD and fail2ban
Hey,
To go on configuring my FreeBSD server, I install my traditionnal package : “fail2ban”. By the way with Linux distro, apt install fail2ban is enough.
Not now 😀
You must add :
root@pluton:/usr/local/etc/fail2ban/jail.d# cat ssh-ipfw.local [ssh-ipfw] enabled = true filter = sshd action = ipfw[name=SSH, port=ssh, protocol=tcp] logpath = /var/log/auth.log findtime = 600 maxretry = 3 bantime = 3600 root@pluton:/usr/local/etc/fail2ban/jail.d#
And edit action file so that “localhost” is your public IP :
root@pluton:/usr/local/etc/fail2ban/action.d# cat ipfw.conf # Fail2Ban configuration file # # Author: Nick Munger # Modified by: Cyril Jaquier # # [...] # Option: localhost # Notes.: the local IP address of the network interface # Values: IP # localhost = <YOUR_PUBLIC_IP_ADDRESS> # Option: blocktype # Notes.: How to block the traffic. Use a action from man 5 ipfw # Common values: deny, unreach port, reset # Values: STRING # blocktype = unreach port root@pluton:/usr/local/etc/fail2ban/action.d#
06/06/19 – D-Day
In memory of all the soldiers who paid with their life the cost to peace and democracy in Europe. Please read these words and keep it in mind.
https://lyricstranslate.com/en/n%C3%A9-en-17-%C3%A0-leidenstadt-born-1917-leidenstadt.html If I 'd been born in 1917 in Leidenstadt On top of ruins, in a battlefield Would I have behaved better of worse than those people If I'd been German? Born into humiliation, hatred and ignorance Fed on dreams of revenge Would I have been one of those unlikely beings with a conscience Like some teardrops in the midst of a flood? If I'd grown up in the docklands of Belfast Soldier of a faith, of a class Would I have had the strength to withstand and fight against my Own kind: to betray, to hold out a hand in friendship? If I'd been born white and rich in Johannesburg Between the power and the fear Would I have heard the cries carried by the wind? Nothing will be like it was before. One never knows what one really has in one's guts, Hidden behind our appearances The soul of a brave man, an accomplice, an executioner? The worst or the best? Would we be one of those who resist or just those who follow like sheep If it was a question of more than just words? (Refrain) If I 'd been born in 1917 in Leidenstadt On top of ruins in a battlefield Would I have behaved better of worse than those If I'd been German?