Posts belonging to Category 'os-administration'

Linux cmd tips – better less

1, Exit but leave content on screen i often use less, but that’s horrible when you do exit and then you will see only terminal without the content. I found in manual function: -X or –no-init Disables sending the termcap initialization and deinitialization strings to the terminal.  This is  sometimes  desirable  if  the deinitialization  string [...]

Create SW RAID from disks which were in HW …

Create SW RAID from disks which were in HW RAID ARRAY When i built my new server, i got disks from old server. In old server was HW RAID array and the new server doesn’t supports HW RAID. So, i boot sysrescue CD on server and when i built new raid array i saw this [...]

SAN backups via snapshots

We have SAN storage arrays and licence for HW snapshots. I wrote some python script for backuping this big storage. I used pexpect module for cmd commands. So, this is my small python module for comunication with msa san storage (msaCmd.py): import pexpect import sys import time def sshMsaCmd(host, user, passwd, cmd, verbose = False): [...]