Середа, листопада 22, 2017

Останні записи

Опублікував Автор: Створено: в Soft
Переглядів: 94
0

Опублікував Автор: Створено: в Uncategorized
Переглядів: 210
0

Опублікував Автор: Створено: в Uncategorized

npm update socket.io

https://socket.io/

 

...
Переглядів: 201
0

Опублікував Автор: Створено: в Uncategorized

при будь якій роботі з дисками з яких грузиться лінукс треба обовязково перевіряти налаштування grub

ситуація така, 

в робочій системі яка складалася з raid 1  (mdadm)

...
Переглядів: 208
0

Опублікував Автор: Створено: в Uncategorized
[root var]# mdadm --detail /dev/md126
/dev/md126:
Version : 1.0
Creation Time : Mon Dec 14 12:11:26 2015
Raid Level : raid1
Array Size : 125033344 (119.24 GiB 128.03 GB)
Used Dev Size : 125033344 (119.24 GiB 128.03 GB)
Raid Devices : 3
Total Devices : 2
Persistence : Superblock is persistent

Intent Bitmap : Internal

Update Time : Fri Jun 16 21:50:39 2017
State : active, degraded
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0

Name : localhost.localdomain:ssdraid
UUID : f3c9263f:6ae4f489:1fc15cc0:e38807fc
Events : 794672

Number Major Minor RaidDevice State
2 8 2 0 active sync /dev/sda2
3 8 18 1 active sync /dev/sdb2
4 0 0 4 removed
[roo var]# mdadm -G /dev/md126 --raid-devices=2
raid_disks for /dev/md126 set to 2
[ro28 var]# mdadm --detail /dev/md126
/dev/md126:
Version : 1.0
Creation Time : Mon Dec 14 12:11:26 2015
Raid Level : raid1
Array Size : 125033344 (119.24 GiB 128.03 GB)
Used Dev Size : 125033344 (119.24 GiB 128.03 GB)
Raid Devices : 2
Total Devices : 2
Persistence : Superblock is persistent

Intent Bitmap : Internal

Update Time : Fri Jun 16 21:53:38 2017
State : active
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0

Name : localhost.localdomain:ssdraid
UUID : f3c9263f:6ae4f489:1fc15cc0:e38807fc
Events : 795199

Number Major Minor RaidDevice State
2 8 2 0 active sync /dev/sda2
3 8 18 1 active sync /dev/sdb2
Позначки: mdadm raid
Переглядів: 204
0

Опублікував Автор: Створено: в Uncategorized

прошивку качати тут :https://www.broadcom.com/support/download-search/?pg=&pf=&pn=SAS+9211-8i+Host+Bus+Adapter&po=&pa=&dk=#tab-current-Firmware

IR - Integrated RAID

IT- Initiator-Target, (Host Bus Adapter HBA)

...
Позначки: lsi raid sas
Переглядів: 252
0

Опублікував Автор: Створено: в Uncategorized

аємо клон IMAX B6 на контролері  ATMEGA32A куплений за 15$ з копійками

потім докуплено на аліекспресі USBISP USBASP  AVR Programmer 1,2$

основні ссилки:

https://youtu.be/hfklF_EA1tk

https://github.com/stawel/cheali-charger

https://github.com/stawel/cheali-charger/blob/master/docs/flashing.md

http://www.fischl.de/usbasp/

Переглядів: 394
5 1

Опублікував Автор: Створено: в Uncategorized

/вираз/ між ці дві риски поміщаємо вираз

/вираз/ i символ і означає прапорець

 

...
Переглядів: 300
0

Опублікував Автор: Створено: в Uncategorized
# memtester 5000 1
memtester version 4.2.1 (64-bit)
Copyright (C) 2010 Charles Cazabon.
Licensed under the GNU General Public License version 2 (only).

pagesize is 4096
pagesizemask is 0xfffffffffffff000
want 5000MB (5242880000 bytes)
got 5000MB (5242880000 bytes), trying mlock ...locked.
Loop 1/1:
Stuck Address : ok
Random Value : ok
Compare XOR : ok
Compare SUB : ok
Compare MUL : ok
Compare DIV : ok
Compare OR : ok
Compare AND : ok
Sequential Increment: ok
Solid Bits : ok
Block Sequential : ok
Checkerboard : ok
Bit Spread : ok
Bit Flip : ok
Walking Ones : ok
Walking Zeroes : ok
8-bit Writes : ok
16-bit Writes : ok

