Le blog de Jean David TECHER, un Réunionnais à Saint-Priest/Lyon

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


< 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 >

lundi 27 février 2012

Interesting images

Jana Defi...very very interesting came from "LimeLight" collection.... I've got one of Limelight images on my mug but not one of the following images
wget http://i9.fastpic.ru/big/2010/0813/87/c0d0c81e595bc4a8645c9a4f48883587.jpg
wget http://i9.fastpic.ru/big/2010/0813/29/0b1cf936a6f6af34e5b941a9ab80f229.jpg
wget http://i9.fastpic.ru/big/2010/0813/1f/e364c7561998df6773cd08ce909edf1f.jpg
wget http://i9.fastpic.ru/big/2010/0813/41/2681d11332617f44493ea9418cc09441.jpg
wget http://i9.fastpic.ru/big/2010/0813/a3/2ddfa2629bb68dde595712d439e6ada3.jpg
wget http://i9.fastpic.ru/big/2010/0813/4e/3a944d7cecc0a73323d34fac99f12b4e.jpg
wget http://i9.fastpic.ru/big/2010/0813/81/1f0cf03223220b38e9e3528130280d81.jpg
wget http://i9.fastpic.ru/big/2010/0813/cb/402e3b7a818af7331d32fea0aef0a5cb.jpg
wget http://i9.fastpic.ru/big/2010/0813/33/1eeb24dff6af6658284527909f54fd33.jpg
wget http://i9.fastpic.ru/big/2010/0813/86/c71f2e65c95d68132a78a7affa98a086.jpg
wget http://i9.fastpic.ru/big/2010/0813/2e/4863131d0a5b7b600abf22fdfed0842e.jpg
wget http://i9.fastpic.ru/big/2010/0813/6d/e82eba74c67eceb7b0a069017f1bb96d.jpg
wget http://i9.fastpic.ru/big/2010/0813/33/1eeb24dff6af6658284527909f54fd33.jpg
wget http://i9.fastpic.ru/big/2010/0813/c4/0f65a12043bb794fc3e85551d6dd8ec4.jpg
Enjoy your Monday !

EnterpriseDB / PostgreSQL Advanced Server 8.3 - Documentation on line

See http://www.enterprisedb.com/docs/en/8.3/server/index.html

mercredi 22 février 2012

Xen 4.2 VGA PASSTHROUGH NVIDIA - The usual way to compile Xen has changed...(revision>=24869)

To be honest I don't know from which revision way of compiling Xen has been changed. Usually once a week, I used to compiling Xen in the usual way.
make xen tools stubdom 
make install-xen install-tools install-stubdom
Now
./configure
has been introduced before the commands above.

Let's try to compile it

Lire la suite

fsarchiver: Backuping (PV)HVM domU Linux (LVM)

In my last job I was responsible not only for for Oracle databases asd DBA but for Xen maintenance too. I was used to backuping all my VMs using dd and pbzip2. The main command was something like - from dom0 -
# 1. Create a LVM snapshot
lvcreate -s -n <name_of_the_snapshot> -L<size>G /dev/xenvg/<name_of_LVM>
# 2. Backuping VM
dd if=/dev/xenvg/<name_of_the_snapshot> | pbzip2 -c -z -m1024 -v -p3 > /path/to/<name_of_backup_VM>.img.bz2
Today for personal reason, I will like to test a new tool: fsarchiver

1. fsarchiver - informations

For more details, have a look on the main Web site : http://www.fsarchiver.org/Main_Page

2. fsarchiver - installation

  • Prerequisites for Debian Squeeze
    apt-get update
    apt-get install zlib1g-dev libssl-dev libbz2-dev liblzo2-dev e2fslibs-dev attr-dev libssl-dev libblkid-dev uuid-dev  libgcrypt11-dev
  • lzma depends on xz
    wget http://tukaani.org/xz/xz-5.0.3.tar.bz2
    tar xjf xz-5.0.3.tar.bz2 
    cd xz-5.0.3/
    ./configure 
    make -j4
    make check
    make install && ldconfig
  • farchiver

    Download the last sources from http://sourceforge.net/projects/fsarchiver/files/fsarchiver-src/ then

    tar xvf fsarchiver-0.6.12.tar.gz 
    cd fsarchiver-0.6.12/
    ./configure 
    make -j4
    make install && ldconfig

