Sysadmin blog

Aller au contenu | Aller au menu | Aller à la recherche

Bienvenue sur mon blog!

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Quisque sed felis. Aliquam sit amet felis. Mauris semper, velit semper laoreet dictum, quam diam dictum urna, nec placerat elit nisl in quam. Etiam augue pede, molestie eget, rhoncus at, convallis ut, eros. Aliquam pharetra. Nulla in tellus eget odio sagittis blandit. Maecenas at nisl. Nullam lorem mi, eleifend a, fringilla vel, semper at, ligula. Mauris eu wisi. Ut ante dui, aliquet nec...

Vous pouvez éditer ce texte grâce à la page de configuration du thème.

mercredi 24 août 2016

VEEAM 2012 : System.OperationCanceledException: The operation was canceled.

Errors :

Service cannot be started. System.OperationCanceledException: The operation was canceled.
   at Veeam.Backup.DBCreator.BackupDatabaseDeployer.CanDeploy(IDatabaseVersion databaseVersion)
   at Veeam.Backup.DBCreator.BackupDatabaseDeployer.DatabaseDeploy()
   at Veeam.Backup.DBCreator.BackupDatabaseDeployer.Deploy()
   at Veeam.Backup.DBManager.SqlRetryableInitializer.Init()
   at Veeam.Backup.Service.CVbServiceImpl..ctor(CVbEnvironment env, CTerminationMediator terminator, IAirInteractions airInteractions)
   at Veeam.Backup.Service.CVeeamBackupSvc.OnStart(String[] args)
   at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state)

Solution :

You have to start/restart manually the SQL SERVER ! (via the SQL SERVER CONFIGURATION MANAGER)

jeudi 18 août 2016

[ASTUCE] Perte mot de passe admin owncloud

Dans le cas où vous perdez le mot de passe administrateur (admin) de l'application owncloud, vous pouvez le réinitialiser (il y a plusieurs solutions).

1/ Il faut générer un nouveau mot de passe en SHA :

echo -n "NewPassword" | sha1sum

2/ Puis mettre à jour le champ "password" dans la table "oc_users".

dimanche 17 avril 2016

Setting up HA with pfense

How to set up HA (high availability) with pfsense (master & slave) ?

In our case, we have :

  • two pfsense servers, already installed
  • two physical interfaces (1 for WAN and 1 for LAN).
  • 3 WAN IP (1 for each pfsense, one for the server which needs the network HA)
  • 3 LAN IP (1 for each pfsense, one will be the gateway)

1/ On each pfsense, assign two IPs for LAN (192.168.3.171 & .172) & WAN :

pfsense.png

2/ On the master

a/ We set up the virtual IP/gateway : 192.168.1.173/24 (tab "firewall") :

pfsense1.png

b/ in "carps settings" (tab firewall/virt IP), we set the slave's IP (192.168.3.172), add the login/password, click on "save" to apply the changes.

pfsense2.png

2/ On the slave

a/ in "carps settings" (tab firewall/virt IP), we set the master's IP (192.168.3.171), click on "save" to apply the changes.

pfsense3.png

The next step is : the two pfsense must be synchronized.

On the master :

pfsense4.png

On the slave :

pfsense5.png

Conclusion :

From now , all the changes you will do must be done on the master.

mercredi 13 avril 2016

How to setup loadbalancer.org with HA

What is the purpose ?

We want to upgrade a loadbalancer (from loadbalancer.org) from 7.x.x to 8.x.x. The solution is to reinstall the two lb.

Image v8.0.1 : v8.0.1-c758f11b.img.tar (1).xz

set up the network conf

On each lb :

1/ Next, you need to make a bootable USB with the image and then you boot on.

2/ You have to enter "Yes" to install, After that, you reboot your system.

3/ The first thing to do is to log in (user / password): root / loadbalancer

4/ Set up the two main interfaces : eth0 and eth1

# cat /etc/sysconfig/network-scripts/ifcfg-eth0_0
# Auto generated by Loadbalancer.org appliance
DEVICE=eth0
SLAVE=no
IPADDR=192.168.2.3
NETMASK=255.255.255.0
MTU=1500
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
# cat /etc/sysconfig/network-scripts/ifcfg-eth1_0
# Auto generated by Loadbalancer.org appliance
DEVICE=eth1
SLAVE=no
MTU=1500
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
IPADDR=xx.xx.xx.xx
GATEWAY=xx.xx.xx.xx
NETMASK=255.255.255.192

And :

ifup eth0 & ifup eth1

Ping is now OK.

Set up the HA via the web after the two install

Start you browser and go on the : http://xx.xx.xx.xx:9080/ (login/passowrd :loadbalancer/loadbalancer)

You now go to "High Availability Configuration" fill in the peer adress and the password (loadbalancer in our case)