Outils pour utilisateurs

Outils du site


blog

Notes Multipath I/O MPIO

Si LVM

sed -i -e "s/use_lvmetad \= 1/use_lvmetad \= 0/g" /etc/lvm/lvm.conf
systemctl stop lvm2-lvmetad.service
systemctl stop lvm2-lvmetad.socket
#mkinitrd -f /boot/initrd-$(uname -r).img $(uname -r)
dracut -H -f /boot/initramfs-$(uname -r).img  $(uname -r)
yum install device-mapper-multipath
#dracut -f --add-drivers multipath

Voir gdisk et parted pour GPT

# fdisk /dev/sdc
t
8e (LVM Linux)
w

Création PV, VG, LV ⇒ voir LVM

Suite

multipath -ll
modprobe dm_multipath
/sbin/mpathconf
systemctl start multipathd

/etc/multipath.conf

defaults {
        user_friendly_names yes
        find_multipaths yes
}

Autre conf possible

# /lib/udev/scsi_id -g -u -d /dev/disk/by-path/*iscsi*
14945540000000000ed34fecd6b19c9dac92c6a5ccdddce57

/etc/multipath.conf

blacklist {
        wwid .*
}
 
blacklist_exceptions {
        wwid "14945540000000000ed34fecd6b19c9dac92c6a5ccdddce57"
}
multipath -r
multipath -ll

Autres

dracut -f --add-drivers multipath
multipath -F
multipath -v2
multipath -r
Exemple
multipath -ll
multipathd show paths

/etc/multipath.conf

more /sys/class/fc_host/host?/port_state
::::::::::::::
/sys/class/fc_host/host2/port_state
::::::::::::::
Online
::::::::::::::
/sys/class/fc_host/host3/port_state
::::::::::::::
Online
blacklist {
        devnode "^(ram|raw|loop|fd|dm-|sr|scd|st)[0-9]*"
        devnode "^hd[a-z]"
        devnode "^fio[a-z]"
        devnode "^dcssblk[0-9]*"
        device {
                vendor "DGC"
                product "LUNZ"
        }
        device {
                vendor "IBM"
                product "S/390.*"
        }
        # don't count normal SATA devices as multipaths
        device {
                vendor  "ATA"
        }
        # don't count 3ware devices as multipaths
        device {
                vendor  "3ware"
                }
        device {
                vendor  "AMCC"
        }
                # nor highpoint devices

blacklist {
        devnode "^(ram|raw|loop|fd|dm-|sr|scd|st)[0-9]*"
        devnode "^hd[a-z]"
        devnode "^fio[a-z]"
        devnode "^dcssblk[0-9]*"
        device {
                vendor "DGC"
                product "LUNZ"
        }
        device {
                vendor "IBM"
                product "S/390.*"
        }
        # don't count normal SATA devices as multipaths
        device {
                vendor  "ATA"
        }
        # don't count 3ware devices as multipaths
        device {
                vendor  "3ware"
                }
        device {
                vendor  "AMCC"
        }
                # nor highpoint devices
        device {
                vendor  "HPT"
        } 
2025/03/24 15:06

Notes mplayer / mencoder

DVD

mplayer -nocache dvdnav://

https://doc.ubuntu-fr.org/poulsbo

mplayer -lavdopts threads=4 -framedrop votre_fichier_video.avi

Matrix

mplayer -vo matrixview video.mp4
mplayer -vo caca video.mp4

Boucles (loop)

# mplayer -loop <repeat count>
# Setting count to zero (-loop 0)
 
mplayer -loop 0 noise_white.wav

Autres

mencoder -oac help
mencoder -ovc help
2025/03/24 15:06

Notes module kernel Linux

How do I list loaded Linux module parameter values?

Source : http://serverfault.com/questions/62316/how-do-i-list-loaded-linux-module-parameter-values

cat /proc/modules | cut -f 1 -d " " | while read module; do \
 echo "Module: $module"; \
 if [ -d "/sys/module/$module/parameters" ]; then \
  ls /sys/module/$module/parameters/ | while read parameter; do \
   echo -n "Parameter: $parameter --> "; \
   cat /sys/module/$module/parameters/$parameter; \
  done; \
 fi; \
 echo; \
done

Systemd

systemctl status systemd-modules-load.service

Module Linux bootparam

Passer un argument à un module depuis le boot

nouveau.disable=yes

insmod - compatibility with the current running kernel - ignored "vermagic" check

modprobe --force-vermagic

Blacklister un module

module_blacklist=modname1,modname2,modname3
#module_to_blacklist.blacklist=yes
modprobe.blacklist=ahci
modprobe -r module_name
cat >/etc/modprobe.d/local-blacklist.conf <<EOF
blacklist module_name
install module_name /bin/false
EOF

hwdetect - Unused modules

Source : https://wiki.archlinux.org/title/hwdetect

#!/bin/bash
modules=($(awk '{print $1}' /proc/modules))
 
for hw in $(hwdetect --show-modules | awk -F: '{gsub("-","_"); print $2}'); do
    if ! grep -q "$hw" <(printf '%s\n' "${modules[@]}"); then
        printf '%s\n' "$hw";
    fi
done

Pb

fsck erreur end_request: I/O error, dev fd0, sector 0

end_request: I/O error, dev fd0, sector 0

source : https://askubuntu.com/questions/719058/blk-update-request-i-o-error-dev-fd0-sector-0

sudo rmmod floppy
echo "blacklist floppy" |sudo tee /etc/modprobe.d/blacklist-floppy.conf
sudo dpkg-reconfigure initramfs-tools

Autres

depmod -n | grep nouveau | egrep -v '^alias'

In distributions where systemd is available, systemd-modules-load.service loads kernel modules from static lists in these files:

  • /etc/modules-load.d/*.conf
  • /run/modules-load.d/*.conf
  • /usr/lib/modules-load.d/*.conf

Iptables

sudo tee /etc/modules-load.d/iptables.conf > /dev/null <<'EOF'
ip6_tables
ip6table_nat
ip_tables
iptable_nat
EOF
sudo systemctl restart systemd-modules-load.service
lsmod | grep "ip.*table"
2025/03/24 15:06

Notes MinIO s3

Voir :

Voir aussi :

Then open a web browser to http://localhost:9001/ and enter the default credentials:

Username minioadmin
Password minioadmin

Next, navigate to “Buckets”, click the “Create Bucket” button in the top right corner and then click the “Save” icon. Name your bucket, “mybkt”.

Source : https://litestream.io/getting-started/

Client S3 mc

Voir :

mkdir -p ~/minio/data
nerdctm run \
   -p 9000:9000 \
   -p 9001:9001 \
   --name minio \
   -v ~/minio/data:/data \
   -e "MINIO_ROOT_USER=ROOTNAME" \
   -e "MINIO_ROOT_PASSWORD=CHANGEME123" \
   quay.io/minio/minio server /data --console-address ":9001"
mc alias set myminio http://127.0.0.1:9000 ROOTNAME CHANGEME123
mc admin info myminio
mc mb myminio/plop
mc put ~/Documents/k8s_kind.txt myminio/plop/

https://github.com/minio/mc

 mc --autocompletion 

URL check ping http://localhost:9000/minio/health/live

2025/03/24 15:06
blog.txt · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki