본문 바로가기

Linux

[LINUX] hpacucli 온라인 raid 재구성 [ 삭제시 ] => ctrl all show config Smart Array P410i in Slot 0 (Embedded) (sn: 5001438023108980) logicaldrive 1 (279.4 GB, RAID 1, OK) array A (SAS, Unused Space: 0 MB) physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 300 GB, OK) physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 300 GB, OK) logicaldrive 2 (279.4 GB, RAID 1, OK) array B (SAS, Unused Space: 0 MB) physicaldrive 1I:1:3 (port 1I:box 1:bay .. 더보기
[LINUX] 500 OOPS: cannot change directory 에러 발생시 [증상] [root@test sysconfig]# ftp localhost Connected to CMMOBIGEN. 220 (vsFTPd 2.2.2) 530 Please login with USER and PASS. Name (localhost:root): hpk 331 Please specify the password. Password: 500 OOPS: cannot change directory:/home/hpk Login failed. [해결책] setsebool 을 이용하여 FTP접속시 디렉토리 접근을 할수 있게 변경 #setsebool -P ftp_home_dir 1 #service vsftpd restart #setsebool -P ftpd_disable_trans 1 더보기
CentOS 6.3 hp-health 오류시 수정방법 1. # /etc/init.d/mcelogd stop 2. # /etc/init.d/hp-health start 3. # /etc/init.d/mcelogd start 4. # /etc/init.d/mcelogd status Checking for mcelog mcelog (pid 13879) is running... 5. # vi /etc/init.d/hp-health # chkconfig: 2345 91 2 을 아래와 같이 수정 # chkconfig: 2345 31 2 6. # /sbin/chkconfig --del hp-health 7. # /sbin/chkconfig --add hp-health ----- 원문 내용 ----- Fix for hp-health on DL100 series runni.. 더보기
로컬시간 strings 이 있는곳 /usr/share/zoneinfo/Asia TZif2 Dp!n=`" &p#N TZif2 !n=` KST-9 더보기
파일이 있지 않으나 용량확보가 되어있지 않는경우 디렉토리에 용량이 많지 않으나 많은 양의 데이터가 있는것으로 나온다면 프로세스가 돌고있는동안 파일을 지웠을경우 발생된다. sendmail 4933 ilms 3uW REG 104,11 3692077056 696189 /var/spool/clientmqueue/dfp0I4Z29D004933 (deleted) 이와같이 (deleted)라고 나와있으나 3692077056 의 용량이 지워지지않은체 삭제되었다면 관련 프로세스를 재시작하게되면 해결된다.lsof 가 실행이 안되면 yum install lsof 로 설치 후 다음과 같이 사용하면 됩니다. [관련 command] lsof 로 확인가능, ( #lsof /var )[root@sam ~]# lsof |grep deletedpython 13730 root 4r R.. 더보기
HPFS/NTFS mount #mount -t ntfs-3g /dev/sda? /mnt/temp 더보기
***.src.rpm 설치방법 #rpm -Uvh ***.src.rpm /usr/src/redhat/SPEC안에 **.spec 리빌딩 #rpmrebuild -bb ***.spec /usr/src/redhat/RPMS/ 안의 rpm 파일 다시 설치 #rpm -Uvh ***.rpm 더보기
e2label, tune2fs 명령어 (LEBEL 정보 변경 command) /etc/fstab 의 정보들을 보면 LABEL=/ / ext3 defaults 1 1 LABEL=/boot /boot ext3 defaults 1 2 LABEL=/tmp /tmp ext3 defaults 1 2 LABEL=/export/home /export/home ext3 defaults 1 2 LABEL=/var /var ext3 defaults 1 2 tmpfs /dev/shm tmpfs defaults 0 0 LABEL=/disk1 /disk1 ext3 defaults 1 2 LABEL=/disk2 /disk2 ext3 defaults 1 2 LABEL=/disk3 /disk3 ext3 defaults 1 2 LABEL=/disk4 /disk4 ext3 defaults 1 2 devpts /d.. 더보기
how to use "find" command for linux find 명령어 사용법 find 명령어는 파일 시스템에서 주어진 조건으로 파일을 찾는다. 사용법을 살펴보자. find 대상디렉토리 검색 조건 처리 방법 대상 디렉토리 : 찾기를 시작할 디렉토리를 지정한다. 검색 조건 : 찾을 조건을 지정한다. -name filename 파일 이름으로 찾는다. -atime +n access time 이 n일 이전인 파일을 찾는다. -atime -n access time이 n일 이내인 파일을 찾는다. -mtime +n n일 이전에 변경된 파일을 찾는다. -mtime -n n일 이내에 변경된 파일을 찾는다. -perm nnn 파일 권한이 nnn인 파일을 찾는다. -type x 파일 타입이 x인 파일들을 찾는다. -size n 사이즈가 n이상인 파일들을 찾는다. -links n.. 더보기