3. Test for backups

I've got a domU mercury-xen01. This is a Linux PVHVM - I used it for my tests for VGA PassThrough -. This domU relies on LVM: /dev/xenvg/mercury-xen01-disk-1

3.1 Make a snapshot before testing

  1. lvcreate -s -n mercury-xen01-disk-1.snapshot -L30G  /dev/xenvg/mercury-xen01-disk-1
    
  2. Now we can use kpart
    root@mercury:~# kpartx -va /dev/xenvg/mercury-xen01-disk-1
    add map xenvg-mercury--xen01--disk--1p1 (253:14): 0 402339840 linear /dev/xenvg/mercury-xen01-disk-1 2048
    add map xenvg-mercury--xen01--disk--1p2 (253:15): 0 17084418 linear /dev/xenvg/mercury-xen01-disk-1 402343934
    add map xenvg-mercury--xen01--disk--1p5 : 0 17084416 linear 253:15 2
    

3.2 Backup with default compression level (-z3 / gzip)

This is the default compression level (equivalent to gzip -6 ) First have a look http://www.fsarchiver.org/Compression
fsarchiver savefs -j4 -v -o /opt/montage/mercury-xen01-disk-1_backup_2012-02-21.fsa /dev/mapper/xenvg-mercury--xen01--disk--1p1
For information about archive
root@mercury:~# fsarchiver archinfo /opt/montage/mercury-xen01-disk-1_backup_2012-02-21.fsa
====================== archive information ======================
Archive type: 			filesystems
Filesystems count: 		1
Archive id: 			4f4c603b
Archive file format: 		FsArCh_002
Archive created with: 		0.6.12
Archive creation date: 		2012-02-22_01-59-35
Archive label: 			
Minimum fsarchiver version:	0.6.4.0
Compression level: 		3 (gzip level 6)
Encryption algorithm: 		none

===================== filesystem information ====================
Filesystem id in archive: 	0
Filesystem format: 		ext4
Filesystem label: 		
Filesystem uuid: 		be744358-3672-4a94-818d-c09c178b01d2
Original device: 		/dev/mapper/xenvg-mercury--xen01--disk--1p1
Original filesystem size: 	188.84 GB (202765496320 bytes)
Space used in filesystem: 	10.05 GB (10787442688 bytes)
Archive size
root@mercury:~# du -hs /opt/montage/mercury-xen01-disk-1_backup_2012-02-21.fsa
4,1G	/opt/montage/mercury-xen01-disk-1_backup_2012-02-21.fsa

3.3 Backup with high compression level (-z9 / lzma)

Keep in mind
  • [+]: smaller archive, better decompression time
  • [-]: takes more time to generate archive
fsarchiver savefs -j4 -v -o -z9 /opt/montage/mercury-xen01-disk-1_backup_2012-02-21_using_lzma.fsa /dev/mapper/xenvg-mercury--xen01--disk--1p1
For informations about archive
root@mercury:~# fsarchiver archinfo /opt/montage/mercury-xen01-disk-1_backup_2012-02-21_using_lzma.fsa
====================== archive information ======================
Archive type: 			filesystems
Filesystems count: 		1
Archive id: 			4f4afe30
Archive file format: 		FsArCh_002
Archive created with: 		0.6.12
Archive creation date: 		2012-02-22_02-10-24
Archive label: 			
Minimum fsarchiver version:	0.6.4.0
Compression level: 		9 (lzma level 9)
Encryption algorithm: 		none

===================== filesystem information ====================
Filesystem id in archive: 	0
Filesystem format: 		ext4
Filesystem label: 		
Filesystem uuid: 		be744358-3672-4a94-818d-c09c178b01d2
Original device: 		/dev/mapper/xenvg-mercury--xen01--disk--1p1
Original filesystem size: 	188.84 GB (202765496320 bytes)
Space used in filesystem: 	10.05 GB (10787442688 bytes)
Archive size
root@mercury:~# du -hs /opt/montage/mercury-xen01-disk-1_backup_2012-02-21_using_lzma.fsa
3,3G	/opt/montage/mercury-xen01-disk-1_backup_2012-02-21_using_lzma.fsa

4. Test for restore

To be completed!