Current File : //bin/rescan-scsi-bus.sh
#!/bin/bash
# Script to rescan SCSI bus, using the scsi add-single-device mechanism.
# (c) 1998--2010 Kurt Garloff <kurt@garloff.de>, GNU GPL v2 or v3
# (c) 2006--2018 Hannes Reinecke, GNU GPL v2 or later
# $Id: rescan-scsi-bus.sh,v 1.57 2012/03/31 14:08:48 garloff Exp $

VERSION="20180615"
SCAN_WILD_CARD=4294967295

setcolor ()
{
  red="\e[0;31m"
  green="\e[0;32m"
  yellow="\e[0;33m"
  bold="\e[0;1m"
  norm="\e[0;0m"
}

unsetcolor () 
{
  red=""; green=""
  yellow=""; norm=""
}

echo_debug()
{
  if [ $debug -eq 1 ] ; then
     echo "$1"
  fi
}

# Output some text and return cursor to previous position
# (only works for simple strings)
# Stores length of string in LN and returns it
print_and_scroll_back ()
{
  STRG="$1"
  LN=${#STRG}
  BK=""
  declare -i cntr=0
  while test $cntr -lt $LN; do BK="$BK\e[D"; let cntr+=1; done
  echo -en "$STRG$BK"
  return $LN
}

# Overwrite a text of length $LN with whitespace
white_out ()
{
  BK=""; WH=""
  declare -i cntr=0
  while test $cntr -lt $LN; do BK="$BK\e[D"; WH="$WH "; let cntr+=1; done
  echo -en "$WH$BK"
}

# Return hosts. sysfs must be mounted
findhosts_26 ()
{
  hosts=`find /sys/class/scsi_host/host* -maxdepth 4 -type d -o -type l 2> /dev/null | awk -F'/' '{print $5}' | sed -e 's~host~~' | sort -nu` 
  scsi_host_data=`echo "$hosts" | sed -e 's~^~/sys/class/scsi_host/host~'` 
  for hostdir in $scsi_host_data; do 
    hostno=${hostdir#/sys/class/scsi_host/host}
    if [ -f $hostdir/isp_name ] ; then
      hostname="qla2xxx"
    elif [ -f $hostdir/lpfc_drvr_version ] ; then
      hostname="lpfc"
    else
      hostname=`cat $hostdir/proc_name`
    fi
    #hosts="$hosts $hostno"
    echo_debug "Host adapter $hostno ($hostname) found."
  done  
  if [ -z "$hosts" ] ; then
    echo "No SCSI host adapters found in sysfs"
    exit 1;
  fi
  # Not necessary just use double quotes around variable to preserve new lines
  #hosts=`echo $hosts | tr ' ' '\n'`
}

# Return hosts. /proc/scsi/HOSTADAPTER/? must exist
findhosts ()
{
  hosts=
  for driverdir in /proc/scsi/*; do
    driver=${driverdir#/proc/scsi/}
    if test $driver = scsi -o $driver = sg -o $driver = dummy -o $driver = device_info; then continue; fi
    for hostdir in $driverdir/*; do
      name=${hostdir#/proc/scsi/*/}
      if test $name = add_map -o $name = map -o $name = mod_parm; then continue; fi
      num=$name
      driverinfo=$driver
      if test -r "$hostdir/status"; then
        num=$(printf '%d\n' "$(sed -n 's/SCSI host number://p' "$hostdir/status")")
        driverinfo="$driver:$name"
      fi
      hosts="$hosts $num"
      echo "Host adapter $num ($driverinfo) found."
    done
  done
}

printtype ()
{
  local type=$1

  case "$type" in
    0) echo "Direct-Access" ;;
    1) echo "Sequential-Access" ;;
    2) echo "Printer" ;;
    3) echo "Processor" ;;
    4) echo "WORM" ;;
    5) echo "CD-ROM" ;;
    6) echo "Scanner" ;;
    7) echo "Optical-Device" ;;
    8) echo "Medium-Changer" ;;
    9) echo "Communications" ;;
    10) echo "Unknown" ;;
    11) echo "Unknown" ;;
    12) echo "RAID" ;;
    13) echo "Enclosure" ;;
    14) echo "Direct-Access-RBC" ;;
    *) echo "Unknown" ;;
  esac
}

print02i()
{
    if [ "$1" = "*" ] ; then 
        echo "00"
    else
        printf "%02i" "$1"
    fi
}

# Get /proc/scsi/scsi info for device $host:$channel:$id:$lun
# Optional parameter: Number of lines after first (default = 2), 
# result in SCSISTR, return code 1 means empty.
procscsiscsi ()
{  
  if test -z "$1"; then LN=2; else LN=$1; fi
  CHANNEL=`print02i "$channel"`
  ID=`print02i "$id"`
  LUN=`print02i "$lun"`
  if [ -d /sys/class/scsi_device ]; then
    SCSIPATH="/sys/class/scsi_device/${host}:${channel}:${id}:${lun}"
    if [ -d  "$SCSIPATH" ] ; then
      SCSISTR="Host: scsi${host} Channel: $CHANNEL Id: $ID Lun: $LUN"
      if [ "$LN" -gt 0 ] ; then
        IVEND=$(cat ${SCSIPATH}/device/vendor)
        IPROD=$(cat ${SCSIPATH}/device/model)
        IPREV=$(cat ${SCSIPATH}/device/rev)
        SCSIDEV=$(printf '  Vendor: %-08s Model: %-16s Rev: %-4s' "$IVEND" "$IPROD" "$IPREV")
        SCSISTR="$SCSISTR
$SCSIDEV"
      fi
      if [ "$LN" -gt 1 ] ; then
        ILVL=$(cat ${SCSIPATH}/device/scsi_level)
        type=$(cat ${SCSIPATH}/device/type)
        ITYPE=$(printtype $type)
        SCSITMP=$(printf '  Type:   %-17s                ANSI SCSI revision: %02d' "$ITYPE" "$((ILVL - 1))")
        SCSISTR="$SCSISTR
$SCSITMP"
      fi
    else
      return 1
    fi
  else
    grepstr="scsi$host Channel: $CHANNEL Id: $ID Lun: $LUN"
    SCSISTR=$(grep -A "$LN" -e "$grepstr" /proc/scsi/scsi)
  fi
  if test -z "$SCSISTR"; then return 1; else return 0; fi
}

# Find sg device with 2.6 sysfs support
sgdevice26 ()
{
  local gendev

  gendev=/sys/class/scsi_device/${host}:${channel}:${id}:${lun}/device/generic
  if test -e "$gendev"; then
    SGDEV=$(basename "$(readlink "$gendev")")
  else
    for SGDEV in /sys/class/scsi_generic/sg*; do
      DEV=`readlink $SGDEV/device`
      if test "${DEV##*/}" = "$host:$channel:$id:$lun"; then
        SGDEV=`basename $SGDEV`; return
      fi
    done
    SGDEV=""
  fi  
}

# Find sg device with 2.4 report-devs extensions
sgdevice24 ()
{
  if procscsiscsi 3; then
    SGDEV=`echo "$SCSISTR" | grep 'Attached drivers:' | sed 's/^ *Attached drivers: \(sg[0-9]*\).*/\1/'`
  fi
}

# Find sg device that belongs to SCSI device $host $channel $id $lun
# and return in SGDEV
sgdevice ()
{
  SGDEV=
  if test -d /sys/class/scsi_device; then
    sgdevice26
  else  
    DRV=`grep 'Attached drivers:' /proc/scsi/scsi 2>/dev/null`
    repdevstat=$((1-$?))
    if [ $repdevstat = 0 ]; then
      echo "scsi report-devs 1" >/proc/scsi/scsi
      DRV=`grep 'Attached drivers:' /proc/scsi/scsi 2>/dev/null`
      if [ $? = 1 ]; then return; fi
    fi
    if ! echo "$DRV" | grep -q 'drivers: sg'; then
      modprobe sg
    fi
    sgdevice24
    if [ $repdevstat = 0 ]; then
      echo "scsi report-devs 0" >/proc/scsi/scsi
    fi
  fi
}

# Whether or not the RMB (removable) bit has been set in the INQUIRY response.
# Uses ${host}, ${channel}, ${id} and ${lun}. Assumes that sg_device() has
# already been called. How to test this function: copy/paste this function
# in a shell and run
# (cd /sys/class/scsi_device && for d in *; do set ${d//:/ }; echo -n "$d $(</sys/class/scsi_device/${d}/device/block/*/removable) <> "; SGDEV=bsg/$d host=$1 channel=$2 id=$3 lun=$4 is_removable; done)
is_removable ()
{
  local b p

  p=/sys/class/scsi_device/${host}:${channel}:${id}:${lun}/device/inquiry
  # Extract the second byte of the INQUIRY response and check bit 7 (mask 0x80).
  b=$(od -tx1 -j1 -N1 "$p" 2>/dev/null |
           { read -r _ byte rest; echo -n "$byte"; })
  if [ -n "$b" ]; then
    echo $(((0x$b & 0x80) != 0))
  else
    sg_inq /dev/$SGDEV 2>/dev/null | sed -n 's/^.*RMB=\([0-9]*\).*$/\1/p'
  fi
}

# Test if SCSI device is still responding to commands
# Return values:
#   0 device is present
#   1 device has changed
#   2 device has been removed
testonline ()
{
  local ctr RC RMB

  : testonline
  ctr=0
  RC=0
  # Set default values
  IPTYPE=31
  IPQUAL=3
  if test ! -x /usr/bin/sg_turs; then return 0; fi
  sgdevice
  if test -z "$SGDEV"; then return 0; fi
  sg_turs /dev/$SGDEV >/dev/null 2>&1
  RC=$?

  # Handle in progress of becoming ready and unit attention
  while test $RC = 2 -o $RC = 6 && test $ctr -le 30; do
    if test $RC = 2 -a "$RMB" != "1"; then echo -n "."; let LN+=1; sleep 1
    else sleep 0.02; fi
    let ctr+=1
    sg_turs /dev/$SGDEV >/dev/null 2>&1
    RC=$?
    # Check for removable device; TEST UNIT READY obviously will
    # fail for a removable device with no medium
    RMB=$(is_removable)
    print_and_scroll_back "$host:$channel:$id:$lun $SGDEV ($RMB) "
    test $RC = 2 -a "$RMB" = "1" && break
  done
  if test $ctr != 0; then white_out; fi
  # echo -e "\e[A\e[A\e[A${yellow}Test existence of $SGDEV = $RC ${norm} \n\n\n"
  if test $RC = 1; then return $RC; fi
  # Reset RC (might be !=0 for passive paths)
  RC=0
  # OK, device online, compare INQUIRY string
  INQ=`sg_inq $sg_len_arg /dev/$SGDEV 2>/dev/null`
  if [ -z "$INQ" ] ; then
    echo -e "\e[A\e[A\e[A\e[A${red}$SGDEV changed: ${bold}INQUIRY failed${norm}    \n\n\n"
    return 2
  fi
  IVEND=`echo "$INQ" | grep 'Vendor identification:' | sed 's/^[^:]*: \(.*\)$/\1/'`
  IPROD=`echo "$INQ" | grep 'Product identification:' | sed 's/^[^:]*: \(.*\)$/\1/'`
  IPREV=`echo "$INQ" | grep 'Product revision level:' | sed 's/^[^:]*: \(.*\)$/\1/'`
  STR=`printf "  Vendor: %-08s Model: %-16s Rev: %-4s" "$IVEND" "$IPROD" "$IPREV"`
  IPTYPE=`echo "$INQ" | sed -n 's/.* Device_type=\([0-9]*\) .*/\1/p'`
  IPQUAL=`echo "$INQ" | sed -n 's/ *PQual=\([0-9]*\)  Device.*/\1/p'`
  if [ "$IPQUAL" != 0 ] ; then
    [ -z "$IPQUAL" ] && IPQUAL=3
    [ -z "$IPTYPE" ] && IPTYPE=31
    echo -e "\e[A\e[A\e[A\e[A${red}$SGDEV changed: ${bold}LU not available (PQual $IPQUAL)${norm}    \n\n\n"
    return 2
  fi

  TYPE=$(printtype $IPTYPE)
  if ! procscsiscsi ; then
    echo -e "\e[A\e[A\e[A\e[A${red}$SGDEV removed.\n\n\n"
    return 2
  fi
  TMPSTR=`echo "$SCSISTR" | grep 'Vendor:'`
  if test $ignore_rev -eq 0 ; then
      if [ "$TMPSTR" != "$STR" ]; then
        echo -e "\e[A\e[A\e[A\e[A${red}$SGDEV changed: ${bold}\nfrom:${SCSISTR#* } \nto: $STR ${norm} \n\n\n"
        return 1
      fi
  else
      # Ignore disk revision change
      local old_str_no_rev
      old_str_no_rev=`echo "$TMPSTR" | sed -e 's/.\{4\}$//'`
      local new_str_no_rev
      new_str_no_rev=`echo "$STR" | sed -e 's/.\{4\}$//'`
      if [ "$old_str_no_rev" != "$new_str_no_rev" ]; then
        echo -e "\e[A\e[A\e[A\e[A${red}$SGDEV changed: ${bold}\nfrom:${SCSISTR#* } \nto: $STR ${norm} \n\n\n"
        return 1
      fi
  fi
  TMPSTR=`echo "$SCSISTR" | sed -n 's/.*Type: *\(.*\) *ANSI.*/\1/p' | sed 's/ *$//g'`
  if [ "$TMPSTR" != "$TYPE" ] ; then
    echo -e "\e[A\e[A\e[A\e[A${red}$SGDEV changed: ${bold}\nfrom:${TMPSTR} \nto: $TYPE ${norm} \n\n\n"
    return 1
  fi
  return $RC
}

