แสดงบทความที่มีป้ายกำกับ solaris แสดงบทความทั้งหมด
แสดงบทความที่มีป้ายกำกับ solaris แสดงบทความทั้งหมด

วันพฤหัสบดีที่ 12 มิถุนายน พ.ศ. 2557

วันจันทร์ที่ 26 พฤษภาคม พ.ศ. 2557

Solaris : การทำ auto run script ตอนเครื่อง startup

Standard
     วิธีการทำ autorun script สำหรับตอนที่เครื่อง startup

  1. สร้างไฟล์ไว้ที่ /etc/init.d/FILE_NAME , chmod 755  แล้วใส่ script ตามนี้ 
  2. case "$1" in
        start)
            /usr/local/bin/EXECUTE_SCRIPT
            ;;
        stop)
            kill -9 /usr/local/bin/EXECUTE_SCRIPT.pid
            ;;
    esac

Solaris : การทำ Active - Standby บน Network Interface Card ด้วย IPMP

Standard
     การทำ Active - Standby ที่ขา Interface ของ Solaris 10 เพื่อกันกรณีที่ Link มีปัญหาหรือขาดแล้ว Server ไม่สามารถทำงานต่อได้โดยใช้ IP เดิม

   

วันศุกร์ที่ 8 พฤศจิกายน พ.ศ. 2556

Solaris : Config samba on solaris 10

Standard

  1. ตรวจสอบ package ว่ามีในเครื่องหรือไม่ 
  2. #pkginfo -x | grep -i samba
    SUNWsmbac samba - A Windows SMB/CIFS fileserver for UNIX (client)
    SUNWsmbar samba - A Windows SMB/CIFS fileserver for UNIX (Root)
    SUNWsmbau samba - A Windows SMB/CIFS fileserver for UNIX (Usr)
  3. หา path ของไฟล์ config
  4. #pkgchk -l SUNWsmbar | grep conf-example 
    Pathname: /etc/samba/smb.conf-example
  5. ตรวจสอบว่า service ของ samba ทำงานหรือไม่
  6. #svcs -a | grep samba
    disabled  22:56:55 svc:/network/samba:default
  7. เปิด service samba ด้วยคำสั่ง
  8. #svcadm enable samba




ปล1. add user เข้า samba ด้วย
#smbpasswd -a user
ปล2.disable service
#svcadm disable samba


Ref : http://nasir-zeeshan.blogspot.com/2013/03/how-to-configure-samba-in-oracle.html

วันพฤหัสบดีที่ 3 ตุลาคม พ.ศ. 2556

build tftp (tftp-hpa) for solaris

Standard
     ปัญหาของ tftp ใน solaris 10 ที่ไม่สามารถ get หรือ put file ด้วย single command ได้เลยต้องไปหา tftp client แบบอื่นมาลง เคยได้ใช้ของ Red Hat ซึ่งมันก็โอเคก็เลยไปหามา มันชื่อ tftp-hpa ซึ่งวิธีการคอมไฟล์ก็ง่ายแสนง่าย ลองดูกันครับ
  1. Download Source Code จาก 
  2. https://www.kernel.org/pub/software/network/tftp/tftp-hpa/
  3. extract file ใช่คำสั่ง  ./configure เพื่อสร้าง Makefile
  4. gmake เพื่อ compile 
  5. ไฟล์ binary จะอยู่ที่ 
  6. tftp-hpa-5.2/tftp/tftp
วิธีใช้ก็
tftp 192.168.1.1 -c get /path_file/filename.txt


วันพุธที่ 20 มีนาคม พ.ศ. 2556

SPARC Enterprise T5440 Manage Hardware RAID Volume

Standard
- Start to Single User Mode
#boot cdrom -s  

-Determine name of RAID volume
#raidctl

-Delete volume
#raidctl -d [volume-name]
  Ex raidctl -d c0t0d0


-Create RAID volume
#raidctl -c [primary] [secondary]
   Ex #raidctl -c c0t0d0 c0t1d0


กรณีพิมพ์คำสั่ง Format ที่ Single User Mode แล้วไม่เจอ Disks ให้ลอง
ไปที่ OK Prompt แล้วใช้คำสั่ง probe-scsi-all