Done.
Переглядів: 296
0

Опублікував Автор: Створено: в Uncategorized

[ro47 ~]# upsc -l
myups
[ro47 ~]# upsc myups

battery.charge: 100
battery.charge.low: 10
battery.charge.warning: 50
battery.mfr.date: 20xxxxx4
battery.runtime: 3060
battery.runtime.low: 120
battery.temperature: 31.5
battery.type: PbAc
battery.voltage: 27.4
battery.voltage.nominal: 24.0
device.mfr: American Power Conversion
device.model: Smxxxxx00
device.serial: ASxxxxxxxxx
device.type: ups
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.version: 2.6.5
driver.version.data: APC HID 0.95
driver.version.internal: 0.37
input.sensitivity: high
input.transfer.high: 253
input.transfer.low: 208
input.transfer.reason: input voltage out of range
input.voltage: 216.0
output.current: 1.45
output.frequency: 50.0
output.voltage: 216.0
output.voltage.nominal: 220.0
ups.beeper.status: enabled
ups.delay.shutdown: 20
ups.delay.start: 30
ups.firmware: 652.12.I
ups.firmware.aux: 4.2
ups.load: 42.9
ups.mfr: American Power Conversion
ups.mfr.date: 20xxxxxx9
ups.model: Smxxxxxxxxx0
ups.productid: 0002
ups.serial: Axxxxxxxxxx
ups.status: OL
ups.test.result: No test initiated
ups.timer.reboot: -1
ups.timer.shutdown: -1
ups.timer.start: -1
ups.vendorid: 051d

 

...
Позначки: ups
Переглядів: 311
0

Опублікував Автор: Створено: в Uncategorized
Переглядів: 367
0

Опублікував Автор: Створено: в Uncategorized

приблизно така задача

треба пропихнути socket.io через apache

приблизно принцип роботи такий 

...
Позначки: httpd socket.io
Переглядів: 316
0

Опублікував Автор: Створено: в Uncategorized

https://forum.xda-developers.com/s7-active/how-to/s7-active-sm-g891a-ota-updates-firmware-t3540866/page9

First number after S or U is bootloader number, in S7 Edge we have U4BQA6 witch red number indicate that bootloader is V4
U or S - Update Software or Security Update
4 - number after S or U Bootloader version
B - next version of Android. In example if last (6.1.1) was A next (7.0) will be B
Q - Year, A will be 01, Q- is 17
A - Month of creation of software , A-January, last one was K with was November we did not have L - December (edge users) because last security patch is from November. 
Last number is version of software patch , can be multiple for same month release on different month

 

...
Позначки: s7 active
Переглядів: 304
0

Опублікував Автор: Створено: в Uncategorized
Позначки: iptables Linux raid
Переглядів: 966
0

Опублікував Автор: Створено: в Uncategorized

https://ma.ttias.be/enable-disable-service-at-boot-on-centos-7/

This post will show you how to enable or disable a service to start on boot, on a RHEL or CentOS 7.

Check if the service starts on boot

You manage your services on RHEL/CentOS 7 through systemctl, the systemd service manager.

...
Переглядів: 1166
0

Опублікував Автор: Створено: в Uncategorized
фаервол в LinuxДоброго времени, читатели и гости моего блога. C этой статьи начну серию статей о подсистеме Netfilter/iptables в Linux. В данной статье приведу основные понятия работы netfilter в Linux. Для понимания данной темы, обязательно советую ознакомиться со статьями Основные понятия сетей,Настройка сети в Linux, диагностика и мониторинг и Настройка и управление сетевой подсистемой Linux (iproute2).
Переглядів: 563
0

Опублікував Автор: Створено: в Uncategorized

https://access.redhat.com/solutions/255093

 