# Test if SCSI device $host $channel $id $lun exists
# Outputs description from /proc/scsi/scsi (unless arg passed)
# Returns SCSISTR (empty if no dev)
testexist ()
{
  : testexist
  SCSISTR=
  if procscsiscsi && test -z "$1"; then
    echo "$SCSISTR" | head -n1
    echo "$SCSISTR" | tail -n2 | pr -o4 -l1
  fi
}

# Returns the list of existing channels per host
chanlist ()
{
  local hcil
  local cil
  local chan
  local tmpchan

  for dev in /sys/class/scsi_device/${host}:* ; do
    [ -d $dev ] || continue;
    hcil=${dev##*/}
    cil=${hcil#*:}
    chan=${cil%%:*}
    for tmpchan in $channelsearch ; do
      if test "$chan" -eq $tmpchan ; then
        chan=
      fi
    done
    if test -n "$chan" ; then
      channelsearch="$channelsearch $chan"
    fi
  done
  if test -z "$channelsearch"; then channelsearch="0"; fi
}

# Returns the list of existing targets per host
idlist ()
{
  local tmpid
  local newid
  local oldid

  oldlist=$(ls /sys/class/scsi_device/ | sed -n "s/${host}:${channel}:\([0-9]*:[0-9]*\)/\1/p" | uniq)
  # Rescan LUN 0 to check if we found new targets
  echo "${channel} - 0" > /sys/class/scsi_host/host${host}/scan
  newlist=$(ls /sys/class/scsi_device/ | sed -n "s/${host}:${channel}:\([0-9]*:[0-9]*\)/\1/p" | uniq)
  for newid in $newlist ; do
    oldid=$newid
    for tmpid in $oldlist ; do
      if test $newid = $tmpid ; then
        oldid=
        break
      fi
    done
    if test -n "$oldid" ; then
      id=${oldid%%:*}
      lun=${oldid##*:}
      dev=/sys/class/scsi_device/${host}:${channel}:${id}:${lun}
      if [ -d $dev ] ; then
	hcil=${dev##*/}
        printf "\r${green}NEW: $norm"
        testexist
        if test "$SCSISTR" ; then
          incrfound "$hcil"
        fi
      fi
    fi
  done
  idsearch=$(ls /sys/class/scsi_device/ | sed -n "s/${host}:${channel}:\([0-9]*\):[0-9]*/\1/p" | uniq)
}

# Returns the list of existing LUNs from device $host $channel $id $lun
# and returns list to stdout
getluns()
{
  sgdevice
  if test -z "$SGDEV"; then return 1; fi
  if test ! -x /usr/bin/sg_luns; then echo 0; return 1; fi
  LLUN=`sg_luns /dev/$SGDEV 2>/dev/null | sed -n 's/    \(.*\)/\1/p'`
  # Added -z $LLUN condition because $? gets the RC from sed, not sg_luns
  if test $? != 0 -o -z "$LLUN"; then echo 0; return 1; fi
  for lun in $LLUN ; do
      # Swap LUN number
      l0=0x$lun
      l1=$(( ($l0 >> 48) & 0xffff ))
      l2=$(( ($l0 >> 32) & 0xffff )) 
      l3=$(( ($l0 >> 16) & 0xffff ))
      l4=$(( $l0 & 0xffff ))
      l0=$(( ( ( ($l4 * 0xffff) + $l3 ) * 0xffff + $l2 ) * 0xffff + $l1 ))
      printf "%u\n" $l0
  done
  return 0
}

# Wait for udev to settle (create device nodes etc.)
udevadm_settle()
{
  local tmo=60
  if test -x /sbin/udevadm; then 
    print_and_scroll_back " Calling udevadm settle (can take a while) "
    # Loop for up to 60 seconds if sd devices still are settling..
    # This allows us to continue if udev events are stuck on multipaths in recovery mode
    while [ $tmo -gt 0 ] ; do
      if ! /sbin/udevadm settle --timeout=1 | egrep -q sd[a-z]+ ; then
        break;
      fi
      let tmo=$tmo-1
    done
    white_out
  elif test -x /sbin/udevsettle; then
    print_and_scroll_back " Calling udevsettle (can take a while) "
    /sbin/udevsettle
    white_out
  else
    sleep 0.02
  fi
}

# Perform scan on a single lun $host $channel $id $lun
dolunscan()
{
  local remappedlun0=
  SCSISTR=
  devnr="$host $channel $id $lun"
  echo -e " Scanning for device $devnr ... "
  printf "${yellow}OLD: $norm"
  testexist
  # Device exists: Test whether it's still online
  # (testonline returns 2 if it's gone and 1 if it has changed)
  if test "$SCSISTR" ; then
    testonline
    RC=$?
    # Well known lun transition case. Only for Direct-Access devs (type 0)
    # If block directory exists && and PQUAL != 0, we unmapped lun0 and just have a well-known lun
    # If block directory doesn't exist && PQUAL == 0, we mapped a real lun0
    if test $lun -eq 0 -a $IPTYPE -eq 0 ; then
      if test $RC = 2 ; then
        if test -e /sys/class/scsi_device/${host}:${channel}:${id}:${lun}/device; then
          if test -d /sys/class/scsi_device/${host}:${channel}:${id}:${lun}/device/block ; then
            remappedlun0=2  # Transition from real lun 0 to well-known
          else
            RC=0   # Set this so the system leaves the existing well known lun alone. This is a lun 0 with no block directory
          fi
        fi
      elif test $RC = 0 -a $IPTYPE -eq 0; then
        if test -e /sys/class/scsi_device/${host}:${channel}:${id}:${lun}/device; then
          if test ! -d /sys/class/scsi_device/${host}:${channel}:${id}:${lun}/device/block ; then
            remappedlun0=1  # Transition from well-known to real lun 0
          fi
        fi
      fi
    fi
  fi

  # Special case: lun 0 just got added (for reportlunscan),
  # so make sure we correctly treat it as new
  if test "$lun" = "0" -a "$1" = "1" -a -z "$remappedlun0"; then
    SCSISTR=""
    printf "\r\e[A\e[A\e[A"
  fi

  : f $remove s $SCSISTR
  if test "$remove" -a "$SCSISTR" -o "$remappedlun0" = "1"; then
    if test $RC != 0 -o ! -z "$forceremove" -o -n "$remappedlun0"; then
      if test "$remappedlun0" != "1" ; then
        echo -en "\r\e[A\e[A\e[A${red}REM: "
        echo "$SCSISTR" | head -n1
        echo -e "${norm}\e[B\e[B"
      fi
      if test -e /sys/class/scsi_device/${host}:${channel}:${id}:${lun}/device; then
        # have to preemptively do this so we can figure out the mpath device
        # Don't do this if we're deleting a well known lun to replace it
        if test "$remappedlun0" != "1" ; then
          incrrmvd "$host:$channel:$id:$lun"
        fi
        echo 1 > /sys/class/scsi_device/${host}:${channel}:${id}:${lun}/device/delete
        sleep 0.02
      else
        echo "scsi remove-single-device $devnr" > /proc/scsi/scsi
        if test $RC -eq 1 -o $lun -eq 0 ; then
          # Try readding, should fail if device is gone
          echo "scsi add-single-device $devnr" > /proc/scsi/scsi
        fi
      fi
    fi
    if test $RC = 0 -o "$forcerescan" ; then
      if test -e /sys/class/scsi_device/${host}:${channel}:${id}:${lun}/device; then
        echo 1 > /sys/class/scsi_device/${host}:${channel}:${id}:${lun}/device/rescan
      fi
    fi
    printf "\r\e[A\e[A\e[A${yellow}OLD: $norm"
    testexist
    if test -z "$SCSISTR" -a $RC != 1 -a "$remappedlun0" != "1"; then
      printf "\r${red}DEL: $norm\r\n\n"
      # In the event we're replacing with a well known node, we need to let it continue, to create the replacement node
      test "$remappedlun0" != "2" && return 1
    fi
  fi
  if test -z "$SCSISTR" -o -n "$remappedlun0"; then
    if test "$remappedlun0" != "2" ; then
      # Device does not exist, try to add
      printf "\r${green}NEW: $norm"
    fi
    if test -e /sys/class/scsi_host/host${host}/scan; then
      echo "$channel $id $lun" > /sys/class/scsi_host/host${host}/scan 2> /dev/null
    else
      echo "scsi add-single-device $devnr" > /proc/scsi/scsi
    fi
    testexist
    if test -z "$SCSISTR"; then
      # Device not present
      printf "\r\e[A";
      # Optimization: if lun==0, stop here (only if in non-remove mode)
      if test $lun = 0 -a -z "$remove" -a $optscan = 1; then 
        return;
      fi
    else 
      if test "$remappedlun0" != "2" ; then
        incrfound "$host:$channel:$id:$lun"
      fi
    fi
  fi
}

# Perform report lun scan on $host $channel $id using REPORT_LUNS
doreportlun()
{
  lun=0
  SCSISTR=
  devnr="$host $channel $id $lun"
  echo -en " Scanning for device $devnr ...\r"
  lun0added=
  #printf "${yellow}OLD: $norm"
  # Phase one: If LUN0 does not exist, try to add
  testexist -q
  if test -z "$SCSISTR"; then
    # Device does not exist, try to add
    #printf "\r${green}NEW: $norm"
    if test -e /sys/class/scsi_host/host${host}/scan; then
      echo "$channel $id $lun" > /sys/class/scsi_host/host${host}/scan 2> /dev/null
      udevadm_settle
    else
      echo "scsi add-single-device $devnr" > /proc/scsi/scsi
    fi
    testexist -q
    if test -n "$SCSISTR"; then
      lun0added=1
      #testonline
    else
      # Device not present
      # return
      # Find alternative LUN to send getluns to
      for dev in /sys/class/scsi_device/${host}:${channel}:${id}:*; do
        [ -d "$dev" ] || continue
        lun=${dev##*:}
        break
      done
    fi
  fi
  targetluns=`getluns`
  REPLUNSTAT=$?
  lunremove=
  #echo "getluns reports " $targetluns
  olddev=`find /sys/class/scsi_device/ -name "$host:$channel:$id:*" 2>/dev/null | sort -t: -k4 -n`
  oldtargets="$targetluns"
  # OK -- if we don't have a LUN to send a REPORT_LUNS to, we could
  # fall back to wildcard scanning. Same thing if the device does not
  # support REPORT_LUNS
  # TODO: We might be better off to ALWAYS use wildcard scanning if 
  # it works
  if test "$REPLUNSTAT" = "1"; then
    if test -e /sys/class/scsi_host/host${host}/scan; then
      echo "$channel $id -" > /sys/class/scsi_host/host${host}/scan 2> /dev/null
      udevadm_settle
    else
      echo "scsi add-single-device $host $channel $id $SCAN_WILD_CARD" > /proc/scsi/scsi
    fi
    targetluns=`find /sys/class/scsi_device/ -name "$host:$channel:$id:*" 2>/dev/null | awk -F'/' '{print $5}' | awk -F':' '{print $4}' | sort -n`
    let found+=`echo "$targetluns" | wc -l`
    let found-=`echo "$olddev" | wc -l`
  fi
  if test -z "$targetluns"; then targetluns="$oldtargets"; fi
  # Check existing luns
  for dev in $olddev; do
    [ -d "$dev" ] || continue
    lun=${dev##*:}
    newsearch=
    inlist=
    # OK, is existing $lun (still) in reported list
    for tmplun in $targetluns; do
      if test $tmplun -eq $lun ; then
        inlist=1
        dolunscan $lun0added
      else
        newsearch="$newsearch $tmplun"
      fi
    done
    # OK, we have now done a lunscan on $lun and 
    # $newsearch is the old $targetluns without $lun
    if [ -z "$inlist" ]; then
      # Stale lun
      lunremove="$lunremove $lun"
    fi
    # $lun removed from $lunsearch (echo for whitespace cleanup)
    targetluns=`echo $newsearch`
  done
  # Add new ones and check stale ones
  for lun in $targetluns $lunremove; do
    dolunscan $lun0added
  done
}

# Perform search (scan $host)
dosearch ()
{
  if test -z "$channelsearch" ; then
    chanlist
  fi
  for channel in $channelsearch; do
    if test -z "$idsearch" ; then
      if test -z "$lunsearch" ; then
	idlist
      else
	idsearch=$(ls /sys/class/scsi_device/ | sed -n "s/${host}:${channel}:\([0-9]*\):[0-9]*/\1/p" | uniq)
      fi
    fi
    for id in $idsearch; do
      if test -z "$lunsearch" ; then
        doreportlun
      else
        for lun in $lunsearch; do
          dolunscan
        done
      fi
    done
  done
}
 
expandlist ()
{
  list=$1
  result=""
  first=${list%%,*}
  rest=${list#*,}
  while test ! -z "$first"; do 
    beg=${first%%-*};
    if test "$beg" = "$first"; then
      result="$result $beg";
    else
      end=${first#*-}
      result="$result `seq $beg $end`"
    fi
    test "$rest" = "$first" && rest=""
    first=${rest%%,*}
    rest=${rest#*,}
  done
  echo $result
}

searchexisting()
{
  local tmpch;
  local tmpid
  local match=0
  local targets
  targets=`ls -d /sys/class/scsi_device/$host:* 2> /dev/null | egrep -o $host:[0-9]+:[0-9]+ | sort | uniq`

  # Nothing came back on this host, so we should skip it
  test -z "$targets" && return

  local target=;
  for target in $targets ; do
    channel=`echo $target | cut -d":" -f2`
    id=`echo $target | cut -d":" -f 3`
    if [ -n "$channelsearch" ] ; then
      for tmpch in $channelsearch ; do
        test $tmpch -eq $channel && match=1
      done
    else
      match=1
    fi

    test $match -eq 0 && continue
    match=0

    if [ $filter_ids -eq 1 ] ; then
      for tmpid in $idsearch ; do
        if [ $tmpid -eq $id ] ; then
          match=1
        fi
      done
    else
      match=1
    fi

    test $match -eq 0 && continue

    if [ -z "$lunsearch" ] ; then
      doreportlun
    else
      for lun in $lunsearch ; do
        dolunscan
      done
    fi
  done
}

# Go through all of the existing devices and figure out any that have been remapped
findremapped()
{
  local hctl=;
  local devs
  devs=`ls /sys/class/scsi_device/`
  local sddev=
  local id_serial=
  local id_serial_old=
  local remapped=
  mpaths=""
  local tmpfile
  tmpfile=$(mktemp /tmp/rescan-scsi-bus.XXXXXXXX 2> /dev/null)

  if [ -z "$tmpfile" ] ; then
    tmpfile="/tmp/rescan-scsi-bus.$$"
    rm -f $tmpfile
  fi

  # Get all of the ID_SERIAL attributes, after finding their sd node
  for hctl in $devs ; do
    if [ -d /sys/class/scsi_device/$hctl/device/block ] ; then
      sddev=`ls /sys/class/scsi_device/$hctl/device/block`
      id_serial_old=`udevadm info -q all -n $sddev | grep "ID_SERIAL=" | cut -d"=" -f2`
      [ -z "$id_serial_old" ] && id_serial_old="none"
      echo "$hctl $sddev $id_serial_old" >> $tmpfile
    fi
  done

  # Trigger udev to update the info
  echo -n "Triggering udev to update device information... "
  /sbin/udevadm trigger
  udevadm_settle 2>&1 /dev/null
  echo "Done"

  # See what changed and reload the respective multipath device if applicable
  while read hctl sddev id_serial_old ; do
    remapped=0
    id_serial=`udevadm info -q all -n $sddev | grep "ID_SERIAL=" | cut -d"=" -f2`
    [ -z "$id_serial" ] && id_serial="none"
    if [ "$id_serial_old" != "$id_serial" ] ; then
      remapped=1
    fi
    # If udev events updated the disks already, but the multipath device isn't update
    # check for old devices to make sure we found remapped luns
    if [ -n "$mp_enable" ] && [ $remapped -eq 0 ]; then
      findmultipath $sddev $id_serial
      if [ $? -eq 1 ] ; then
        remapped=1
      fi
    fi

    # if uuid is 1, it's unmapped, so we don't want to treat it as a remap
    # if remapped flag is 0, just skip the rest of the logic
    if [ "$id_serial" = "1" ] || [ $remapped -eq 0 ] ; then
      continue
    fi
    printf "${yellow}REMAPPED: $norm"
    host=`echo $hctl | cut -d":" -f1`
    channel=`echo $hctl | cut -d":" -f2`
    id=`echo $hctl | cut -d":" -f3`
    lun=`echo $hctl | cut -d":" -f4`
    procscsiscsi
    echo "$SCSISTR"
    incrchgd "$hctl"
  done < $tmpfile
  rm -f $tmpfile

  if test -n "$mp_enable" -a -n "$mpaths" ; then
    echo "Updating multipath device mappings"
    flushmpaths
    $MULTIPATH | grep "create:" 2> /dev/null
  fi
}

incrfound()
{
  local hctl="$1"
  if test -n "$hctl" ; then
    let found+=1
    FOUNDDEVS="$FOUNDDEVS\t[$hctl]\n"
  else
    return
  fi
}

incrchgd()
{
  local hctl="$1"
  if test -n "$hctl" ; then
    if ! echo $CHGDEVS | grep -q "\[$hctl\]"; then
      let updated+=1
      CHGDEVS="$CHGDEVS\t[$hctl]\n"
    fi
  else
    return
  fi

  if test -n "$mp_enable" ; then
    local sdev
    sdev="`findsddev \"$hctl\"`"
    if test -n "$sdev" ; then
      findmultipath "$sdev"
    fi
  fi
}

incrrmvd()
{
  local hctl="$1"
  if test -n "$hctl" ; then
    let rmvd+=1;
    RMVDDEVS="$RMVDDEVS\t[$hctl]\n"
  else
    return
  fi

  if test -n "$mp_enable" ; then
    local sdev
    sdev="`findsddev \"$hctl\"`"
    if test -n "$sdev" ; then
      findmultipath "$sdev"
    fi
  fi
}

findsddev()
{
  local hctl="$1"
  local sddev=  

  if test ! -e /sys/class/scsi_device/$hctl/device/block ; then
    return 1
  fi 

  sddev=`ls /sys/class/scsi_device/$hctl/device/block`
  echo $sddev

  return 0
}

addmpathtolist()
{
  local mp="$1"
  local mp2=

  for mp2 in $mpaths ; do
    # The multipath device is already in the list
    if [ "$mp2" = "$mp" ] ; then
      return
    fi
  done
  mpaths="$mpaths $mp"
}

findmultipath()
{
  local dev="$1"
  local find_mismatch="$2"
  local mp=
  local mp2=
  local found_dup=0

  # Need a sdev, and executable multipath and dmsetup command here
  if [ -z "$dev" ] || [ ! -x $DMSETUP ] || [ ! -x "$MULTIPATH" ] ; then
    return 1
  fi

  local maj_min
  maj_min=`cat /sys/block/$dev/dev`
  for mp in $($DMSETUP ls --target=multipath | cut -f 1) ; do
    [ "$mp" = "No" ] && break;
    if $DMSETUP status $mp | grep -q " $maj_min "; then
      # With two arguments, look up current uuid from sysfs
      # if it doesn't match what was passed, this multipath
      # device is not updated, so this is a remapped LUN
      if [ -n "$find_mismatch" ] ; then
        mp2=$($MULTIPATH -l "$mp" | egrep -o "dm-[0-9]+")
        mp2=$(cut -f2 -d- "/sys/block/$mp2/dm/uuid")
        if [ "$find_mismatch" != "$mp2" ] ; then
          addmpathtolist $mp
          found_dup=1
        fi
        continue
      fi
      # Normal mode: Find the first multipath with the sdev
      # and add it to the list
      addmpathtolist $mp
      return
    fi
  done

  # Return 1 to signal that a duplicate was found to the calling function
  if [ $found_dup -eq 1 ] ; then
    return 1
  else
    return 0
  fi
}

reloadmpaths()
{
  local mpath
  if [ ! -x "$MULTIPATH" ] ; then
    echo "no -x multipath"
    return
  fi

  # Pass 1 as the argument to reload all mpaths
  if [ "$1" = "1" ] ; then
    echo "Reloading all multipath devices"
    $MULTIPATH -r > /dev/null 2>&1
    return
  fi

  # Reload the multipath devices
  for mpath in $mpaths ; do
    echo -n "Reloading multipath device $mpath... "
    $MULTIPATH -r $mpath > /dev/null 2>&1
    if test "$?" = "0" ; then
      echo "Done"
    else
      echo "Fail"
    fi
  done
}

resizempaths()
{
  local mpath

  for mpath in $mpaths ; do
    echo -n "Resizing multipath map $mpath ..."
    multipathd -k"resize map $mpath"
    let updated+=1
  done
}

flushmpaths()
{
  local mpath
  local remove=""
  local i
  local flush_retries=5

  if test -n "$1" ; then
    for mpath in $($DMSETUP ls --target=multipath | cut -f 1) ; do
      [ "$mpath" = "No" ] && break
      num=$($DMSETUP status $mpath | awk 'BEGIN{RS=" ";active=0}/[0-9]+:[0-9]+/{dev=1}/A/{if (dev == 1) active++; dev=0} END{ print active }')
      if [ $num -eq 0 ] ; then
        remove="$remove $mpath"
      fi
    done
  else
    remove="$mpaths"
  fi

  for mpath in $remove ; do
    i=0
    echo -n "Flushing multipath device $mpath... "
    while [ $i -lt $flush_retries ] ; do
      $DMSETUP message $mpath 0 fail_if_no_path > /dev/null 2>&1
      $MULTIPATH -f $mpath > /dev/null 2>&1
      if test "$?" = "0" ; then
        echo "Done ($i retries)"
        break
      elif test $i -eq $flush_retries ; then
        echo "Fail"
      fi
      sleep 0.02
      let i=$i+1
    done
  done
}


# Find resized luns
findresized()
{
  local devs=
  local size=
  local new_size=
  local sysfs_path=
  local sddev=
  local i=
  local m=
  local mpathsize=
  declare -a mpathsizes

  if [ -z "$lunsearch" ] ; then
    devs=`ls /sys/class/scsi_device/`
  else
    for lun in $lunsearch ; do
      devs="$devs `(cd /sys/class/scsi_device/ && ls -d *:${lun})`"
    done
  fi

  for hctl in $devs ; do
    sysfs_path="/sys/class/scsi_device/$hctl/device"
    if [ -d "$sysfs_path/block" ] ; then
      sddev=`ls $sysfs_path/block`
      size=`cat $sysfs_path/block/$sddev/size`

      echo 1 > $sysfs_path/rescan
      new_size=`cat $sysfs_path/block/$sddev/size`

      if [ "$size" != "$new_size" ] && [ "$size" != "0" ] && [ "$new_size" != "0" ] ; then
        printf "${yellow}RESIZED: $norm"
        host=`echo $hctl | cut -d":" -f1`
        channel=`echo $hctl | cut -d":" -f2`
        id=`echo $hctl | cut -d":" -f3`
        lun=`echo $hctl | cut -d":" -f4`

        procscsiscsi
        echo "$SCSISTR"
        incrchgd "$hctl"
      fi
    fi
  done

  if test -n "$mp_enable" -a -n "$mpaths" ; then
    i=0
    for m in $mpaths ; do
      mpathsizes[$i]="`$MULTIPATH -l $m | egrep -o [0-9]+.[0-9]+[KMGT]`"
      let i=$i+1
    done
    resizempaths
    i=0
    for m in $mpaths ; do
      mpathsize="`$MULTIPATH -l $m | egrep -o [0-9\.]+[KMGT]`"
      echo "$m ${mpathsizes[$i]} => $mpathsize"
      let i=$i+1
    done
  fi
}

FOUNDDEVS=""
CHGDEVS=""
RMVDDEVS=""

# main
if test @$1 = @--help -o @$1 = @-h -o @$1 = @-?; then
    echo "Usage: rescan-scsi-bus.sh [options] [host [host ...]]"
    echo "Options:"
    echo " -a      scan all targets, not just currently existing [default: disabled]"
    echo " -c      enables scanning of channels 0 1   [default: 0 / all detected ones]"
    echo " -d      enable debug                       [default: 0]"
    echo " -f      flush failed multipath devices     [default: disabled]"
    echo " -h      help: print this usage message then exit"
    echo " -i      issue a FibreChannel LIP reset     [default: disabled]"
    echo " -I SECS issue a FibreChannel LIP reset and wait for SECS seconds [default: disabled]"
    echo " -l      activates scanning for LUNs 0--7   [default: 0]"
    echo " -L NUM  activates scanning for LUNs 0--NUM [default: 0]"
    echo " -m      update multipath devices           [default: disabled]"
    echo " -r      enables removing of devices        [default: disabled]"
    echo " -s      look for resized disks and reload associated multipath devices, if applicable"
    echo " -u      look for existing disks that have been remapped"
    echo " -V      print version date then exit"
    echo " -w      scan for target device IDs 0--15   [default: 0--7]"
    echo "--alltargets:    same as -a"
    echo "--attachpq3:     Tell kernel to attach sg to LUN 0 that reports PQ=3"
    echo "--channels=LIST: Scan only channel(s) in LIST"
    echo "--color:         use coloured prefixes OLD/NEW/DEL"
    echo "--flush:         same as -f"
    echo "--forceremove:   Remove stale devices (DANGEROUS)"
    echo "--forcerescan:   Remove and readd existing devices (DANGEROUS)"
    echo "--help:          print this usage message then exit"
    echo "--hosts=LIST:    Scan only host(s) in LIST"
    echo "--ids=LIST:      Scan only target ID(s) in LIST"
    echo "--ignore-rev:    Ignore the revision change"
    echo "--issue-lip:     same as -i"
    echo "--issue-lip-wait=SECS:     same as -I"
    echo "--largelun:      Tell kernel to support LUNs > 7 even on SCSI2 devs"
    echo "--luns=LIST:     Scan only lun(s) in LIST"  
    echo "--multipath:     same as -m"
    echo "--nooptscan:     don't stop looking for LUNs is 0 is not found"
    echo "--remove:        same as -r"
    echo "--reportlun2:    Tell kernel to try REPORT_LUN even on SCSI2 devices"
    echo "--resize:        same as -s"
    echo "--sparselun:     Tell kernel to support sparse LUN numbering"
    echo "--sync/nosync:   Issue a sync / no sync [default: sync if remove]"
    echo "--update:        same as -u"
    echo "--version:       same as -V"
    echo "--wide:          same as -w"
    echo ""
    echo "Host numbers may thus be specified either directly on cmd line (deprecated)"
    echo "or with the --hosts=LIST parameter (recommended)."
    echo "LIST: A[-B][,C[-D]]... is a comma separated list of single values and ranges"
    echo "(No spaces allowed.)"
    exit 0
fi

if test @$1 = @--version -o @$1 = @-V ; then
    echo ${VERSION}
    exit 0
fi

if test ! -d /sys/class/scsi_host/ -a ! -d /proc/scsi/; then
  echo "Error: SCSI subsystem not active"
  exit 1
fi

# Make sure sg is there
modprobe sg >/dev/null 2>&1

if test -x /usr/bin/sg_inq; then
  sg_version=$(sg_inq -V 2>&1 | cut -d " " -f 3)
  if test -n "$sg_version"; then
    sg_ver_maj=${sg_version:0:1}
    sg_version=${sg_version##?.}
    let sg_version+=$((100*$sg_ver_maj))
  fi
  sg_version=${sg_version##0.}
  #echo "\"$sg_version\""
  if [ -z "$sg_version" -o "$sg_version" -lt 70 ] ; then
    sg_len_arg="-36"
  else
    sg_len_arg="--len=36"
  fi
else
  echo "WARN: /usr/bin/sg_inq not present -- please install sg3_utils"
  echo " or rescan-scsi-bus.sh might not fully work."     
fi    

# defaults
unsetcolor
debug=0
lunsearch=
opt_idsearch=`seq 0 7`
filter_ids=0
opt_channelsearch=
remove=
updated=0
update=0
resize=0
forceremove=
optscan=1
sync=1
existing_targets=1
mp_enable=
lipreset=-1
declare -i scan_flags=0
ignore_rev=0

# Scan options
opt="$1"
while test ! -z "$opt" -a -z "${opt##-*}"; do
  opt=${opt#-}
  case "$opt" in
    a) existing_targets=;;  #Scan ALL targets when specified
    c) opt_channelsearch="0 1" ;;
    d) debug=1 ;;
    f) flush=1 ;;
    i) lipreset=0 ;;
    I) shift; lipreset=$opt ;;
    l) lunsearch=`seq 0 7` ;;
    L) lunsearch=`seq 0 $2`; shift ;;
    m) mp_enable=1 ;;
    r) remove=1 ;;
    s) resize=1; mp_enable=1 ;;
    u) update=1 ;;
    w) opt_idsearch=`seq 0 15` ;;
    -alltargets)  existing_targets=;;
    -attachpq3) scan_flags=$(($scan_flags|0x1000000)) ;;
    -channels=*)  arg=${opt#-channels=};opt_channelsearch=`expandlist $arg` ;; 
    -color) setcolor ;;
    -flush)       flush=1 ;;
    -forceremove) remove=1; forceremove=1 ;;
    -forcerescan) remove=1; forcerescan=1 ;;
    -hosts=*)     arg=${opt#-hosts=};   hosts=`expandlist $arg` ;;
    -ids=*)   arg=${opt#-ids=};         opt_idsearch=`expandlist $arg` ; filter_ids=1;;
    -ignore-rev) ignore_rev=1;;
    -issue-lip) lipreset=0 ;;
    -issue-lip-wait) lipreset=${opt#-issue-lip-wait=};;
    -largelun) scan_flags=$(($scan_flags|0x200)) ;;
    -luns=*)  arg=${opt#-luns=};        lunsearch=`expandlist $arg` ;; 
    -multipath) mp_enable=1 ;;
    -nooptscan) optscan=0 ;;
    -nosync) sync=0 ;;
    -remove)      remove=1 ;;
    -reportlun2) scan_flags=$(($scan_flags|0x20000)) ;;
    -resize) resize=1;;
    -sparselun) scan_flags=$((scan_flags|0x40)) ;;
    -sync) sync=2 ;;
    -update) update=1;;
    -wide) opt_idsearch=`seq 0 15` ;;
    *) echo "Unknown option -$opt !" ;;
  esac
  shift
  opt="$1"
