Dokumentasi untuk Stop Sync RAID
ini dulu
mdadm --manage /dev/md1 --fail /dev/sdb2
baru ini
mdadm --manage /dev/md1 --remove /dev/sdb2
mengaktifkan kembali
mdadm -a /dev/md1 /dev/sdb2
Your Hosting Tutorial & shell scripting admin
Showing posts with label server. Show all posts
Showing posts with label server. Show all posts
chkserv configuration
chkservd is a service running on all cPanel®
servers which monitors the state of processes.
● chkserv.d can be controlled using the
command:
– /etc/init.d/chkservd (start|stop|restart)
– /usr/local/etc/rc.d/chkservd.sh (start|stop|restart)
● The chkservd perl script is located at /
usr/local/cpanel/libexec/chkservd
You can add and remove services to be monitored
from chkservd by the files in /
etc/chkserv.d/
● You must also add the service to the chkservd.
conf with the following syntax:
service:1
● Each service has a indiviual file inside of /
etc/chkserv.d/ with the following syntax:
– #SERVICE = PORT, SEND, RESPONSE, RESTART
COMMANDYou can add and remove services to be monitored
from chkservd by the files in /
etc/chkserv.d/
● You must also add the service to the chkservd.
conf with the following syntax:
service:1
● Each service has a indiviual file inside of /
etc/chkserv.d/ with the following syntax:
– #SERVICE = PORT, SEND, RESPONSE, RESTART
COMMAND
servers which monitors the state of processes.
● chkserv.d can be controlled using the
command:
– /etc/init.d/chkservd (start|stop|restart)
– /usr/local/etc/rc.d/chkservd.sh (start|stop|restart)
● The chkservd perl script is located at /
usr/local/cpanel/libexec/chkservd
You can add and remove services to be monitored
from chkservd by the files in /
etc/chkserv.d/
● You must also add the service to the chkservd.
conf with the following syntax:
service:1
● Each service has a indiviual file inside of /
etc/chkserv.d/ with the following syntax:
– #SERVICE = PORT, SEND, RESPONSE, RESTART
COMMANDYou can add and remove services to be monitored
from chkservd by the files in /
etc/chkserv.d/
● You must also add the service to the chkservd.
conf with the following syntax:
service:1
● Each service has a indiviual file inside of /
etc/chkserv.d/ with the following syntax:
– #SERVICE = PORT, SEND, RESPONSE, RESTART
COMMAND
Linux Disk utilities
fdisk /dev/hda
(= "fixed disk". As root.) Linux hard drive partitioning utility (DOS has a utility with the same name). In the example above, I specified that I would like to partition the first harddrive on the first IDE interface, hence "hda". If I were you, i would backup any important data before using fdisk on any partition. I do not not know anybody who likes fdisk (either Linux or DOS edition)--I prefer easier to use cfdisk, see next command.
cfdisk /dev/hda
(as root) Hard drive partitioning utility, menu-based. Easier to use then the plain-vanilla fdisk (see the previous command). Physical drives can contain primary partitions (max 4 per disk), and logical partitions (no restriction on number). A primary partition can be bootable. Logical partitions must be contained within "extended partitions"; extended partitions are not usable by themselves, they are just a container for logical partitions. When partitioning a disk, I typically: (1) create a primary partition (2) make the primary partition bootable (3) create an extended partition, (4) create logical partition(s) within the extended partition.
Script untuk melihat load pada server
#script gabungan hafidz
echo "Mw tampilan brp baris -script Hafidz ver 0.1-";
#read input
#a="$input"
echo "Mw tampilan brp baris -script Hafidz ver 0.1-";
#read input
#a="$input"
Cara Membuat Partisi Baru di Centos 5.x dengan menggunakan fdisk
maklum pemula dalam linux mo menuangkan sedikit informasi untuk partisi yang mungkin semua master sudah tau, tapi sebagai catatan karena memang sulit menemukan tulisan linux berbasis bahasa indonesia, yach tak bikinin aja untuk mempermudah.. walaupun udah banyak kali y :))
saat penginstalan linux anda sengaja tidak memakai seluruh space anda untuk membuat partisi baru
misalkan di /dev/sda anda, lalu cara untuk membuat partisi barunya adalah :
1. fdisk /dev/sda enter
2. n -> pilihan ini untuk menentukan jumlah kapasitas yang ingin di assign
3. +5000M -> saya assign 5000M atau 5GB
4. t -> pilihan ini untuk menentukan file system dari partisi
5. 1 -> tak pilih primary
6. 83 -> file system linux di tandai dengan angka 83
7. w -> write disk , maka proses akan berjalan untuk mempartisi langkah2 yang tadi kita lakukan,
setelah itu restartlah linux anda dengan menggunakan shutdown -r now, lalu partisi akan tercreate bgitu anda login kembali ke linux anda...
jangan lupa koment yoo.... nulisnya lumayan cape
Pemindahan akun mail ke server lain via ssh
pemindahan biasa kalau menggunakan cpanel tinggal klik maka dengan mudah dapat tercreate, tapi bagaimana jika kita ingin memindahkan file apa aja sich yang harus kita pindahkan ini yang buat kita bingung bukan hehehe..
berikut adalah file2 penting yang akan kita pindahkan :
- /home/user/mail/namadomain.com -> file ini harus di copykan karena di dalam file ini terdapat data-data dari email klient
- /home/user/etc/namadomain.com -> file ini berisikan password dari masing-masing email klient anda
- /home/user/cpanel/email.yaml -> file ini berisi email-email user yang tercatat di cpanel
tiga direktori di atas sangat lah penting dalam pemindahan email secara manual , semoga bermanfaat, jangan baca doank komen, cape nulisnya
error pty cannot allocation pty
error di atas anda temui ketika anda login ke vps anda, apakah yang terjadi, biasa nya hal tersebut terjadi karena ssh tidak dapat menemukan pty , anda bisa men set nya di :
1. nano /etc/rc.sysint
2. masukan " /sbin/udev "
3. restart dech vps anda
lalu hasinya wah bisa masuk lagi ke ssh waow
