Hyper-V Cluster: iSCSI over SMB – error 1460

If you are experiencing storage error 1460 with Hyper-V Cluster, on a secondary node (not the disk owner), you should check first ISCSI connection properties then enable SMB Client and Server protocols on all network adapters. I know this is not so nice but Windows Cluster may try to estabilish a connection over a non preferred network interface so timeout causes the disk connection to fail.

Event ID generated: 5142
Source: Microsoft-Windows-FailoverCluster
Description: Cluster Shared Volume ‘Volume_name’ (‘Cluster Disk #’) is no longer accessible from this cluster node because of error ‘ERROR_TIMEOUT(1460)’. Please troubleshoot this node’s connectivity to the storage device and network connectivity

When accessing a CSV volume from a passive (non-coordinator) node, the disk I/O to the owning (coordinator) node is routed through a ‘preferred’ network adapter and requires SMB be enabled on that network adapter. For SMB connections to work on these network adapters, the following protocols must be enabled:

Client for Microsoft Networks
File and Printer Sharing for Microsoft Networks

Reference: http://support.microsoft.com/kb/2008795

This is one of the reasons why I prefer working with Citrix XenServer.

UltraDefrag – Open Source Defragmenter

We all know that Windows NTFS and Windows FAT filesystems tend to fragment upon disk operations.

Both client and server operating systems suffer to this condition so the problem is: how to automatically control and block fragmentation growth?

I tested many defragmentation softwares, both free and proprietary but you know, nowadays we all tend to open source solutions.
Finally I found an awesome open source defragmenter: UltraDefrag, actually at 7.0 beta version.

UltraDefrag was originally written by Dmitri Arkhangelski, chief and head developer of the project.

The most useful feature of UltraDefrag is the boot-time defrag. While booting, Windows launches the pre-GUI command-line defragger. Script is customizable, this lets you configure which kind of files have to be processed.

Download UltraDefrag at http://ultradefrag.sourceforge.net.

Lavorare in Team con Eclipse su SVN

Lavorare in team con Eclipse su SVN è semplice, basta installare i plugin dal menu “Install software”. Una volta installati i plugin (che trovare sotto Collaboration),

dovete andare su Window, Preferences, SVN, SVN Ignores

e indicare i seguenti patterns

.classpath .project .settings* target

Questo passaggio è fondamentale per evitare conflitti con gli altri sviluppatori ad ogni commit.

Mozilla Thunderbird – recuperare cartella di posta dannaggiata

Mozilla Thunderbird è ancora molto lontano dall’essere un valido sostituto di Microsoft Outlook o peggio ancora di qualsiasi software corporate collaboration server-based, come per esempio Zimbra o Horde.

Nonostante rimanga valido solo per sostituire Outlook Express, alcune aziende lo utilizzano per gestire la posta elettronica su alcune postazioni. Chiaramente, se un’azienda utilizza Mozilla Thunderbird per la posta elettronica, significa automaticamente che manca completamente un’infrastruttura informatica ben progettata.

L’errore più grande che si commette è quello di configurare Mozilla Thunderbird come client POP3. Così, la posta viene scaricata dal server, cancellata da un posto sicuro e salvata in un unico file, Inbox, pronto per danneggiarsi al primo aggiornamento di Thunderbird non riuscito. Eh si, percHé di aggiornamenti Thunderbird ne ha ormai ogni settimana.

Fortunatamente, Thunderbird è cresciuto in un sano ambiente Posix-Like, pertanto l’archiviazione avviene su file di testo sulla falsa riga dei file mail unix spool.

Se per vostra sfortuna avete perso tutta la posta e visualizzate la cartella Inbox o Posta in arrivo vuota, calma e sangue freddo. La posta c’è :D. E’ solo nascosta nel file corrotto Inbox, per chi usa per esempio Windows XP su (ahemmm) C: (ahahah) Documents and SettingsUsernameImpostazioni LocaliDati applicazioniMozilla ThunderbirdProfilenameMail

Aprite il file Inbox con un editor di testo e prima di tutto salvate la posta, poi cambiate tutti gli status su 0.

Ah, e mi raccomando… utilizzate SEMPRE il protocollo IMAP. Così se dovessesse succedere ancora basterà cancellare l’account e ricrearlo.

alla prossima!

Searching inside a lot of files in Linux

Hi all,
how many times you Linux newbies needed to search inside a lot of files, looking for a specified string?

This task is really useful, specially when debugging websites and php scripts.

So, this is the command you need:


find . | xargs grep 'string to search'

Let’s look at how it works:

find – it returns the name of files found inside the given directory, recursively looking inside sub-directories, one name per line.

grep – it strips a line of a given input and returns it when result matches

xargs – executes a command, passing to it the arguments read from the standard input.

Bye!

Create a TAR archive of a directory

A common task in unix-like operating systems is creating an archive of many files or directories in a single file. The tar command is one option for archiving and has many options and can do many things.

In a simple example, you can create a file called archive.tar of all the files and subdirectories in the current directory with the following command:

tar cf archive.tar *

Note that this file is different from a zip archive commonly used in Windows environments because it is uncompressed.

You can also preserve permissions, owner and group by adding the p parameter.