===== Tip ===== ==== 일반계정(예:starlits)으로 crontab 사용하기 ==== 아래의 파일을 열어서 계정을 추가한다. # cat /var/adm/cron/cron.allow root adm uucp starlits ==== Listing Device Files with ioscan ==== # ioscan -fun --> list all devices, and their associated device files # ioscan -funC disk --> only list disk class devices and their device files # ioscan -funC tape --> only list tape drives and their device files # ioscan -funH 2/0/1.6.0 --> only list device files for the device at 2/0/1.6.0 ==== RAW Devices 사이즈 확인방법 ==== 05/12 13:09:20 root@soafdb1 /$ ioscan -funC disk Class I H/W Path Driver S/W State H/W Type Description =========================================================================== disk 0 2/0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 73.4GST373453LC /dev/dsk/c0t0d0 /dev/dsk/c0t0d0s2 /dev/rdsk/c0t0d0 /dev/rdsk/c0t0d0s2 /dev/dsk/c0t0d0s1 /dev/dsk/c0t0d0s3 /dev/rdsk/c0t0d0s1 /dev/rdsk/c0t0d0s3 disk 1 2/0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 73.4GMAS3735NC /dev/dsk/c0t1d0 /dev/rdsk/c0t1d0 disk 2 2/0/2/1/0.0.0 sdisk CLAIMED DEVICE HP 73.4GST373453LC /dev/dsk/c2t0d0 /dev/rdsk/c2t0d0 .................. disk 27 2/0/6/1/0/4/0.8.0.22.0.2.5 sdisk CLAIMED DEVICE HP OPEN-V /dev/dsk/c8t2d5 /dev/rdsk/c8t2d5 .................. /$ diskinfo /dev/rdsk/c8t2d5 SCSI describe of /dev/rdsk/c8t2d5: vendor: HP product id: OPEN-V type: direct access size: 20480640 Kbytes bytes per sector: 512 ==== BlockSize 확인 방법 ==== # bdf Filesystem kbytes used avail %used Mounted on /dev/vg00/lvol3 20480000 9366488 11026728 46% / /dev/vg00/lvol1 311296 125128 184752 40% /stand /dev/vg00/lvol4 8192000 16872 8111272 0% /var/adm/crash /dev/vg02/lvol1 71663616 6012030 61548626 9% /oracle /dev/vg04/lvol1 71663616 14430780 53655816 21% /backup /dev/vg03/lvol1 71663616 34646 67152167 0% /archive /dev/vg13/lvol1 511115264 141743 479037683 0% /DATA # fstyp -v /dev/vg00/lvol3 vxfs version: 5 f_bsize: 8192 f_frsize: 8192 f_blocks: 2560000 f_bfree: 1389189 f_bavail: 1378336 f_files: 483488 f_ffree: 347296 f_favail: 347296 f_fsid: 1073741827 f_basetype: vxfs f_namemax: 254 f_magic: a501fcf5 f_featurebits: 0 f_flag: 16 f_fsindex: 9 f_size: 2560000 ==== HP-UX IP Alias ==== * 설정파일을 수정한다. # vi /etc/rc.config.d/netconf * INTERFACE_NAME의 숫자가 중복되어서는 안된다. INTERFACE_NAME[0]="lan1" IP_ADDRESS[0]="61.74.73.91" SUBNET_MASK[0]="255.255.255.128" BROADCAST_ADDRESS[0]="" INTERFACE_STATE[0]="" DHCP_ENABLE[0]=0 INTERFACE_MODULES[0]="" # 추가한 정보 # 기존에 INTERFACE_NAME[1]이 없어야 한다. 대가로번호가 겹쳐서는 안된다. INTERFACE_NAME[1]="lan1:1" IP_ADDRESS[1]="61.74.73.93" SUBNET_MASK[1]="255.255.255.128" BROADCAST_ADDRESS[1]="" INTERFACE_STATE[1]="" DHCP_ENABLE[1]=0 INTERFACE_MODULES[1]="" INTERFACE_NAME[2]="lan1:2" IP_ADDRESS[2]="61.74.73.95" SUBNET_MASK[2]="255.255.255.128" BROADCAST_ADDRESS[2]="" INTERFACE_STATE[2]="" DHCP_ENABLE[2]=0 INTERFACE_MODULES[2]="" * 설정파일을 적용한다. # /sbin/init.d/net start * (팁) 설정파일을 건드리지 않고, 임시적으로 적용하는 방법 # ifconfig lan1:3 192.168.200.200 netmask 255.255.255.0 up ==== HP-UX FileSystem FileSize 제한 확인 ==== soafdb2:/#fsadm -F vxfs /oracle largefiles * largefiles 가 아니면 파일당 2G로 제한된다. ==== HP-UX OS 백업 ==== - 백업할 OS 상태를 확인한다. - DAT Tape을 넣는다. - 아래의 스크립트를 만들어서 돌린다. # cat /tmp/os_backup.sh set -x make_tape_recovery -x inc_entire=vg00 # nohup sh /tmp/os_backup.sh ==== HP-UX Product List 뽑아내기 ==== # swlist -l product > /tmp/list.txt ==== 한글설정 ==== LANG=ko_KR.utf8 또는 LANG=ko_KR.eucKR