• HEADS UP, Linux, Networking 06-14-2011 Comments Off

    ETHTOOL_OPTS=”autoneg off speed 100 duplex full”

  • HEADS UP 05-15-2011 Comments Off

    _allow_resetlogs_corruption=TRUE

    This will at least allow you to open the database, then perform an export. It is NOT recommended that the database continue production operations as it will definitely crash in the near future.

  • Linux, Vertias, VxFS 05-12-2011 Comments Off
    Scan the fibre and re-read the device maps:
    /opt/QLogic_Corporation/ql-dynamic-tgt-lun-disc-2.5/ql-dynamic-tgt-lun-disc.sh
    
    vxdctl initdmp
    vxdctl enable
    
    vxdisk list #will show something similar to:
    fas60801_40  auto            -            -            error
    
    verify the 'FAS' number from sanlun output to make sure we are working with the correct device!
    
    #Initialize the new disk
    vxdisksetup -i fas60801_40
    vxdisk list #will now show the disk online:
    fas60801_40  auto:cdsdisk    -            -            online thinrclm
    
    To create a volume in an existing disk group:
    vxdg -g DGNAME adddisk DGNAME-Disk=FAS60800_27
    ex: vxdg -g proddg adddisk proddg-redoDisk=FAS60800_27
    
    # see how big we can make a concat on the new disk
    vxassist -b -g proddg maxsize layout=concat proddg-redoDisk
    output will be like this:
    Maximum volume size: nnnnnnn (XXXXMb)
    
    # make the volume
    vxassist -b -g proddg make proddg-redoVol XXXXm layout=concat proddg-redoDisk
    
    # mkfs.vxfs /dev/vx/rdsk/proddg/proddg-redoDisk
    
    # then mount it up and off you go!
    
    For a new disk group:
    #Initialize the new disk group
    vxdg init SOMETHING_dg SOMETHING-1=fas60801_40
    
    vxdisk -o alldgs list
    will now show the new disk in its new group:
    fas60801_40  auto:cdsdisk    SOMETHING-1  SOMETHING_dg online thinrclm
    
    #Create logical volume and filesystem
    
    vxassist -g SOMETHING_dg make SOMETHING-vol1  SOMETHING-1
    
    #make the filesystem
    /usr/lib/fs/vxfs/mkfs -t vxfs -o largefiles /dev/vx/rdsk/SOMETHING_dg/SOMETHING-vol1
    
    #Mount up the filesystem
    mount -t vxfs /dev/vx/rdsk/SOMETHING_dg/SOMETHING-vol1 /where/ever
    
  • Linux, NFS 05-06-2011 Comments Off

    for i in `mount|grep nfs|awk ‘{print $3}’`; do echo -n “testing $i now…”; cd $i; ls|wc -l; cd; done

  • Vertias, VxFS 04-28-2011 Comments Off

    see all available disk groups:
    vxdisk -o alldgs list

    Import a DG:
    vxdg import DG_NAME

    Start the volumes:
    vxvol -g DG_NAME startall

  • Windows XP 04-27-2011 Comments Off

    compmgmt.msc —- computer management
    to go directly user n groups —- lusrmgr.msc
    to create direct user — nusrmgr.cpl

  • MQ 03-14-2011 Comments Off

    dis qs(QNAME) type(HANDLE) opentype(INPUT) conname appltag

  • VMWare 03-01-2011 Comments Off

    # list paths to the LUNs
    esxcfg-mpath -l

    # remount datastores
    vmkfstools -V

    # ‘top’
    esxtop

    # restart management service (for VCenter)
    service mgmt-vmware restart

  • HEADS UP, Linux 02-24-2011 Comments Off

    The script will need to run thru a wrapper, or the OS will ignore the setuid bit altoghether. Compile the following C program and make it setuid, and it will work:

    #include 
    #include 
    
    int main(int argc, char *argv[])
    {
    argv[0] = "some_script_path";
    
    setreuid(geteuid(), -1);
    execv(argv[0], argv);
    exit(1);
    }
    
  • HEADS UP, Solaris 02-22-2011 Comments Off

    connecting to sun blades

    start /CH/blade/SP/cli
    start SP/console