done    

if [ -z "$hosts" ] ; then
  if test -d /sys/class/scsi_host; then 
    findhosts_26
  else  
    findhosts
  fi  
fi

if [ -d /sys/class/scsi_host -a ! -w /sys/class/scsi_host ]; then
  echo "You need to run scsi-rescan-bus.sh as root"
  exit 2
fi  
if test "$sync" = 1 -a "$remove" = 1; then sync=2; fi
if test "$sync" = 2; then echo "Syncing file systems"; sync; fi
if test -w /sys/module/scsi_mod/parameters/default_dev_flags -a $scan_flags != 0; then
  OLD_SCANFLAGS=`cat /sys/module/scsi_mod/parameters/default_dev_flags`
  NEW_SCANFLAGS=$(($OLD_SCANFLAGS|$scan_flags))
  if test "$OLD_SCANFLAGS" != "$NEW_SCANFLAGS"; then
    echo -n "Temporarily setting kernel scanning flags from "
    printf "0x%08x to 0x%08x\n" $OLD_SCANFLAGS $NEW_SCANFLAGS
    echo $NEW_SCANFLAGS > /sys/module/scsi_mod/parameters/default_dev_flags
  else
    unset OLD_SCANFLAGS
  fi
fi  
DMSETUP=$(which dmsetup)
[ -z "$DMSETUP" ] && flush= && mp_enable=
MULTIPATH=$(which multipath)
[ -z "$MULTIPATH" ] && flush= && mp_enable=

echo -n "Scanning SCSI subsystem for new devices"
test -z "$flush" || echo -n ", flush failed multipath devices,"
test -z "$remove" || echo -n " and remove devices that have disappeared"
echo
declare -i found=0
declare -i updated=0
declare -i rmvd=0

if [ -n "$flush" ] ; then
  if [ -x "$MULTIPATH" ] ; then
    flushmpaths 1
  fi
fi

# Update existing mappings
if [ $update -eq 1 ] ; then
  echo "Searching for remapped LUNs"
  findremapped
  # If you've changed the mapping, there's a chance it's a different size
  mpaths=""
  findresized
# Search for resized LUNs
elif [ $resize -eq 1 ] ; then
  echo "Searching for resized LUNs"
  findresized
# Normal rescan mode
else
  for host in $hosts; do
  echo -n "Scanning host $host "
  if test -e /sys/class/fc_host/host$host ; then
    # It's pointless to do a target scan on FC
    issue_lip=/sys/class/fc_host/host$host/issue_lip
    if test -e $issue_lip -a $lipreset -ge 0 ; then
      echo 1 > $issue_lip 2> /dev/null;
      udevadm_settle
      [ $lipreset -gt 0 ] && sleep $lipreset
    fi
    channelsearch=
    idsearch=
  else
    channelsearch=$opt_channelsearch
    idsearch=$opt_idsearch
  fi
  [ -n "$channelsearch" ] && echo -n "channels $channelsearch "
  echo -n "for "
  if [ -n "$idsearch" ] ; then
    echo -n " SCSI target IDs " $idsearch
  else
    echo -n " all SCSI target IDs"
  fi
  if [ -n "$lunsearch" ] ; then
    echo ", LUNs " $lunsearch
  else
    echo ", all LUNs"
  fi

  if [ -n "$existing_targets" ] ; then
    searchexisting
  else
    dosearch
  fi
  done
  if test -n "$OLD_SCANFLAGS"; then
    echo $OLD_SCANFLAGS > /sys/module/scsi_mod/parameters/default_dev_flags
  fi
fi

let rmvd_found=$rmvd+$found
if test -n "$mp_enable" -a $rmvd_found -gt 0 ; then
  echo "Attempting to update multipath devices..."
  if test $rmvd -gt 0 ; then
    udevadm_settle
    echo "Removing multipath mappings for removed devices if all paths are now failed... "
    flushmpaths 1
  fi
  if test $found -gt 0 ; then
    /sbin/udevadm trigger --sysname-match=sd*
    udevadm_settle
    if [ -x "$MULTIPATH" ] ; then
      echo "Trying to discover new multipath mappings for newly discovered devices... "
      $MULTIPATH | grep "create:" 2> /dev/null
    fi
  fi 
fi

echo "$found new or changed device(s) found.          "
if test ! -z "$FOUNDDEVS" ; then
  printf "$FOUNDDEVS"
fi
echo "$updated remapped or resized device(s) found."
if test ! -z "$CHGDEVS" ; then
  printf "$CHGDEVS"
fi
echo "$rmvd device(s) removed.                 "
if test ! -z "$RMVDDEVS" ; then
  printf "$RMVDDEVS"
fi

# Local Variables:
# sh-basic-offset: 2
# End:

{"id":4867,"date":"2025-05-17T10:41:48","date_gmt":"2025-05-17T10:41:48","guid":{"rendered":"https:\/\/4pie.com.mx\/?p=4867"},"modified":"2025-05-23T10:41:58","modified_gmt":"2025-05-23T10:41:58","slug":"muoi-trang-web-song-bac-va-tro-choi-dua-tren-web-tot-nhat-cua-web-cash-web-chung-toi-2025","status":"publish","type":"post","link":"https:\/\/4pie.com.mx\/index.php\/2025\/05\/17\/muoi-trang-web-song-bac-va-tro-choi-dua-tren-web-tot-nhat-cua-web-cash-web-chung-toi-2025\/","title":{"rendered":"M\u01b0\u1eddi trang web s\u00f2ng b\u1ea1c v\u00e0 tr\u00f2 ch\u01a1i d\u1ef1a tr\u00ean web t\u1ed1t nh\u1ea5t c\u1ee7a Web Cash Web ch\u00fang t\u00f4i 2025"},"content":{"rendered":"

\u0110\u1ed1i v\u1edbi nhi\u1ec1u ng\u01b0\u1eddi \u0111ang \u0111\u00e1nh gi\u00e1 c\u00e1c s\u00f2ng b\u1ea1c tr\u1ef1c tuy\u1ebfn, vi\u1ec7c ki\u1ec3m tra th\u01b0 m\u1ee5c s\u00f2ng b\u1ea1c tr\u00ean internet \u0111\u01b0\u1ee3c cung c\u1ea5p \u00edt h\u01a1n \u0111\u1ec3 xem trong s\u1ed1 c\u00e1c t\u00f9y ch\u1ecdn t\u1ed1t h\u01a1n c\u00f3 s\u1eb5n. \u01afu \u0111i\u1ec3m \u0111\u1ec1 ngh\u1ecb ki\u1ec3m game kingfun<\/a> tra gi\u1edbi h\u1ea1n c\u1ee7a nhau v\u00e0 \u0111\u1eb7t c\u01b0\u1ee3c th\u1ea5p nh\u1ea5t b\u1ea5t c\u1ee9 khi n\u00e0o so s\u00e1nh c\u00e1c tr\u00f2 ch\u01a1i s\u00f2ng b\u1ea1c tr\u1ef1c tuy\u1ebfn c\u00f2n s\u1ed1ng. T\u1ed5 ch\u1ee9c \u0111\u00e1ng tin c\u1eady \u0111\u1ea3m b\u1ea3o ch\u01a1i tr\u00f2 ch\u01a1i d\u1ec5 d\u00e0ng v\u00e0 b\u1ea1n c\u00f3 th\u1ec3 c\u00e1c nh\u00e0 \u0111\u1ea7u t\u01b0 h\u00e0ng \u0111\u1ea7u, g\u00e2y ra m\u00f4i tr\u01b0\u1eddng \u0111\u00e1nh b\u1ea1c li\u1ec1n m\u1ea1ch. D\u1ecbch v\u1ee5 h\u1ed7 tr\u1ee3 h\u1ee3p ph\u00e1p l\u00e0 r\u1ea5t quan tr\u1ecdng \u0111\u1ec3 s\u1edf h\u1eefu c\u00e1c v\u1ea5n \u0111\u1ec1 gi\u1ea3i quy\u1ebft th\u00f4ng qua c\u00e1c l\u1edbp ch\u01a1i.<\/p>\n

Game kingfun: Ti\u1ec1n th\u01b0\u1edfng s\u00f2ng b\u1ea1c v\u00e0 b\u1ea1n c\u00f3 th\u1ec3 chi\u1ebfn d\u1ecbch<\/h2>\n

M\u1ed9t c\u00e1i g\u00ec \u0111\u00f3 kh\u00e1c nhau \u0111\u00e3 \u0111\u0103ng k\u00fd s\u00f2ng b\u1ea1c d\u1ef1a tr\u00ean web th\u01b0\u1eddng l\u00e0 ch\u00fang c\u0169ng c\u00f3 v\u1edbi c\u00f4ng ngh\u1ec7 m\u00e3 h\u00f3a SSL hi\u1ec7n t\u1ea1i c\u00f3 s\u1eb5n v\u1edbi c\u00e1c t\u1ed5 ch\u1ee9c nh\u01b0 Digicert v\u00e0 b\u1ea1n c\u00f3 th\u1ec3 CloudFlare. Do \u0111\u00f3, chi ti\u1ebft c\u00e1 nh\u00e2n c\u1ee7a ri\u00eang b\u1ea1n v\u00e0 b\u1ea1n c\u00f3 th\u1ec3 th\u00f4ng tin ti\u1ec1n t\u1ec7 th\u1ef1c s\u1ef1 \u0111\u01b0\u1ee3c b\u1ea3o m\u1eadt \u0111\u00fang c\u00e1ch v\u00e0 b\u1ea1n s\u1ebd x\u1eed l\u00fd. V\u00e0 cu\u1ed1i c\u00f9ng, t\u1ea5t c\u1ea3 c\u00e1c trang web c\u00e1 c\u01b0\u1ee3c \u0111\u01b0\u1ee3c \u1ee7y quy\u1ec1n hi\u1ec7n cung c\u1ea5p m\u1ed9t c\u01a1 h\u1ed9i h\u1ee3p l\u00fd v\u1ec1 thu nh\u1eadp ti\u1ec1m n\u0103ng trong su\u1ed1t nh\u1eefng n\u0103m qua. \u0110\u1ec3 x\u00e1c nh\u1eadn \u0111\u1ed9 tin c\u1eady ho\u00e0n to\u00e0n m\u1edbi c\u1ee7a m\u1ed9t s\u00f2ng b\u1ea1c tr\u1ef1c tuy\u1ebfn kh\u00e1c, h\u00e3y xem h\u01b0\u1edbng d\u1eabn c\u1ea5p ph\u00e9p c\u1ee7a h\u1ecd, hi\u1ec3u x\u1ebfp h\u1ea1ng c\u1ee7a \u01b0u \u0111\u00e3i h\u00e0ng \u0111\u1ea7u v\u00e0 b\u1ea1n s\u1ebd ki\u1ec3m tra kh\u1ea3 n\u0103ng \u0111\u00e1p \u1ee9ng ho\u00e0n to\u00e0n m\u1edbi c\u1ee7a d\u1ecbch v\u1ee5 kh\u00e1ch h\u00e0ng.Kh\u00e1m ph\u00e1 c\u00e1c \u0111\u00e1nh gi\u00e1 ngo\u00e0i h\u00e0ng \u0111\u1ea7u cung c\u1ea5p l\u00e0 m\u1ed9t c\u00e1ch hi\u1ec7u qu\u1ea3 \u0111\u1ec3 x\u00e1c \u0111\u1ecbnh danh ti\u1ebfng m\u1edbi nh\u1ea5t c\u1ee7a m\u1ed9t s\u00f2ng b\u1ea1c internet thay th\u1ebf.<\/p>\n

T\u00f9y thu\u1ed9c v\u00e0o \u0111\u00e1nh gi\u00e1 c\u1ee7a ng\u01b0\u1eddi d\u00f9ng tr\u00ean c\u1eeda h\u00e0ng tr\u00e1i c\u00e2y v\u00e0 b\u1ea1n c\u00f3 th\u1ec3 ch\u01a1i yahoo, th\u1ecfa thu\u1eadn gi\u00e0nh chi\u1ebfn th\u1eafng c\u1ee7a b\u1ea1n v\u1edbi nh\u1eefng ng\u01b0\u1eddi c\u00f3 \u00fd ngh\u0129a ho\u1eb7c v\u1ea5n \u0111\u1ec1. S\u1ef1 pha tr\u1ed9n c\u1ee7a ch\u00fang c\u00f3 l\u1ee3i cho vi\u1ec7c \u0111\u1ea3m b\u1ea3o m\u1ed9t \u00fd ngh\u0129a \u0111\u00e1nh b\u1ea1c \u0111\u1eb7c bi\u1ec7t, v\u00e0 sau \u0111\u00f3 l\u00e0m cho c\u00e1c s\u00f2ng b\u1ea1c tr\u1ef1c tuy\u1ebfn m\u1edbi tr\u1edf th\u00e0nh m\u1ed9t l\u1ef1a ch\u1ecdn h\u1ea5p d\u1eabn cho nh\u1eefng ng\u01b0\u1eddi tham gia t\u00ecm ki\u1ebfm cu\u1ed9c phi\u00eau l\u01b0u v\u00e0 chi ph\u00ed. \u0110\u1ea3m b\u1ea3o s\u00f2ng b\u1ea1c \u0111\u1ecba ph\u01b0\u01a1ng m\u1edbi \u0111\u01b0\u1ee3c \u1ee7y quy\u1ec1n b\u1edfi ch\u00ednh ph\u1ee7 ch\u01a1i game \u0111\u01b0\u1ee3c th\u1eeba nh\u1eadn v\u00e0 b\u1ea1n c\u00f3 th\u1ec3 d\u00e0nh c\u00e1c b\u01b0\u1edbc hoa h\u1ed3ng an to\u00e0n h\u01a1n l\u00e0 v\u00f4 c\u00f9ng quan tr\u1ecdng \u0111\u1ec3 c\u00f3 m\u1ed9t an to\u00e0n v\u00e0 b\u1ea1n s\u1ebd th\u00fa v\u1ecb tr\u1ea3i nghi\u1ec7m ch\u01a1i game. S\u00f2ng b\u1ea1c \u0111\u1ecba ph\u01b0\u01a1ng hoang d\u00e3 \u0111\u01b0\u1ee3c t\u1ed5 ch\u1ee9c cho c\u00e1c tr\u00f2 ch\u01a1i \u0111\u1ea1i l\u00fd th\u1eddi gian th\u1ef1c, l\u1ee3i nhu\u1eadn \u0111\u00fang gi\u1edd v\u00e0 b\u1ea1n s\u1ebd t\u01b0\u01a1ng th\u00edch di \u0111\u1ed9ng. M\u1ecdi ng\u01b0\u1eddi c\u0169ng c\u00f3 th\u1ec3 th\u01b0\u1edfng th\u1ee9c c\u00e1c tr\u00f2 ch\u01a1i chuy\u00ean gia c\u00f2n s\u1ed1ng ph\u1ed5 bi\u1ebfn nh\u01b0 Black-Jack, Alive Roulette, v\u00e0 b\u1ea1n c\u00f3 th\u1ec3 Baccarat, \u0111\u01b0\u1ee3c ph\u00e1t tr\u1ef1c ti\u1ebfp trong \u0111\u1ed9 ph\u00e2n gi\u1ea3i cao. M\u1ed9t khi b\u1ea1n y\u00eau c\u1ea7u thanh to\u00e1n t\u1eeb m\u1ed9t s\u00f2ng b\u1ea1c internet ch\u00ednh h\u00e3ng, t\u1ea5t nhi\u00ean b\u1ea1n c\u1ea7n ph\u1ea3i nh\u1eadn \u0111\u01b0\u1ee3c c\u00e1c kho\u1ea3n thanh to\u00e1n c\u1ee7a m\u00ecnh c\u00e0ng s\u1edbm c\u00e0ng t\u1ed1t.<\/p>\n

\"game<\/p>\n

Khi c\u00e1c c\u1ea7u th\u1ee7 \u0111\u00e3 \u1edf c\u00e1c bang trong \u0111\u00f3 c\u00e1c s\u00f2ng b\u1ea1c d\u1ef1a tr\u00ean web kh\u00f4ng \u0111\u01b0\u1ee3c \u0111\u00e1nh gi\u00e1, h\u1ecd s\u1ebd ch\u1eafc ch\u1eafn b\u1eaft g\u1eb7p c\u00e1c trang web xu\u1ea5t hi\u1ec7n bao g\u1ed3m c\u1ea3 n\u00f3 th\u1eed t\u00f2a \u00e1n. C\u00e1c trang web ch\u01a1i game ngo\u00e0i kh\u01a1i n\u00e0y \u0111\u01b0\u1ee3c th\u1ef1c hi\u1ec7n \u0111\u1ec3 ho\u1ea1t \u0111\u1ed9ng ho\u00e0n to\u00e0n trong lu\u1eadt ph\u00e1p, d\u00f9 sao ch\u00fang th\u1ef1c s\u1ef1 l\u00e0m vi\u1ec7c v\u1edbi th\u1eddi trang b\u1ea5t h\u1ee3p ph\u00e1p kh\u00e1c. M\u1ed9t s\u00f2ng b\u1ea1c \u0111\u1ecba ph\u01b0\u01a1ng th\u1eddi gian th\u1ef1c tr\u1ef1c tuy\u1ebfn s\u1ebd mang l\u1ea1i s\u1ef1 h\u1ed3i h\u1ed9p m\u1edbi t\u1eeb tr\u00f2 ch\u01a1i truy\u1ec1n th\u1ed1ng l\u00ean m\u00e1y t\u00ednh \u0111\u1ec3 b\u00e0n c\u1ee7a b\u1ea1n n\u1ebfu kh\u00f4ng c\u00f3 \u0111i\u1ec7n tho\u1ea1i th\u00f4ng minh.Ch\u01a1i roulette ho\u1eb7c c\u00e1c tr\u00f2 ch\u01a1i b\u00e0i v\u00ed d\u1ee5 Blackjack v\u00e0 Baccarat ch\u1ed1ng l\u1ea1i m\u1ed9t ng\u01b0\u1eddi bu\u00f4n b\u00e1n c\u1ee7a con ng\u01b0\u1eddi th\u00f4ng qua webcam.<\/p>\n

Spinblitz – L\u00fd t\u01b0\u1edfng cho ph\u1ea7n th\u01b0\u1edfng ho\u00e0n to\u00e0n mi\u1ec5n ph\u00ed v\u00e0 b\u1ea1n s\u1ebd gi\u1ea3m Cashout t\u1ed1i thi\u1ec3u SC<\/h2>\n

Mua ti\u1ec1n \u0111i\u1ec7n t\u1eed c\u0169ng \u0111\u01b0\u1ee3c an to\u00e0n v\u00e0 b\u1ea1n s\u1ebd \u0111\u00fang gi\u1edd v\u1edbi b\u1ea3o v\u1ec7 m\u1eadt m\u00e3 c\u1ee7a h\u1ecd. \u0110\u00e1nh b\u1ea1c tr\u1ef1c tuy\u1ebfn hi\u1ec7n \u0111ang l\u00e0 ph\u00f2ng x\u1eed \u00e1n b\u00ean trong Connecticut, Del bi\u1ebft, Michigan, Las Vegas, NJ, Pennsylvania, khu v\u1ef1c Rhode v\u00e0 b\u1ea1n c\u00f3 th\u1ec3 West Virginia. H\u1ea7u nh\u01b0 m\u1ecdi ng\u01b0\u1eddi kh\u00e1c \u0111\u1ec1u n\u00f3i, v\u00ed d\u1ee5 CA, Illinois, Indiana, Massachusetts v\u00e0 New York \u0111\u01b0\u1ee3c y\u00eau c\u1ea7u th\u00f4ng qua th\u00e0nh c\u00f4ng c\u00e1c lu\u1eadt v\u00e0 quy \u0111\u1ecbnh t\u01b0\u01a1ng t\u1ef1 trong t\u01b0\u01a1ng lai.<\/p>\n

C\u1ea3m gi\u00e1c c\u1ee7a ng\u01b0\u1eddi d\u00f9ng (UX) l\u00e0 \u0111i\u1ec1u c\u1ea7n thi\u1ebft \u0111\u1ec3 c\u00f3 ph\u1ea7n m\u1ec1m ch\u01a1i s\u00f2ng b\u1ea1c \u0111\u1ecba ph\u01b0\u01a1ng di \u0111\u1ed9ng, b\u1edfi v\u00ec c\u00e1 nh\u00e2n n\u00f3 c\u00f3 \u1ea3nh h\u01b0\u1edfng \u0111\u1ebfn s\u1ef1 tham gia c\u1ee7a ng\u01b0\u1eddi ch\u01a1i v\u00e0 b\u1ea1n c\u00f3 th\u1ec3 b\u1ea3o tr\u00ec. M\u1ed9t khung UX nh\u1eafm m\u1ee5c ti\u00eau \u0111\u1ecbnh tuy\u1ebfn li\u1ec1n m\u1ea1ch v\u00e0 b\u1ea1n s\u1ebd k\u1ebft n\u1ed1i li\u00ean k\u1ebft, v\u00ec v\u1eady m\u1ecdi ng\u01b0\u1eddi d\u1ec5 d\u00e0ng kh\u00e1m ph\u00e1 v\u00e0 say s\u01b0a trong m\u1ed9t tr\u00f2 ch\u01a1i video ph\u1ed5 bi\u1ebfn. C\u00e1c doanh nghi\u1ec7p \u0111\u00e1nh b\u1ea1c di \u0111\u1ed9ng c\u1ea7n th\u1ef1c hi\u1ec7n tr\u01a1n tru v\u1edbi m\u1ed9t lo\u1ea1t c\u00e1c \u0111i\u1ec7n tho\u1ea1i di \u0111\u1ed9ng, ph\u1ee5c v\u1ee5 \u0111\u1ec3 gi\u00fap b\u1ea1n c\u1ea3 h\u1ed3 s\u01a1 iOS v\u00e0 Android. Tr\u00f2 ch\u01a1i video m\u00f4i gi\u1edbi tr\u1ef1c ti\u1ebfp t\u00e1i t\u1ea1o c\u1ea3m gi\u00e1c s\u00f2ng b\u1ea1c \u0111\u1ecba ph\u01b0\u01a1ng m\u1edbi \u1edf nh\u00e0 t\u1eeb s\u1ef1 pha tr\u1ed9n s\u1ef1 kh\u00e9o l\u00e9o c\u1ee7a vi\u1ec7c \u0111\u1eb7t c\u01b0\u1ee3c tr\u1ef1c tuy\u1ebfn \u0111\u1ebfn b\u1ea7u kh\u00f4ng kh\u00ed nh\u1eadp vai t\u1eeb m\u1ed9t doanh nghi\u1ec7p \u0111\u00e1nh b\u1ea1c th\u1ef1c t\u1ebf.Nh\u1eefng lo\u1ea1i t\u01b0\u01a1ng \u1ee9ng th\u1eddi gian tr\u00f2 ch\u01a1i tr\u00f2 ch\u01a1i video n\u00e0y v\u1edbi c\u00e1c nh\u00e0 giao d\u1ecbch, mang \u0111\u1ebfn m\u1ed9t y\u1ebfu t\u1ed1 x\u00e3 h\u1ed9i \u0111\u1ec3 t\u0103ng c\u01b0\u1eddng c\u1ea3m gi\u00e1c c\u00e1 c\u01b0\u1ee3c t\u1ed5ng s\u1ed1.<\/p>\n

\"game<\/p>\n

B\u1ea1n s\u1ebd c\u1ea7n m\u1ed9t m\u1eadt kh\u1ea9u tuy\u1ec7t v\u1eddi \u0111\u1ec3 b\u1ea1n c\u00f3 th\u1ec3 \u0111\u0103ng nh\u1eadp v\u00e0o t\u00e0i kho\u1ea3n ng\u00e2n h\u00e0ng c\u1ee7a m\u00ecnh khi b\u1ea1n c\u1ea7n ch\u01a1i. \u0110\u00f3 l\u00e0 \u0111i\u1ec1u \u0111\u1ea7u ti\u00ean m\u00e0 b\u1ea1n s\u1ebd c\u1ea7n l\u00e0m sau khi b\u1ea1n t\u1ea1o ra t\u01b0 c\u00e1ch th\u00e0nh vi\u00ean s\u00f2ng b\u1ea1c \u0111\u1ecba ph\u01b0\u01a1ng. Tr\u00ean th\u1ef1c t\u1ebf, c\u00e1c quy t\u1eafc v\u00e0 b\u1ea1n s\u1ebd c\u1ea5u tr\u00fac t\u1eeb Baccarat kh\u00e1 gi\u1ed1ng Blackjack. D\u01b0\u1edbi \u0111\u00e2y l\u00e0 l\u1ef1a ch\u1ecdn t\u1ed1t nh\u1ea5t \u0111\u1ec3 di chuy\u1ec3n s\u1ed1 ti\u1ec1n l\u1edbn li\u00ean quan \u0111\u1ebfn t\u00e0i ch\u00ednh v\u00e0 m\u1ed9t s\u00f2ng b\u1ea1c internet h\u00e0ng \u0111\u1ea7u. M\u1eb7c d\u00f9 n\u00f3 c\u00f3 th\u1ec3 kh\u00f4ng ph\u1ea3i l\u00e0 l\u1ef1a ch\u1ecdn nhanh nh\u1ea5t, nh\u01b0ng n\u00f3 l\u00e0 m\u1ed9t trong nh\u1eefng l\u1ef1a ch\u1ecdn thay th\u1ebf t\u1ed1t nh\u1ea5t cho c\u00e1c con l\u0103n cao. Xin nh\u1edb r\u1eb1ng \u0111\u00f3 kh\u00f4ng ph\u1ea3i l\u00e0 m\u1ed9t \u0111\u00e1nh gi\u00e1 to\u00e0n b\u1ed9 v\u1ec1 t\u1ea5t c\u1ea3 c\u00e1c trang web c\u1ee7a c\u01a1 s\u1edf \u0111\u00e1nh b\u1ea1c ngo\u00e0i kh\u01a1i.<\/p>\n

R\u1ea5t nhi\u1ec1u ti\u1ec1n Bigfoot, Ph\u00f9 th\u1ee7y v\u00e0 b\u1ea1n s\u1ebd l\u00e0 Wizard, v\u00e0 Derby Bucks ch\u1ec9 l\u00e0 m\u1ed9t s\u1ed1 v\u1edf k\u1ecbch trao gi\u1ea3i Jackpots c\u00f3 kho\u1ea3ng 97,5% RTP, do c\u00e1c t\u00ednh n\u0103ng b\u1ed5 sung. B\u1ea1n s\u1ebd kh\u00f4ng mu\u1ed1n \u0111\u1ec3 b\u1ea1n c\u00f3 th\u1ec3 c\u00e1o bu\u1ed9c ti\u1ec1n th\u01b0\u1edfng v\u00e0 k\u1ebft th\u00fac ch\u00fang tr\u01b0\u1edbc khi b\u1ea1n s\u1eed d\u1ee5ng anh \u1ea5y ho\u1eb7c c\u00f4 \u1ea5y v\u00ec b\u1ea1n kh\u00f4ng ki\u1ec3m tra ch\u00ednh x\u00e1c s\u1ed1 ti\u1ec1n th\u01b0\u1edfng m\u1edbi nh\u1ea5t cu\u1ed1i c\u00f9ng. Trong c\u00e1c b\u1ea3n nh\u00e1p c\u1ee7a c\u01a1 s\u1edf \u0111\u00e1nh b\u1ea1c ch\u1ea5p nh\u1eadn b\u1ed5 sung ti\u1ec1n th\u01b0\u1edfng, b\u1ea1n c\u00f3 th\u1ec3 mua n\u0103m tr\u0103m ph\u1ea7n th\u01b0\u1edfng xoay v\u00f2ng ngay sau \u0111\u00f3 \u0111\u1ec3 th\u1eed 5 \u0111\u00f4 la. M\u1eb7c d\u00f9 b\u1ea1n c\u1ea7n k\u00fd g\u1eedi $ 5 v\u00e0 \u0111\u1eb7t c\u01b0\u1ee3c $ B\u01b0\u1edbc 1, b\u1ea1n v\u1eabn ti\u1ebfp t\u1ee5c nh\u1eadn \u0111\u01b0\u1ee3c 100 \u0111\u00f4 la, \u0111\u00f3 l\u00e0 nhi\u1ec1u h\u01a1n g\u1ea7n nh\u01b0 b\u1ea5t k\u1ef3 ph\u1ea7n th\u01b0\u1edfng n\u00e0o kh\u00e1c kh\u00f4ng c\u00f3 \u00fd \u0111\u1ecbnh kh\u00e1c. M\u1ed7i m\u1ed9t trong nh\u1eefng tr\u00f2 ch\u01a1i tr\u1ef1c tuy\u1ebfn n\u00e0y c\u00f3 c\u00e1c bi\u1ebfn th\u1ec3 m\u1edbi l\u1ea1 v\u00e0 b\u1ea1n c\u00f3 th\u1ec3 quy \u0111\u1ecbnh m\u1ed9t \u0111i\u1ec1u \u0111\u1eb7t ra cho h\u1ecd. Tr\u00f2 ch\u01a1i s\u00f2ng b\u1ea1c c\u0169ng c\u00f3 th\u1ec3 nh\u1eadn \u0111\u01b0\u1ee3c m\u1ed9t s\u1ed1 s\u1ed1 ti\u1ec1n kh\u00e1c, li\u00ean quan \u0111\u1ebfn s\u00f2ng b\u1ea1c.<\/p>\n

Kh\u00f4ng \u0111\u1eb7t c\u01b0\u1ee3c 100 ph\u1ea7n tr\u0103m c\u00e1c v\u00f2ng quay mi\u1ec5n ph\u00ed l\u00e0 m\u1ed9t trong nh\u1eefng \u01b0u \u0111\u00e3i t\u1ed1t nh\u1ea5t \u0111\u01b0\u1ee3c cung c\u1ea5p t\u1ea1i c\u00e1c s\u00f2ng b\u1ea1c tr\u1ef1c tuy\u1ebfn. Khi m\u1ecdi ng\u01b0\u1eddi s\u1eed d\u1ee5ng c\u00e1c xoay chuy\u1ec3n n\u00e0y, m\u1ecdi ng\u01b0\u1eddi s\u1ebd th\u1eed \u0111\u01b0\u1ee3c \u0111\u01b0a ra l\u00e0m ti\u1ec1n m\u1eb7t th\u1ef1c s\u1ef1, kh\u00f4ng c\u00f3 \u0111i\u1ec1u ki\u1ec7n c\u00e1 c\u01b0\u1ee3c n\u00e0o. C\u00f3 ngh\u0129a l\u00e0 b\u1ea1n c\u00f3 th\u1ec3 r\u00fat l\u1ea1i ti\u1ec1n th\u1eafng c\u1ee7a m\u00ecnh m\u1ed9t l\u1ea7n n\u1eefa thay v\u00ec \u0111\u00e1nh b\u1ea1c m\u1ed9t l\u1ea7n n\u1eefa. Nh\u1eefng lo\u1ea1i ti\u1ec1n th\u01b0\u1edfng n\u00e0y th\u01b0\u1eddng \u0111\u01b0\u1ee3c li\u00ean k\u1ebft v\u1edbi c\u00e1c ch\u01b0\u01a1ng tr\u00ecnh khuy\u1ebfn m\u00e3i nh\u1ea5t \u0111\u1ecbnh n\u1ebfu kh\u00f4ng c\u00f3 b\u1ebfn c\u1ea3ng v\u00e0 b\u1ea1n s\u1ebd c\u00f3 th\u1ec3 c\u00f3 m\u1ed9t v\u1ecf b\u1ecdc chi\u1ebfn th\u1eafng t\u1ed1i \u01b0u.<\/p>\n

L\u00e0m th\u1ebf n\u00e0o \u0111\u1ec3 ch\u1eafc ch\u1eafn r\u1eb1ng v\u1ecb tr\u00ed m\u1edbi c\u1ee7a m\u1ed9t s\u00f2ng b\u1ea1c internet kh\u00e1c<\/h2>\n

\"game<\/p>\n

Ph\u1ea7n m\u1ec1m di \u0111\u1ed9ng trung th\u00e0nh \u0111\u1ea3m b\u1ea3o l\u1ed1i ch\u01a1i \u0111\u01a1n gi\u1ea3n, cho d\u00f9 c\u00f3 quay c\u00e1c c\u1ed5ng hay thi\u1ebft l\u1eadp c\u00e1c s\u1ef1 ki\u1ec7n th\u1ec3 thao hay kh\u00f4ng. To\u00e0n b\u1ed9 n\u0103m 2025 \u0111\u01b0\u1ee3c quy\u1ebft \u0111\u1ecbnh quan s\u00e1t s\u1ef1 ra m\u1eaft ho\u00e0n to\u00e0n m\u1edbi c\u1ee7a nhi\u1ec1u s\u00f2ng b\u1ea1c m\u1edbi nh\u1ea5t tr\u00ean internet, ra m\u1eaft tr\u1ea3i nghi\u1ec7m \u0111\u00e1nh b\u1ea1c s\u00e1ng t\u1ea1o v\u00e0 b\u1ea1n c\u00f3 th\u1ec3 n\u00e2ng cao c\u00e1c t\u00ednh n\u0103ng. Ng\u01b0\u1eddi ta \u01b0\u1edbc t\u00ednh r\u1eb1ng kho\u1ea3ng 15 s\u00f2ng b\u1ea1c d\u1ef1a tr\u00ean web m\u1edbi \u0111\u00e3 \u0111\u01b0\u1ee3c ra m\u1eaft m\u1ed7i th\u00e1ng, l\u00e0m n\u1ed5i b\u1eadt s\u1ef1 ph\u1ed5 bi\u1ebfn ng\u00e0y c\u00e0ng t\u0103ng c\u1ee7a c\u1edd b\u1ea1c tr\u1ef1c tuy\u1ebfn. SLOTSLV ch\u1eafc ch\u1eafn l\u00e0 m\u1ed9t trong nh\u1eefng s\u00f2ng b\u1ea1c d\u1ef1a tr\u00ean web t\u1ed1t h\u01a1n trong tr\u01b0\u1eddng h\u1ee3p b\u1ea1n \u0111ang c\u1ed1 g\u1eafng t\u00ecm c\u00e1c khe s\u00f2ng b\u1ea1c tr\u1ef1c tuy\u1ebfn c\u1ee5 th\u1ec3. S\u00f2ng b\u1ea1c tr\u1ef1c tuy\u1ebfn c\u0169ng cung c\u1ea5p c\u00e1c kho\u1ea3n thanh to\u00e1n an to\u00e0n, c\u00e1c nh\u00e0 \u0111\u1ea7u t\u01b0 th\u1eddi gian th\u1ef1c v\u00e0 b\u1ea1n s\u1ebd 31 v\u00f2ng quay mi\u1ec5n ph\u00ed sau khi b\u1ea1n \u0111\u0103ng k\u00fd.<\/p>\n

Tr\u00f2 ch\u01a1i \u0111\u1ea1i l\u00fd th\u1eddi gian th\u1ef1c: \u0110\u01b0a Vegas l\u00ean m\u00e0n h\u00ecnh<\/h2>\n

Ti\u1ec1n m\u1eb7t th\u1ef1c s\u1ef1 c\u00f3 l\u1ee3i nhu\u1eadn t\u1ea1i c\u00e1c s\u00f2ng b\u1ea1c tr\u1ef1c tuy\u1ebfn tr\u1ea3 ti\u1ec1n t\u1ed1t nh\u1ea5t ch\u1ee7 y\u1ebfu l\u00e0 m\u1ed9t \u0111i\u1ec3m c\u01a1 h\u1ed9i. M\u1eb7c d\u00f9 c\u00e1c l\u1ef1a ch\u1ecdn kh\u00f4ng k\u1ef9 l\u01b0\u1ee1ng, b\u1ea1n c\u00f3 th\u1ec3 c\u1ed1 g\u1eafng c\u01a1 h\u1ed9i c\u1ee7a m\u00ecnh trong Roulette Baccarat, Blackjack, M\u1ef9 ho\u1eb7c T\u00e2y \u00c2u v\u00e0 b\u1ea1n c\u00f3 th\u1ec3 r\u1ea5t s\u00e1u. C\u00e1c chuy\u00ean gia r\u1ea5t vui m\u1eebng \u0111\u01b0\u1ee3c kh\u00e1m ph\u00e1 nhi\u1ec1u spin mi\u1ec5n ph\u00ed 100 ph\u1ea7n tr\u0103m \u0111\u1ec1 xu\u1ea5t y\u00eau c\u1ea7u t\u1ea1i c\u00e1c s\u00f2ng b\u1ea1c tr\u1ef1c tuy\u1ebfn t\u1ed1t nh\u1ea5t c\u1ee7a ch\u00fang t\u00f4i. Ch\u00fang t\u00f4i t\u1eeb c\u00e1c l\u1ee3i \u00edch \u0111\u00e3 m\u00f4 t\u1ea3 c\u00e1c phi\u00ean b\u1ea3n ti\u1ec1n th\u01b0\u1edfng \u0111\u01b0\u1ee3c th\u00eam v\u00e0o c\u00e1c phi\u00ean b\u1ea3n th\u01b0\u1edfng th\u00eam b\u00ean d\u01b0\u1edbi li\u00ean quan \u0111\u1ebfn nh\u1eefng ng\u01b0\u1eddi \u0111\u0103ng k\u00fd c\u00f3 gi\u00e1 tr\u1ecb c\u1ee7a ch\u00fang t\u00f4i \u0111\u1ec3 tr\u1ea3i nghi\u1ec7m. \u0110\u1ed1i v\u1edbi nh\u1eefng ng\u01b0\u1eddi \u0111\u00e1nh b\u1ea1c m\u1ed9t tr\u0103m \u0111\u00f4 la c\u0169ng nh\u01b0 tr\u00f2 ch\u01a1i tr\u1ef1c tuy\u1ebfn c\u00f3 ph\u00eda t\u00e0i s\u1ea3n l\u00e0 10%, doanh nghi\u1ec7p \u0111\u00e1nh b\u1ea1c m\u1edbi nh\u1ea5t \u0111\u01b0\u1ee3c d\u1ef1 \u0111o\u00e1n s\u1ebd l\u01b0u tr\u1eef $ m\u01b0\u1eddi trong s\u1ed1 b\u1ea5t k\u1ef3 \u0111\u00f4 la n\u00e0o \u0111\u01b0\u1ee3c \u0111\u00f3ng vai ch\u00ednh. \u0110\u1ec3 c\u00f3 nh\u1eefng ng\u01b0\u1eddi tham gia, n\u00f3 ch\u1ec9 \u0111\u01a1n gi\u1ea3n l\u00e0 anh ta c\u00f3 th\u1ec3 \u0111\u01b0\u1ee3c d\u1ef1 \u0111o\u00e1n s\u1ebd m\u1ea5t nhi\u1ec1u h\u01a1n m\u1ed9t \u0111\u1ed9 tu\u1ed5i tuy\u1ec7t v\u1eddi \u0111\u1ec3 ch\u01a1i.<\/p>\n

C\u00e1c phi\u00ean b\u1ea3n ph\u1ed5 bi\u1ebfn v\u00ed d\u1ee5 nh\u01b0 Blackjack s\u1ed1ng v\u00e0 b\u1ea1n s\u1ebd l\u00e0m cho Roulette th\u1ef1c hi\u1ec7n tr\u1ea3i nghi\u1ec7m ti\u1ec3u thuy\u1ebft, th\u00eam v\u00e0o s\u1ef1 n\u1ed5i b\u1eadt li\u00ean t\u1ee5c c\u1ee7a ch\u00fang.Ch\u1ecdn doanh nghi\u1ec7p \u0111\u00e1nh b\u1ea1c c\u00f2n s\u1ed1ng ph\u00f9 h\u1ee3p nh\u1ea5t c\u00f3 th\u1ec3 t\u0103ng c\u1ea3m gi\u00e1c \u0111\u00e1nh b\u1ea1c c\u1ee7a ri\u00eang b\u1ea1n. \u01afu ti\u00ean c\u00e1c doanh nghi\u1ec7p \u0111\u00e1nh b\u1ea1c c\u00f3 nhi\u1ec1u tr\u00f2 ch\u01a1i video chuy\u00ean gia c\u00f2n s\u1ed1ng \u0111\u1ec3 l\u01b0u tr\u1eef tr\u00f2 ch\u01a1i c\u1ee7a b\u1ea1n th\u00fa v\u1ecb. \u0110\u00e1nh gi\u00e1 c\u00e1c d\u1ecbch v\u1ee5 tr\u00f2 ch\u01a1i tr\u00ean trang web cho Variety v\u00e0 b\u1ea1n c\u00f3 th\u1ec3 \u0111\u1ecbnh v\u1ecb v\u1edbi c\u00e1c l\u1ef1a ch\u1ecdn c\u1ee7a m\u00ecnh. C\u00e1c \u01b0u \u0111\u00e3i ch\u1ea5p nh\u1eadn \u0111\u00f3ng vai tr\u00f2 l\u00e0 m\u1ed9t s\u1ef1 bao g\u1ed3m n\u1ed3ng nhi\u1ec7t cho c\u00e1c chuy\u00ean gia m\u1edbi trong c\u00e1c s\u00f2ng b\u1ea1c d\u1ef1a tr\u00ean web, c\u00f3 xu h\u01b0\u1edbng \u0111\u1ebfn h\u00ecnh th\u1ee9c c\u1ee7a m\u1ed9t k\u1ebf ho\u1ea1ch ch\u00e0o m\u1eebng pha tr\u1ed9n ti\u1ec1n th\u01b0\u1edfng c\u00f3 100 % c\u00e1c xoay v\u00f2ng mi\u1ec5n ph\u00ed.<\/p>\n

100 ph\u1ea7n tr\u0103m c\u00e1c v\u00f2ng quay mi\u1ec5n ph\u00ed kh\u00f4ng c\u00f3 ti\u1ec1n th\u01b0\u1edfng ti\u1ec1n g\u1eedi l\u00e0 g\u00ec?<\/h2>\n

Nh\u00e0 h\u00e0ng S\u00f2ng b\u1ea1c \u0111\u1ecba ph\u01b0\u01a1ng ph\u1ee5c v\u1ee5 nh\u01b0 m\u1ed9t khu b\u1ea3o t\u1ed3n \u0111\u1ec3 s\u1edf h\u1eefu nh\u1eefng ng\u01b0\u1eddi \u0111am m\u00ea tr\u00f2 ch\u01a1i khe, c\u00e1c b\u00e1o c\u00e1o xoay v\u00f2ng t\u1eeb phi\u00eau l\u01b0u, ph\u1ea1m vi r\u1ed9ng v\u00e0 b\u1ea1n c\u00f3 th\u1ec3 kh\u00f4ng ng\u1eebng ph\u1ea5n kh\u00edch v\u1edbi m\u1ecdi reel. T\u1ef1 h\u00e0o v\u1edbi m\u1ed9t b\u1ed9 s\u01b0u t\u1eadp c\u00e1c ti\u00eau \u0111\u1ec1 v\u1ecb tr\u00ed \u0111\u1ed9c quy\u1ec1n, cho m\u1ed7i l\u1ea7n quay l\u00e0 m\u1ed9t nhi\u1ec7m v\u1ee5 cho th\u1ebf gi\u1edbi \u0111\u1ea7y \u0111\u1ee7 c\u1ee7a c\u00e1c b\u1ed1 c\u1ee5c \u0111\u1ed9c \u0111\u00e1o v\u00e0 b\u1ea1n s\u1ebd c\u00e1c t\u00ednh n\u0103ng s\u00e1ng t\u1ea1o. Duy\u1ec7t c\u00e1c b\u1ea3n in \u0111\u1eb9p v\u00e0 ki\u1ebfm \u0111\u01b0\u1ee3c gi\u1edbi h\u1ea1n, gi\u1edbi h\u1ea1n k\u00edch th\u01b0\u1edbc \u0111\u1eb7t c\u01b0\u1ee3c v\u00e0 b\u1ea1n c\u00f3 th\u1ec3 th\u00eam c\u00e1c y\u00eau c\u1ea7u m\u1eadt kh\u1ea9u ti\u1ec1n th\u01b0\u1edfng khi so s\u00e1nh c\u00e1c \u01b0u \u0111\u00e3i n\u00e0y. Th\u00f4ng tin Th\u00f4ng tin n\u00e0y c\u00f3 th\u1ec3 gi\u00fap b\u1ea1n t\u1eadn d\u1ee5ng c\u00e1c \u01b0u \u0111\u00e3i m\u1edbi c\u00f3 s\u1eb5n. Tuy nhi\u00ean, kh\u00f4ng, ph\u1ea3n h\u1ed3i th\u00e0nh vi\u00ean c\u00f3 xu h\u01b0\u1edbng l\u00e0m n\u1ed5i b\u1eadt s\u1ef1 c\u1ea7n thi\u1ebft cho ph\u1ea1m vi tr\u00f2 ch\u01a1i n\u00e2ng cao v\u00e0 b\u1ea1n c\u00f3 th\u1ec3 nhanh h\u01a1n c\u00e1c th\u1eddi \u0111i\u1ec3m hi\u1ec7u \u1ee9ng h\u1ed7 tr\u1ee3 kh\u00e1ch h\u00e0ng nhanh h\u01a1n l\u00e0m tr\u00f2n ph\u1ea7n m\u1ec1m c\u1ee5 th\u1ec3.<\/p>\n

\"game<\/p>\n

V\u00ec v\u1eady, n\u00f3 t\u1ef1 l\u1ef1c cho ph\u00e9p ng\u01b0\u1eddi tham gia x\u00e1c \u0111\u1ecbnh ph\u01b0\u01a1ng ti\u1ec7n hoa h\u1ed3ng n\u1ed5i ti\u1ebfng, c\u0169ng nh\u01b0 bitcoin, \u0111\u00f4 la bitcoin, litecoin, ethereum, v.v. C\u00f3 b\u01b0\u1edbc 1,400+ Gi\u1ea3i ph\u00e1p thay th\u1ebf tr\u00f2 ch\u01a1i tr\u1ef1c tuy\u1ebfn, c\u01a1 s\u1edf \u0111\u00e1nh b\u1ea1c Stardust l\u00e0 m\u1ed9t trong nh\u1eefng doanh nghi\u1ec7p \u0111\u00e1nh b\u1ea1c quan tr\u1ecdng nh\u1ea5t. \u0110i\u1ec1u n\u00e0y l\u00e0m cho n\u00f3 tr\u1edf th\u00e0nh m\u1ed9t s\u00f2ng b\u1ea1c \u0111\u1ecba ph\u01b0\u01a1ng r\u1ea5t linh ho\u1ea1t \u0111\u1ec3 b\u1ea1n s\u1eed d\u1ee5ng ph\u1ea7n th\u01b0\u1edfng b\u1ed5 sung kh\u00f4ng nh\u1eadn \u0111\u01b0\u1ee3c doanh nghi\u1ec7p \u0111\u00e1nh b\u1ea1c tr\u1ef1c tuy\u1ebfn c\u1ee7a m\u00ecnh t\u1eeb.<\/p>\n","protected":false},"excerpt":{"rendered":"

\u0110\u1ed1i v\u1edbi nhi\u1ec1u ng\u01b0\u1eddi \u0111ang \u0111\u00e1nh gi\u00e1 c\u00e1c s\u00f2ng b\u1ea1c tr\u1ef1c tuy\u1ebfn, vi\u1ec7c ki\u1ec3m tra th\u01b0 m\u1ee5c s\u00f2ng b\u1ea1c tr\u00ean internet \u0111\u01b0\u1ee3c cung c\u1ea5p \u00edt h\u01a1n \u0111\u1ec3 xem trong s\u1ed1 c\u00e1c t\u00f9y ch\u1ecdn t\u1ed1t h\u01a1n c\u00f3 s\u1eb5n. \u01afu \u0111i\u1ec3m \u0111\u1ec1 ngh\u1ecb ki\u1ec3m game kingfun tra gi\u1edbi h\u1ea1n c\u1ee7a nhau v\u00e0 \u0111\u1eb7t c\u01b0\u1ee3c th\u1ea5p nh\u1ea5t b\u1ea5t […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4867","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/4pie.com.mx\/index.php\/wp-json\/wp\/v2\/posts\/4867","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/4pie.com.mx\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/4pie.com.mx\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/4pie.com.mx\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/4pie.com.mx\/index.php\/wp-json\/wp\/v2\/comments?post=4867"}],"version-history":[{"count":1,"href":"https:\/\/4pie.com.mx\/index.php\/wp-json\/wp\/v2\/posts\/4867\/revisions"}],"predecessor-version":[{"id":4868,"href":"https:\/\/4pie.com.mx\/index.php\/wp-json\/wp\/v2\/posts\/4867\/revisions\/4868"}],"wp:attachment":[{"href":"https:\/\/4pie.com.mx\/index.php\/wp-json\/wp\/v2\/media?parent=4867"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/4pie.com.mx\/index.php\/wp-json\/wp\/v2\/categories?post=4867"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/4pie.com.mx\/index.php\/wp-json\/wp\/v2\/tags?post=4867"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}