Como apresentar uma LUN para uma maquina virtual no ESX

•19 Junho, 2009 • Deixe um comentário

Senhores, deu um trabalho desgraçado fazer esse tutorial, então não reclamem por estar mal escrito pra caralho, puta que pariu! Inclusive to sabendo de outros blogs que estão copiando os posts daqui, tá foda isso.

Para usar cluster em vms você tem duas opções:

1 – Criar um disco de quorum e edita-lo deixando a propriedade dele com shared.

2 – Usar uma LUN da storage e apresentar um disco para a vm.

Vamos usar a segunda opção (depois que testar a primeira eu posto no blog):

- Crie uma LUN e apresente a mesma ao servidor fisico onde esta instalado a HBA.

- Acesse o VI cliente.

- Verifique se a LUN já foi detectada pelo SO navegando nas HBAs em: aba configuration > Storage Adapters

- Caso não apareça clique em Rescan…

- Após detectar a LUN vá para a opção storage

- No meu caso eu já tenho dois datastores apresentados pela storage e um terceiro do disco local, mas a LUN de 500 Gb não aparece.

-Só por curiosidade clique em “Add Storage”

- Marque a opção “DISK / LUN” > clique em Next


- Você vai verificar que a LUN aparece para ser configurada. Clique em “Cancel”, pois não queremos que esta LUN seja formatada com o sistema de arquivos vmfs.

- Vá até a vm que você quer apresentar a LUN > Clique com o botão direito > Edit settings

- Clique em “ADD”.

- Selecione “Hard Disk” > Clique em “Next”

- Escolha a opção “Raw Device Mappings”


-Escolha a LUN de sua preferência (no meu caso só existe uma).

-Marque a opção “store virtual machine”

- Marque a opção “physical”

-Deixe padrão

- Clique em “finish”

- Clique em OK

- Inicie sua vm e veja os discos instalados:

-Lembrando que para disco de quorum a MS recomenda um disco de no máximo 500 MB.

Bluescreen has performed an illegal operation. Bluescreen must be closed.

•17 Junho, 2009 • 2 Comentários

Imagine um cu dentro de outro.

BSOD

Music & culture for people who love charts

•16 Junho, 2009 • Deixe um comentário

É o propósito desse sitezinho muito massa. Quem gosta de gráficos vai se amarrar:

Exemplos bacanas:

Rodar o hiren’s boot no VMware

•15 Junho, 2009 • Deixe um comentário

Algumas vezes precisei dar um boot em uma VM com o Hiren’s BootCD pra fazer algo que não é possível dentro do sistema operacional, como por exemplo aumentar o disco no Virtual Center e depois estender uma partição no gerenciador de discos do Windows 2003 (no 2008 já é possível).

Quando tentar carregar alguma aplicação do Hiren’s Boot, um popup pergunta qual driver vc deseja carregar. Selecione ATAPICD e depois NO para as duas próximas perguntas. Assim todos os drivers serão carregados e o aplicativo encontrará os arquivos na mídia.

Testado no Hiren’s BootCD 9.5.

O serviço do Help and Support sumiu!

•20 Maio, 2009 • Deixe um comentário

Sinistro né? Bicheiras da Micosoft, aconteceu comigo no Windows 2003 SP2.

Pra resolver:

1. Iniciar/executar/cmd
2. Navegue até %windir%\PCHealth\HelpCtr\Binaries
3. Execute o comando:
start /w helpsvc /svchost netsvcs /regserver /install

4. Assim que terminar esse comando, o serviço já é pra ter aparecido no services.msc
5. Dê um start no serviço Help and Support

Servidor WSUS comendo muita memória

•20 Maio, 2009 • Deixe um comentário

Na verdade é o processo do MSDE/SQL Server.

Copie as linhas a seguir e salve como memoria.sql em algum lugar.

USE master
EXEC sp_configure ’show advanced options’, 1
RECONFIGURE WITH OVERRIDE

USE master
EXEC sp_configure ‘max server memory (MB)’, 512
RECONFIGURE WITH OVERRIDE

USE master
EXEC sp_configure ’show advanced options’, 0
RECONFIGURE WITH OVERRIDE

Abra o prompt e execute o seguinte:

osql -E -S nome_do_server\nome_da_instancia -i algum_lugar\memoria.sql

Dê um restart no serviço.

Pronto, seu MSDE estará setado para usar no máximo 512 MB.

