tail /data/p.txt -f | parallel -k --slf hostnames.txt
the /data/p.txt and hostnames.txt one can change on the fly.
tail /data/p.txt -f | parallel -k --slf hostnames.txt
Every 2.0s: cat /proc/mdstat Tue Jun 26 10:33:19 2018
Personalities : [raid1]
md125 : active raid1 sda2[2] sdb2[0]
2099136 blocks super 1.0 [2/1] [U_]
resync=DELAYED
bitmap: 1/1 pages [4KB], 65536KB chunk
md126 : active raid1 sda3[2] sdb3[0]
477894656 blocks super 1.2 [2/1] [U_]
[===>.................] recovery = 19.9% (95154432/477894656) finish=129.8min speed=49130K/sec
bitmap: 4/4 pages [16KB], 65536KB chunk
md127 : active raid1 sda1[2] sdb1[0]
8256512 blocks super 1.2 [2/2] [UU]
unused devices:
raspistill --sharpness 100 -q 5 -t 1 -mm average -ifx denoise -sa 20 -ISO 200 --vstab -awb fluorescent -w 1920 -h 1080 -o /var/www/html/cam/cam.jpg
0 18 21 60 0 0|6421M 0 | 120B 876B| 0 0 | 36k 53kWriting:
0 18 17 64 0 1|6414M 0 | 120B 346B| 0 0 | 36k 53k
0 18 14 67 0 1|6413M 0 | 120B 346B| 0 0 | 36k 53k
0 9 11 77 0 3| 0 4503M| 120B 346B| 0 0 | 24k 8055
0 9 11 77 0 3| 0 4525M| 120B 346B| 0 0 | 24k 8046
0 9 13 75 0 3| 0 4505M| 120B 346B| 0 0 | 25k 7968
0 19 1 75 0 4|3420M 3401M| 120B 362B| 0 0 | 37k 36k
0 18 1 77 0 3|3282M 3261M| 180B 362B| 0 0 | 36k 34k
0 19 2 76 0 3|3297M 3215M| 180B 362B| 0 0 | 35k 33k
time lfs find /lustre/arm2arm/| wc -lEnable: sh set-protection.sh 0
1454706
real 0m14.941s
user 0m1.633s
sys 0m10.770s
time lfs find /lustre/arm2arm/| wc -l
1454706
real 0m10.468s
user 0m0.959s
sys 0m5.521s
#!/bin/bash
[ ! -d /sys/kernel/debug/x86 ]&& mount -t debugfs debugfs /sys/kernel/debug
echo $1 > /sys/kernel/debug/x86/pti_enabled
echo $1 > /sys/kernel/debug/x86/ibrs_enabled
echo $1 > /sys/kernel/debug/x86/ibpb_enabled
#!/bin/bash
Q:Why should I disable the protection?[ ! -d /sys/kernel/debug/x86 ]&& mount -t debugfs debugfs /sys/kernel/debug
echo $1 > /sys/kernel/debug/x86/pti_enabled
echo $1 > /sys/kernel/debug/x86/ibrs_enabled
echo $1 > /sys/kernel/debug/x86/ibpb_enabled
https://build.hpdd.intel.com/job/lustre-b2_10/arch=x86_64,build_type=client,distro=el7,ib_stack=inkernel/
/bin/bash /sbin/dkms build -m lustre-client -v 2.10.2_RC1 -k 3.10.0-693.5.2.el7.x86_64
dkms status1) dkms --force remove -m lustre-client -v 2.10.2_RC1 -k 3.10.0-693.5.2.el7.x86_64
lustre-client, 2.10.2_RC1, 3.10.0-693.5.2.el7.x86_64, x86_64: installed (original_module exists) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!)
nmap -sV --script ssl-enum-ciphers -p 443 remote.server.my
LDISKFS-fs (sda): Unrecognized mount option "context="unconfined_u:object_r:user_tmp_t:s0"" or missing valueBut Selinux is disabled so we should remove that mount options.
tunefs.lustre --mountfsoptions="user_xattr,errors=remount-ro" /dev/sdamount a expected.
lfs df /archiveIf the OST got corrupted then file attributes are still on MDS so we can filter all corrupted files by following:
UUID 1K-blocks Used Available Use% Mounted on
arch-MDT0000_UUID 99428812 44432680 48286884 48% /archive[MDT:0]
arch-OST0000_UUID 63838042896 46275072544 14344891120 76% /archive[OST:0]
arch-OST0001_UUID 63838042896 46036859640 14583104024 76% /archive[OST:1]
arch-OST0002_UUID 63838042896 34406650692 26213311960 57% /archive[OST:2]
arch-OST0003_UUID 63838042896 39355270936 21264676344 65% /archive[OST:3]
arch-OST0004_UUID 63838042896 7102256308 53517690972 12% /archive[OST:4]
lfs find /archive --ost 4 -type f | xargs -I% sh -c "[ ! -f % ]&& echo %" | tee -a recover/todo/OST04-corrupted.txtthis is assuming that files does not contain spaces or nasty characters. For the general case one should use python script for the proper handling of the filenames.
cat recover.sh
#!/bin/bash
file=$1
cat $file | xargs -I{} sh -c "[ -f \"/backup{}\" ]&&echo 'unlink \"{}\";cp -a \"/backup{}\" \"{}\"' "| parallel --progress --eta
./recover.sh recover/todo/OST04-corrupted.txt
bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi