Arquivo

Archive for fevereiro \27\UTC 2014

LVM Mirror Strict allocation

fevereiro 27, 2014 Deixe um comentário

1. Use the strict allocation policy for all mirrored logical volumes. Strict allocation forces mirrors to occupy different disks. Without strict allocation, you can have multiple mirror copies on the same disk; if that disk fails, you will lose all your copies. To control the allocation policy, use the –s option with the lvcreate and lvchange commands. By default, strict allocation is enabled.

Anúncios
Categorias:HPUX, LINUX, LVM Tags:, ,

Apagando linhas em branco no Linux / Unix

fevereiro 20, 2014 Deixe um comentário

Comando para o VI
:g/^$/d

GNU Linux
sed -i ‘/^$/d’ arquivo.txt

Unix -> AIX / HPUX / Solaris
sed ‘/^$/d’ arquivo.txt > arquivo_sem_linhas.txt