Como desabilitar o maldito Phishing Filter para todos os usuários

•20 Maio, 2009 • Deixe um comentário

Crie um arquivo .reg com o seguinte conteúdo, execute na máquina ou coloque em um script de GPO para um monte de computadores.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\PhishingFilter]
“ShownVerifyBalloon”=dword:00000003
“Enabled”=dword:00000000

Deepest Sender

•19 Maio, 2009 • Deixe um comentário

Complemento Deepest Sender

Esse addon permite postar no WordPress selecionando um texto qualquer e enviando. Legalzinho.

Comandos do DOS equivalentes no Linux/Unix

•19 Maio, 2009 • 2 Comentários

Pra quem é um asno no linux como eu, mas conhece bem o DOS.

Tem alguns comandos antigos aí que não se aplicam às versões disponíveis hoje, mas quebra um galho.

linux

Command Comparison
DOS Command UNIX or Bash Command Action
DIR ls -l (or use ls -lF)(-a all files)
(df -k Space remaining on filesystem)
List directory contents
DIR *.* /o-d
DIR *.* /v /os
DIR /s
DIR /aa
ls -tr
ls -ls
ls -R
ls -a
List directory contents by reverse time of modification/creation.
List files and size
List directory/sub-directory contents recursively.
List hidden files.
TREE ls -R List directory recursivly
CD cd Change directory
MKDIR
MD
mkdir Make a new directory
ASSIGN ln Create a file or directory link
RMDIR
RD
rmdir Remove a directory
CHDIR pwd Display directory location
DEL
ERASE
rm -iv Remove a file
RMDIR /S
DELTREE
rm -R Remove all directories and files below given directory
COPY cp -piv Copy a file
XCOPY cp -R Copy all file of directory recursivly
RENAME or MOVE mv -iv Rename/move a file
TYPE cat Dump contents of a file to users screen
MORE more Pipe output a single page at a time
HELP or COMMAND /? man Online manuals
CLS clear
ctrl-l
Clear screen
EXIT
EXIT0
exit
exit 0
Exit a shell
FIND
FINDSTR
grep Look for a word in files given in command line
COMP diff Compare two files and show differences. Also see comm, cmp, mgdiff and tkdiff.
FC diff Compare two files and show differences. Also see comm, cmp, mgdiff and tkdiff.
SET set and env List all environment variables
SET variable=value
echo %variable%
setexport variable=value
echo $variable
Set environment variables
Show environment variables
ECHO text echo text Echo text to screen
SET variable setenv (for C shell) or export VAR=val (for Korn shell. Also VAR=val) Set environment variables
PATH
PATH %PATH%;C:\DIR
echo $PATH
PATH=$PATH:/dir
Display search path for executables.
Set PATH environment variable.
PROMPT $p$g export PS1=’\h(\u)\W> ‘ Set user command prompt.
DATE or TIME date Show date. (also set date – DOS only)
DOSKEY /h history List command history
DOSKEY NAME=command alias NAME=command Set command alias
BREAK ON trap Trap ctrl-break / Trap signals.
SORT sort Sort data alphabetically/numerically
EDLIN ed Line mode editor
EDIT filename.txt pico, gnp, vi, xedit, xemacs,dtpad Edit a file. The Linux editor which looks most like DOS edit is probably Pico. (Not a recomendation!)
BACKUP files A:\ tar -cvf /dev/fd0 files
mdir, mcopy
doswrite -a file (AIX only)
Save files to floppy.
See Using DOS floppies
RESTORE A:\ files tar -xvf /dev/fd0 files
mdir, mcopy
dosread -a file (AIX only)
Read files from floppy.
See Using DOS floppies
ATTRIB [+r|-r] [+a|-a] [+s|-s] [path\file] /s chmod Change file permissions. DOS: +:set to -:remove r:Read only a:Archive s:System /s:recursively
ATTRIB +h or -h mv file .file Change file to a hidden file – rename file with prefix “.”
PRINT lpr Print a file
CALL
COMMAND /C (DOS), CMD (NT)
source script (cshrc)
. script (bash)
sh script
Execute script from within batch shell.
MEM free
top
Show free memory on system
TASKLIST ps -aux
top
List executable name, process ID number and memory usage of active processes
MSD lsdev Show system info (Command borrowed from AIX)
SCANDISK
DEFRAG C:
fsck
debugfs
Check and repair hard drive file system
CHDISK du -s Disk usage.
FDISK fdisk Tool to partition a hard drive.
SUBST V: C:\directory\path mount Mount a drive letter to a folder/directory on your hard drive.
FORMAT mke2fs
See: fdformat and mformat for floppies
Format drive file system.
For floppy drive use see YoLinux Tutorial Using DOS Floppies with Linux
VER uname -a
echo $SHELL
cat /etc/issue
Operating system/shell version
pkzip tar and zip Compress and uncompress files/directories. Use tar to create compilation of a directory before compressing. Linux also has compress, gzip
HOSTNAME hostname Print host name of computer
PING ping Send packets to a network host
TRACERT traceroute Show routes and router hops to given network destination.
IPCONFIG ifconfig Display/configure network interface
NBTSTAT (Netbios info: -n, -c)
NBTSTAT -a host-name
NBTSTAT -A IP-address
nslookup host-name
host host-name
Print DNS info for host.
ROUTE PRINT route -n Print routing table.
NET HELP START chkconfig –list |grep on List services.
NET STARTservice-name
NET STOPservice-name
service service-name start
service service-name stop
Start/stop service/daemon.
NET SHARES df Show mounted shares/filesystems.
NET SEND <node-name> <message> smbclient -M MS-Windows-host-name
talk
Send pop-up to a MS/Windows PC
Send message to another Unix/Linux user. See YoLinux tutorial
WIN startx Start X-Windows.
REBOOT shutdown -r now Reboot system.
Shell Descriptor/Operators:
DOS Descriptor/Operator UNIX or Bash Descriptor/Operator Description
\ / Directory path delimiter
.\ ./ Current directory
..\ ../ Parent directory
ctrl-z ctrl-d End of file/close shell
ctrl-c ctrl-c Interrupt/process break
* * file name wild card
? ? Single character wild card
%VAR% $VAR Variable prefix
%1 %2 %3 $1 $2 $3 First, second and third shell command line arguments.
/ - Command line option flag prefix
| | Pipe
> > stdout redirection
>> >> stdout redirection overwrite
< < stdin redirection

Shell Script Operators:
DOS Operator UNIX or Bash Operator Description
@
ECHO OFF
set +v Set verbose mode off. -v: Echo each line of shell script as it is executed.
% $ command line argument prefix. DOS: %1 Bash: $1 for firs argument.
REM # Comment. (Not processed.)
== = string “equal to” comparison
!==! != string “not equal to” comparison
NOT ! negative of test expression
CHOICE case case/switch statement
IFIF EXIST C:\filename

IF NOT EXIST C:\filename

if [[ test-resulting-in-bool ]];
then

elif …;
then

else

fiif [ -e /dir/filename ];
then

if [ ! -e /dir/filename ];
then

if-testIf file exists

If file does not exist.

GOTO ABC

:ABC
goto ABC

:ABC
Branch
FOR … IN … DOFOR %%fff IN (C:\dir\*.*)
DO echo %%fff
for ffiillee in lliisstt;
do …;
donefor (( expr1; expr2; expr3; ))
do …;
done
For loop
ERRORLEVEL $? exit status/return code
PAUSE sleep sleep for specified interval

Bash shell aliases for DOS users:

The following are bash shell aliases which can be added to the system profile or the user’s personal profile ($HOME/.bashrc) to correct and help DOS users on Linux.

alias dir="echo 'Use the command: ls -lF'"
alias tree="echo 'Use the command: ls -R'"
alias del="echo 'Use the command: rm -iv'"
alias move="echo 'Use the command: mv -iv'"
alias rename="echo 'Use the command: mv -iv'"
alias copy="echo 'Use the command: cp -piv'"
alias type="echo 'Use the command: cat'"
alias cls="echo 'Use the command: clear'"
alias mem="echo 'Use the command: free'"
alias ver="echo 'Use the command: uname -a'"
alias A:="echo 'Use the command: mdir a:'"
alias a:="A:"
alias C:="echo 'No C drive in Linux. Go to your home directory with the command: cd'"
alias c:="C:"

Devices:
DOS Device Linux Device Description
NUL /dev/null Send into nothingness
CON stdin stdin from console
PRN
LPT1
/dev/lp0 First printer device
COM1 /dev/ttyS0 Firsst serial port

Tadeu viado

•19 Janeiro, 2009 • 1 Comentário

Essa porra deve ser estudante de direito de 2º período…

Tadeu viadinho