Jump to content

dw5304

Active Members
  • Posts

    22
  • Joined

  • Last visited

Posts posted by dw5304

  1. I will agree w/ above post. Working in a large corp, you do not have alot of say in whats going on. In the smaller environments you have more of a chance to deal with issues head on. Around here a typical day 100 - 200 phone calls from customers that are asking normal questions my computer is broke how do i fix and stuff related.

  2. look into clark connect.

    pro version

    $85 per year w/ a $25 /yr intrusion detection system for the low budget range, also is ready to go with close to nothing for configuration.

    they have a community version that is free but u will still need to buy an intrusion license at 30$/yr

    clarkconnect.com

  3. so after three days of putting w/ it i finally figured it out. I now have a zfs avs iscsi data store. for live data backup.

    Woot +1 for me lol.

    quoted

    Well I have just finished deploying a solution like this for a large web server farm and thought it would be nice to share what we did and how it worked with the larger community. When researching this solution there was quite a lot of information out there but it was all in different contexts and none of it directly related to each other.

    By the end of this how to you will have a solution somewhat similar to the below.

    To achieve this you will need :

    * 2 servers for the file servers, we used a pair of IBM xSeries each with a single quad 2ghz xeon and 16gb’s of RAM.

    * A dedicated gig switch I prefer L2 dumb switches for this sort of application as it lessens the chance of performance issues stemming from L3 and vlan tagging.

    * 2 iSCSI chassis – we used Inforend Eonstor’s (A12E-G2121-2 to be exact), we chose to back the file servers with these iSCSI shelfs due to the fact we had two. If we had not had these two shelfs then it is quite likely that we would have used something like an IBM DS3200.

    * A spare gig nic in each of the servers you want to hook into the storage

    * 2 4 port gig nic’s for the file servers.

    The first step is to install OpenSolaris on the servers – you can get it here : http://opensolaris.org/os/downloads/

    Once you have OS10 install it on the first server and let it use its defaults – the first thing I do with a new OpenSolaris install is to disable the annoying “boot into gui” note for sun – make solaris default into a console boot, this isnt windows guys or atleast give us an install option to change this

    To disable the guiboot you need to make the following changes to the grub config (/rpool/boot/grub/)

    change the kernel$ line to read “kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS”

    Once this is done you need to set pkg to use dev for its packages (there are some bugs in the iSCSI code that make it panic x64 boxes prior to b106)

    pfexec pkg set-authority -PO http://pkg.opensolaris.org/dev dev

    Then update the server to the latest and greatest release

    pfexec pkg image-update

    Check your menu.lst after you have done this and verify that the system is still going to console boot.

    Once the server is all up to date the real work can begin. I am leaving out details like setting up the ip addressing for the NIC’s as I kinda assume you can do that, if not leave a comment and i will expand the article to cover that too.

    In our case as we had used iSCSI units to hold the disks we ran a pair of cables from the iSCSI to the server and then on the iSCSI we mapped 3 drives to each of its ethernet interfaces. With that done we then setup the iSCSI initiator on the servers like so :

    pfexec pkg install SUNWiscsi

    pfexec iscsiadm add discovery-address 10.0.0.1 (this is interface 1 on the iscsi box)

    pfexec iscsiadm add discovery-address 10.0.1.1 (this is interface 2 on the iscsi box)

    pfexec iscsiadm modify discovery -t enable

    We should now be in a position where the disks are being exported byt the iSCSI unit and the OpenSolaris server will see them – verify this like so :

    pfexec format

    Our output looks as follows

    AVAILABLE DISK SELECTIONS:

    0. c3t0d0

    /pci@0,0/pci8086,25e3@3/pci1014,9580@0/disk@0,0

    1. c5t2d0

    /iscsi/disk@0000iqn.2002-10.com.infortrend,0

    2. c5t3d0

    /iscsi/disk@0000iqn.2002-10.com.infortrend,1

    3. c5t4d0

    /iscsi/disk@0000iqn.2002-10.com.infortrend,2

    4. c5t5d0

    /iscsi/disk@0000iqn.2002-10.com.infortrend,0

    5. c5t6d0

    /iscsi/disk@0000iqn.2002-10.com.infortrend,1

    6. c5t7d0

    /iscsi/disk@0000iqn.2002-10.com.infortrend,2

    You will need to create a zpool on one of the disks temporarily so you can correctly size the sndr bitmap

    zpool create -f temp c5t7d0; zpool destroy temp

    dsbitmap -r /dev/rdsk/c5t7d0s0 | tee /tmp/vol_size

    Now that we have the bitmap sizing done we can go about setting up the disks, the way to do this feels a little hack to me but sadly sun don’t provide a really nice way to do this (the following code comes from http://blogs.sun.com/AVS/entry/avs_and_zfs_seamless)

    # VOL_SIZE="`cat /tmp/vol_size| grep 'size: [0-9]' | awk '{print $5}'`"

    # BMP_SIZE="`cat /tmp/vol_size| grep 'Sync ' | awk '{print $3}'`"

    # SVM_SIZE=$((((BMP_SIZE+((16-1)/16))*16)*2))

    # ZFS_SIZE=$((VOL_SIZE-SVM_SIZE))

    # SVM_OFFS=$(((34+ZFS_SIZE)))

    # echo "Original volume size: $VOL_SIZE, Bitmap size: $BMP_SIZE"

    # echo "SVM soft partition size: $SVM_SIZE, ZFS vdev size: $ZFS_SIZE"

    # find /dev/rdsk/c5*s0 | xargs -n1 fmthard -d 0:4:0:34:$ZFS_SIZE

    # find /dev/rdsk/c5*s0 | xargs -n1 fmthard -d 1:4:0:$SVM_OFFS:$SVM_SIZE

    # find /dev/rdsk/c5*s0 | xargs -n1 prtvtoc |egrep “^ [01]|partition map”

    Re-use the find command from above, with the additional selection of only even numbered disks, placing slice 1 of all selected disks into the SVM metadevice d101

    # find /dev/rdsk/c5*[246]s1 | xargs -I {} echo 1 $1\{} | xargs metainit d101 `find /dev/rdsk/c5*[246]s1 | wc -l`

    Then do the odd numbered disks

    # find /dev/rdsk/c5*[135]s1 | xargs -I {} echo 1 $1\{} | xargs metainit d102 `find /dev/rdsk/c5*[135]s1 | wc -l`

    Now mirror metadevice d101 and d102, into mirror d100 this will give us nice redundancy for the metadata

    # metainit d100 -m d101 d102

    We need to allocate bitmap volumes out of the soft paritions for each SNDR replica

    # OFFSET=1

    # for n in `find /dev/rdsk/c5*s1 | grep -n s1 | cut -d ':' -f1 | xargs`

    do

    metainit d$n -p /dev/md/rdsk/d100 -o $OFFSET -b $BMP_SIZE

    OFFSET=$(((OFFSET + BMP_SIZE + 1)))

    done

    Do the above on both servers and we are almost done, we just have to setup the zpool, NFS and the actual replication.

    To get the replication going you need to do the following (on both servers):

    # DISK=1

    # for ZFS_DISK in `find /dev/rdsk/c5*s0`

    do

    sndradm -nE NODE-A $ZFS_DISK /dev/md/rdsk/d$DISK NODE-B $ZFS_DISK /dev/md/rdsk/d$DISK ip sync g replicated-pool-of-win

    DISK=$(((DISK + 1)))

    done

    NODE-A and NODE-B need to have entries in each others /etc/hosts so that they can find each other.

    We now create the zpool on NODE-A (this will be replicated to NODE-B once thats turned on)

    # find /dev/rdsk/c5*s0 | xargs zpool create replicated-pool-of-win

    Now we will turn on the actual replication

    # sndradm -g replicated-pool-of-win -nu

    # sndradm -g replicated-pool-of-win -P

    # metastat -P

    With that done you can check your handiwork by running this on NODE-B

    # zpool status replicated-pool-of-win

    We now need to setup the NFS clustering

    Register resource types :

    scrgadm -a -t SUNW.HAStoragePlus

    scrgadm -a -t SUNW.nfs

    Create failover resource groups :

    scrgadm -a -g nfs-rg1 -h node-a,node-b -y PathPrefix=/nfs_data -y Failback=true

    Add logical hostname resources to the resource groups :

    scrgadm -a -j nfs-lh-rs1 -L -g nfs-rg1 -l log-name1

    Create dfstab file for each NFS resource :

    mkdir -p /nfs_data/SUNW.nfs /nfs_data/share

    echo 'share -F nfs -o rw /nfs_share/share' > /nfs_data/SUNW.nfs/dfstab.share1

    Configure device groups :

    scconf -c -D name=nfs1,nodelist=node-a:node-b,failback=enabled

    Create HAStoragePlus resources :

    scrgadm -a -j nfs-hastp-rs1 -g nfs-rg1 -t SUNW.HAStoragePlus -x FilesystemMountPoints=/nfs_data -x AffinityOn=True

    Share :

    share -F nfs -o rw /nfs_data/share

    Bring the groups online :

    scswitch -Z -g nfs-rg1

    Create NFS resources :

    scrgadm -a -j share1 -g nfs-rg1 -t SUNW.nfs -y Resource_dependencies=nfs-hastp-rs1

    Change the number of NFS threads – on each node edit the file /opt/SUNWscnfs/bin/nfs_start_daemons -

    instead of

    DEFAULT_NFSDCMD=”/usr/lib/nfs/nfsd -a 16″

    put

    DEFAULT_NFSDCMD=”/usr/lib/nfs/nfsd -a 1024″

    Enable NFS resources :

    scswitch -e -j share1

    Switch resource groups to check the cluster :

    scswitch -z -h node2 -g nfs-rg1

    Now we setup IPMP on both nodes to give us a floating VIP

    On node-a do this :

    cat > /etc/hostname.bge0 << eof

    node1 netmask + broadcast + group sc_ipmp0 up \

    addif 10.1.1.1 netmask + broadcast + -failover -standby deprecated up

    eof

    And on node-b do this :

    cat > /etc/hostname.bge0 << eof

    node2 netmask + broadcast + group sc_ipmp0 up \

    addif 10.1.1.1 netmask + broadcast + -failover -standby deprecated up

    eof

    And we are done – you will now have a fully redundant failover NFS server!

  4. lol that's why i always use silicone around the edges of the box its in.

    iv only had two fail on me in the 3 years I been using it in the outside environment. Getting to the point of replacing them with new one just cause of age.

  5. well its still cheaper then buying a Sonic Wall lol ;).

    RouterBOARD 433' with Atheros 300Mhz CPU, 64MB RAM, three LAN, three MiniPCI, NAND Storage with RouterOS Level 4 (AP support)$99

    802.11a/b/g High Power miniPCI card (with U.fl connector)$59

    (2)2.4-5.8 GHz Swivel Antenna with cable and U.fl connector $30

    $188

    or if u want it in a case

    niversal RB600A Indoor case (4 holes for Nfemale Bulkhead connectors or AC/SWI Swivel antennas) $20

    $208

  6. just use barts pc

    Version 1.03 3-Jan-08 where x: is the XP boot drive

    Barts PE

    2config = CD to x:\windows32\system\config

    2sysvol = CD to x:\System Volume Information

    copy1 = copy snapshot files to x:\1

    copy2 = copy x:\1 snapshot files to x:\…\config

    SetPath = Set path to CD:\XPREGFX automaticly, if not run:

    setpath Cddrive where CDdrive is the cdrom Drive letter no colon

    1. Barts Menu: GO, Command Prompt (CMD). Prompt will be X:\i386\system32

    2. CD \

    3. SetPath

    4. ?: computer boot drive. Normal C:

    5. MD \1 To be used in COPY1

    6. 2CONFIG

    a. Should be in the registery directory ?:\windows\system32\config

    b. MD YYMMDD - Make directory todays date. Where YY=year, MM=month, DD=day

    c. COPY *.* YYMMDD - Copy all files to it. Just in case

    7. 2sysvol System Volume Information

    8. CD _RESTO~1 (normal _resto~1 is only directory, I have see _restor~2 too)

    It will be _restore{lots of number}

    9. DIR

    to find the newest RPxxx directory which is the largest number

    10. CD RPxxx remember you can't backspace pass the endline.

    11. CD SNAPSHOT If there is no SNAPSHOT directory pick another in step 10 CD .. to go back to 10

    12. If you do a DIR you will see_REGISTRY_MACHINE_xxx (4 files) and REGISTRY_USER_.DEFAULT.

    If there is none or one is a zero size go back to step 10 and pick another one.

    14. COPY1

    COPY registry files to directory \1 you made in step 5

    your should have 5 files

    DEFAULT

    SAM

    SECURITY

    SOFTWARE

    SYSTEM

    If you don't your have to use different RPxxx directory. Delete these files first

    I save them here because the last thing you do is set back to the last restore point, and I had corrupted restore

    points.

    15. COPY2 copies the files to the C:\windows\systm32\config folder

    16. EXIT

    17. RESTART to normal windows.

    !YOU MUST GO BACK TO RESTORE POINT, so program and registry match!

    18. Click Start and then click All Programs

    19. Click Accessories and then click System Tools

    20. Click System Restore and then click Restore to a previous Restore Point. The last one created.

    21. If it all works then remove C:\1

    Restore corruptions I have seen is

    1. 5% Bad hard drive or bad memory

    2. 5% Virus

    3. 10% Adware

    4. 80% Unknown

    regfix.rar

  7. so i been experimenting w/ zfs and iscsi allready and have it currently working w/ solaris and esxi/ windows systems.

    I been trying to find a way of including avs into the mix avs is Sun StorageTek Availability Suite.

    http://www.opensolaris.org/os/project/avs/...9CE8DC479389E2A

    has anyone had any experiance w/ this?

    I would like to have a live offsite backup but have not been able to get the remote mirror working.

    sndradm -e localhost /dev/rdsk/c2d0s1 /dev/rdsk/c2d0s0 server1 /dev/rdsk/c2s0s1 /dev/rdisk/c2s0s0 ip sync

    cant no open /dev/rdsk/c2d0s1

    any idea?

  8. simplest solution to make a sub and call the commands u want to run.

    I was assuming that u wanted a nice gui front end yes?

    example of usage.

    exec("cmd.exe", "-i")

    Public Sub exec (exe As String, args as string)

    Dim myProcess2 As Process = New Process

    Dim s2 As String

    Dim e2 As String

    myProcess2.StartInfo.FileName = exe

    myProcess2.StartInfo.UseShellExecute = False

    myProcess2.StartInfo.CreateNoWindow = True

    myProcess2.StartInfo.RedirectStandardInput = True

    myProcess2.StartInfo.RedirectStandardOutput = True

    myProcess2.StartInfo.RedirectStandardError = True

    myProcess2.StartInfo.Arguments = args

    myProcess2.Start()

    Dim sIn2 As StreamWriter = myProcess2.StandardInput

    sIn2.AutoFlush = True

    Dim sOut2 As StreamReader = myProcess2.StandardOutput

    Dim sErr2 As StreamReader = myProcess2.StandardError

    s2 = sOut2.ReadToEnd()

    e2 = sErr2.ReadToEnd()

    Console.WriteLine(s2)

    if e2 = nothing then

    else

    Console.WriteLine("Errors occured:" & e2)

    end if

    If Not myProcess2.HasExited Then

    myProcess2.Kill()

    End If

    sIn2.Close()

    sOut2.Close()

    sErr2.Close()

    myProcess2.Close()

    End Sub

  9. u can allways use vb.net. and call them though that...

    Dim myProcess2 As Process = New Process

    Dim s2 As String

    myProcess2.StartInfo.FileName = file name here

    myProcess2.StartInfo.UseShellExecute = False

    myProcess2.StartInfo.CreateNoWindow = True

    myProcess2.StartInfo.RedirectStandardInput = True

    myProcess2.StartInfo.RedirectStandardOutput = True

    myProcess2.StartInfo.RedirectStandardError = True

    myProcess2.StartInfo.Arguments = ""

    myProcess2.Start()

    Dim sIn2 As StreamWriter = myProcess2.StandardInput

    sIn2.AutoFlush = True

    Dim sOut2 As StreamReader = myProcess2.StandardOutput

    Dim sErr2 As StreamReader = myProcess2.StandardError

    s2 = sOut2.ReadToEnd()

    If Not myProcess2.HasExited Then

    myProcess2.Kill()

    End If

    sIn2.Close()

    sOut2.Close()

    sErr2.Close()

    myProcess2.Close()

  10. iv been looking for a oid class for vb.net.

    Im building a snmp monitor application, and have had issues trying to locate an open source snmp class for getting and setting oids.

    only thing i have found so far is active sockets and well that's not free and i don't have the money to pay for it.

    any ideas?

    atm im using snmpget.exe that is embeded in the exe that is extracted when it boots. but i would like to replace that w/ a snimple snmp class. that will do the same thing.

  11. what we do here at the shop is boot into a bootable barts disk.

    goto the system32 and look for files that do not have a date delete them seeing there malware,

    also sort by date and move the ones that look weird to a new folder,

    then we will check the drivers folders and do the same,

    then delete the temps for windows, ie, user, ect.

    then will go into alluser, local system, and network accounts and make shure that there is nothing missing in there temps as well...

    then ill reboot into safe mode and install malwarebytes

    update it, w/ cd

    let it run

    remove crap it finds

    then ill install avast

    tell it to scan on reboot

    install update for it

    and reboot the pc

    then will log into normal mode and then run malwarebytes again and see if i missed anything

    if nothing returns

    remove avast if customer wants it removed

    defrage hdd

    and set on the shelf for customer

  12. just use snmp to obtain the password. ;)

    usaly the small isps like that do not include a private snmp community string.

    so using private will allow u to walk the router for there user name and password for the unit.

    when the modem comes online it sends a broadcast packet to the cmts (cable modem termination system)

    asking for an ip, tftp server, and config file to download.

    in the config file tells the modem what the speeds are, snmp, passwords, ect.

    miT is right on the legality part... but that's where a lot of people go wrong editing the speeds....

    anyways, the likely hood of editing the speeds are not good. seeing there signed w/ md5, then depending on the isp

    the config will check to make sure the macs and the certs on the modem match. some configs now have a dynamic secrete of witch changes when u save the config. causing u not to be able to log into the network.

  13. the wifi on my acer one died as well...

    just replaced it.

    call acer up and they wanted me to send the unit in....

    talked the guy out of it and then he said he was goiong to ship the part out........

    he shiped the os install disk but no wifi card.

    im wondering if there is an issue w/ the wifi cards in the acer one.

×
×
  • Create New...