Issue

  • We're planning to purchase and roll out a bunch of new servers loaded up with solid-state disks in hardware-raid configurations and want to get some definitive answers from Red Hat regarding the statements below from the RHEL 6 Storage Administration Guide, i.e., does any of it apply to hardware raid?

    In addition, keep in mind that MD (software raid) does not support discards. In contrast, the logical volume manager (LVM) and the device-mapper (DM) targets that LVM uses do support discards. The only DM targets that do not support discards are dm-snapshot, dm-crypt, and dm-raid45. Discard support for the dm-mirror was added in Red Hat Enterprise Linux 6.1.

    Red Hat also warns that software RAID levels 1, 4, 5, and 6 are not recommended for use on SSDs. During the initialization stage of these RAID levels, some RAID management utilities (such as mdadm) write to all of the blocks on the storage device to ensure that checksums operate properly. This will cause the performance of the SSD to degrade quickly.

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/ch-ssd.html

Переглядів: 506
0

Опублікував Автор: Створено: в Uncategorized

echo writemostly >  /sys/block/md127/md/dev-sde1/state

You can enable "write-mostly" for a RAID component in the following way:

echo writemostly > /sys/block/md6/md/dev-sdc6/state and disable it this way:

echo -writemostly > /sys/block/md6/md/dev-sdc6/state If for some reason you cannot set a component of a RAID1 to "write-mostly", you can kick it from the array and re-add it with the write-mostly flag active. This will temporarily lower your redundancy level. Backup before doing this is recomended.

To set /dev/sdc6 from the last example to "write-mostly" would work as follows:

To kick, first set it to "faulty":

mdadm --fail /dev/md6 /dev/sdc6 Then kick it:mdadm --remove /dev/md6 /dev/sdc6 Then add it again:mdadm --add /dev/md6 --write-mostly /dev/sdc6 Wait for the RAID1 resync to complete, and /dev/sdc6 will now only be read when needed.

Переглядів: 513
0

Опублікував Автор: Створено: в Uncategorized

https://www.prosinger.net/upgrading-postfix-centos-6-x/

 

(updated Feb 29th 2016)

One problem that can comes up with the fantastic Centos Linux distro is that it sticks to the proven but also old packages. I needed some newer features several times. The only (good) way to upgrade Postfix to the newest package is to build it up from the source.

First, we need the link to the newest package (take a look here). In my case, it’s 2.11 stable, so let’s download it:

cd wget http://cdn.postfix.johnriley.me/mirrors/postfix-release/official/postfix-3.1.0.tar.gz tar xvf postfix-3.1.0.tar.gz cd postfix-3.1.0Now we need to isntall the development packages and the dependencies. These are the packages that I needed but You might need to install more, depending on which features You want to compile into it. For a standard featured Postfix MTA with SASL and MySQL support you’ll need the following:

yum install libdb-devel db4-devel cyrus-sasl cyrus-sasl-devel openssl openssl-devel pcre pcre-devel openldap openldap-devel mysql-develLet’s celan up the makefiles now, and build new ones (because by the supplied makefile Postfix won’t be compiled with SASL and SQL support), and at the end let’s build the whole package:

make clean make tidy make makefiles CCARGS='-fPIC -DUSE_TLS -DUSE_SSL -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -DPREFIX=\\"/usr\\" -DHAS_LDAP -DLDAP_DEPRECATED=1 -DHAS_PCRE -I/usr/include/openssl -DHAS_MYSQL -I/usr/include/mysql -I/usr/include/sasl -I/usr/include' AUXLIBS='-L/usr/lib64 -L/usr/lib64/openssl -lssl -lcrypto -L/usr/lib64/mysql -lmysqlclient -L/usr/lib64/sasl2 -lsasl2 -lpcre -lz -lm -lldap -llber -Wl,-rpath,/usr/lib64/openssl -pie -Wl,-z,relro' OPT='-O' DEBUG='-g' makeThe last step (build) will take a while, depeding on the CPU power of Your Linux box. At this moment, if it maneges to build without errors, you’ll have a ready to upgrade package. If not, you will need to yum groupinstall “Development Tools” and retry.

Regarding the arguments about building the makefile (step 3 above), depending on the features You want built in the new Postfix package please refer to the chapter 4.4 of the Postfix documentation. Basically, I never needed anything more than this, except that sometimes I want to use PgSQL instead of MySQL, then you will need to yum install postgresql-devel package and insert the correct arguments when creating the makefile.

