Thursday, January 1, 2009

HP-UX reviewer

naks, kala nyo genius ako sa HP-UX? Kodigo ko lang ito in case of emergency..ito ung laman ng halo-halo.txt na naka-save sa lagi kong dala na vintage 128mb flash disk tuwing may duty ako.

HP-UX: Disk and Filesystem tasks
  • Search for attached disk
    ioscan -fnC disk
  • Initialize a disk for use with LVM
    pvcreate -f /dev/rdsk/c0t1d0
  • Create the device structure needed for a new volume group.
    cd /dev
    mkdir vgdata
    cd vgdata
    mknod group c 64 0x010000
  • Create volume group vgdata
    vgcreate vgdata /dev/dsk/c0t1d0
    { if your expecting to use more than 16 physical disks use the -p option, range from 1 to 256 disks. }
  • Display volume group vgdata
    vgdisplay -v vg01
  • Add another disk to volume group
    pvcreate -f /dev/rdsk/c0t4d0
    vgextend vg01 /dev/dsk/c0t4d0

  • Remove disk from volume group
    vgreduce vg01 /dev/dsk/c0t4d0
  • Create a 100 MB logical volume lvdata
    lvcreate -L 100 -n lvdata vgdata
    newfs -F vxfs /dev/vgdata/rlvdata
  • Extend logical volume to 200 MB
    lvextend -L 200 /dev/vgdata/lvdata
  • Extend file system to 200 MB

    :: NO online JFS installed
    fuser -ku /dev/vgdata/lvdata { kill all process that has open files on this volume. }
    umount /dev/vgdata/lvdata
    extendfs /data

    ::Online JFS {ex. 200 MB / 4 MB = 50 LE; 50 x 1024 = 51200 blocks }
    fsadm -F vxfs -b 51200 /data
  • Set largefiles to support files greater than 2GB
    fsadm -F vxfs -o largefiles /data

Paunawa:kung hindi maintindihan, magtanong sa katabing ofismate...more to come.

No comments:

Post a Comment