One more note: creating the makefile in this example is done for Centos 6.x x64. If you are building for the 32-bit verion you will have to replace all the /usr/lib64 arguments with /usr/lib.

If everything is errorless, perform the update:

make upgradeDone. Please also read the suggested articles during install about the new features, and sugested changes to the master.cf and main.cf files.
Regarding the package, since You done it by compiling from the source, the RPM package will stay at version 2.6.x but when you finally do a service postfix restart you will see:

Dec 3 09:23:56 one postfix/master[31460]: daemon started — version 3.0.3, configuration /etc/postfix

Good luck!

...
Позначки: postfix
Переглядів: 1482
0

Опублікував Автор: Створено: в Uncategorized
916 echo -e -n "\x50" > /dev/ttyUSB0
917 echo -e -n "\x51" > /dev/ttyUSB0
918 echo -e -n "\x04" > /dev/ttyUSB0
919 echo -e -n "\x51" > /dev/ttyUSB0
920 echo -e -n "\x04" > /dev/ttyUSB0
921 echo -e -n "\x51" > /dev/ttyUSB0
922 echo -e -n "\x04" > /dev/ttyUSB0
923 echo -e -n "\x50" > /dev/ttyUSB0
924 echo -e -n "\x04" > /dev/ttyUSB0
925 echo -e -n "\xff" > /dev/ttyUSB0
926 echo -e -n "\x04" > /dev/ttyUSB0
927 echo -e -n "\xff" > /dev/ttyUSB0
928 echo -e -n "\x04" > /dev/ttyUSB0
929 echo -e -n "\x50" > /dev/ttyUSB0
930 echo -e -n "\xff" > /dev/ttyUSB0
931 echo -e -n "\x04" > /dev/ttyUSB0
932 echo -e -n "\xff" > /dev/ttyUSB0
933 echo -e -n "\x04" > /dev/ttyUSB0
934 echo -e -n "\x50" > /dev/ttyUSB0
935 echo -e -n "\x04" > /dev/ttyUSB0
936 echo -e -n "\x51" > /dev/ttyUSB0
937 echo -e -n "\x04" > /dev/ttyUSB0
938 echo -e -n "\x51" > /dev/ttyUSB0
939 echo -e -n "\x04" > /dev/ttyUSB0
940 echo -e -n "\x51" > /dev/ttyUSB0
941 echo -e -n "\x04" > /dev/ttyUSB0
942 echo -e -n "\x50" > /dev/ttyUSB0
943 echo -e -n "\x04" > /dev/ttyUSB0
944 echo -e -n "\x50" > /dev/ttyUSB0
945 echo -e -n "\x51" > /dev/ttyUSB0
946 echo -e -n "\x04" > /dev/ttyUSB0
947 echo -e -n "\x50" > /dev/ttyUSB0
948 echo -e -n "\x04" > /dev/ttyUSB0
949 echo -e -n "\x50" > /dev/ttyUSB0
950 echo -e -n "\x04" > /dev/ttyUSB0
951 echo -e -n "\x50" > /dev/ttyUSB0
952 echo -e -n "\x04" > /dev/ttyUSB0
953 echo -e -n "\x50" > /dev/ttyUSB0
954 echo -e -n "\x04" > /dev/ttyUSB0
955 echo -e -n "\x50" > /dev/ttyUSB0
956 echo -e -n "\x51" > /dev/ttyUSB0
957 echo -e -n "\x04" > /dev/ttyUSB0
958 echo -e -n "\x50" > /dev/ttyUSB0
959 echo -e -n "\x04" > /dev/ttyUSB0
960 echo -e -n "\x50" > /dev/ttyUSB0
961 echo -e -n "\x51" > /dev/ttyUSB0
962 echo -e -n "\x04" > /dev/ttyUSB0
963 echo -e -n "\x51" > /dev/ttyUSB0
964 echo -e -n "\x04" > /dev/ttyUSB0
965 echo -e -n "\x51" > /dev/ttyUSB0
966 echo -e -n "\x04" > /dev/ttyUSB0
967 echo -e -n "\x51" > /dev/ttyUSB0
Переглядів: 1310
0