Thursday, June 4, 2009

Does My Dog Have Ringworm Or Hot Spot?

Have a nice distro SliTaz its USB

Proxmox I installed on my server with 2 physical disks mirrored RAID1 (with a hard raid controller PERC) seen as / dev / sda with a size of 73GB for Linux.
Proxmox partitionnment installed with a default I had in the end the following partitionnment download:




calc0: / var / lib / vz # fdisk / dev / sda-l
Disk / dev / sda : 73.5 GB, 73555509248 bytes 255 heads
, 63 sectors / track, 8942 cylinders Units =

cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System

/ dev/sda1 * 1 66 524288 83 Linux / dev/sda2 66 8942 7130 2295 8th Linux LVM

 

and at the LVM had the following info on the physical level, the volume group and logical






calc0nokvm: / var / lib / vz # pvdisplay
 

--- Physical volume --- PV


Name / dev/sda2 VG Name


pve


PV Size 68.00 GB / not usable 0


Allocatable yes (view full)
 
PE Size (KByte) 4096 Total


PE 17407 Free PE


0


Allocated PE 17407


PV UUID 3bzRCT-gRWz-7EGo-IMAl-rIAq-SJDz-rLqOOd


calc0nokvm:/var/lib/vz# vgdisplay


--- Volume group ---


VG Name pve


System ID

Format lvm2 Metadata Areas 1

Metadata Sequence No 4
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 3
Max PV 0
Cur PV 1
Act PV 1

VG Size 68.00 GB
PE Size 4.00 MB
Total PE 17407 Alloc PE / Size 16385 / 64.00 GB
Free PE / Size 1022 / 3.99 GB
VG UUID qbzjFv-rYTt-pRGE-FfUP-BgXr-z54a-5QNmXh

calc0nokvm:/var/lib/vz# lvdisplay
--- Logical volume ---
LV Name /dev/pve/swap
VG Name pve
LV UUID cuS75E-ppYt-Rk1H-8CyL-Hhc9-Gs3b-v5yMUW
LV Write Access read/write
LV Status available
# open 1
LV Size 7.00 GB
Current LE 1792
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 254:0
--- Logical volume ---
LV Name /dev/pve/root
VG Name pve
LV UUID gZ4825-OGRN-vqvm-9JUF-1FvK-II91-feQDcg
LV Write Access read/write
LV Status available
# open 1
LV Size 17.00 GB
Current LE 4352
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 254:1
--- Logical volume ---

LV Name /dev/pve/data
VG Name pve
LV UUID uovK3Q-gOP8-svnT-TxHg-CA3X-Cek8-FaLZG1
LV Write Access read / write LV Status

available # open 1 LV Size
40.00 GB
Current LE 10241
Segments 1 Allocation inherit

Read ahead sector 0 Block device 254:2


What makes it not much I had to create my virtual machines for OpenVZ a simple df told me that I only had little more than 19GB free: calc0nokvm: / var / lib / vz # df-hT

Filesystem Type Size Used Avail Use% Mounted on / dev / pve / root ext3 17G 750M 16G 5% / tmpfs tmpfs 3.9G 0 3.9G 0% / lib / init / rw udev tmpfs 10M
64K 10M 1% / dev tmpfs tmpfs 3.9G 0 3.9G 0% / dev / shm / dev / mapper / pve-data ext3 40G 21G 19G
53 % / var / lib / vz / dev/sda1 ext3 35M 496m 436M 8% / boot
It turns out that I had added three brand new 400GB drives in RAID5 so that I had a / dev / sdb 800GB of wondering who to be used. I unable to format is to use a symbolic link to link / var / lib / vz / root partition to my new seuleument of the tremendous blow web management interface Proxmox would not have given correct information on the available space, so I ' I decided to use the great opportunity to LVM2 Logical Volume Manager for Linux.
Creating a partition on monnouveau Disk / dev / sdb with fdisk / dev / sdb and type 8e Linux LVM which gives me:
calc0nokvm: / var / lib / vz # fdisk / dev / sdb-l Disk / dev / sdb: 899.9 GB, 899995926528 bytes 255 heads
, 63 sectors / track, 109418 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System /dev/sdb1 1 109418 878900053+ 8e Linux LVM
Initialisation du disque au niveau lvm avec un
pvcreate /dev/sdb1
calc0nokvm:/var/lib/vz#
pvcreate /dev/sdb1 Physical volume "/dev/sdb1" successfully created
calc0nokvm:/var/lib/vz# pvdisplay
--- Physical volume ---
PV Name /dev/sda2 VG Name pve PV Size 68.00 GB / not usable 0
Allocatable yes PE Size (KByte) 4096 Total PE 17407
Free PE 1022 Allocated PE 16385 PV UUID 3bzRCT-gRWz-7EGo-IMAl-rIAq-SJDz-rLqOOd
--- NEW Physical volume --- PV Name /dev/sdb1
VG Name PV Size 838.18 GB Allocatable NO
PE Size (KByte) 0 Total PE 0 Free PE 0
Allocated PE 0 PV UUID B1eOlE-xfwe-wDDJ-E15M-o5lV-VMSC-LJ9Hdk


Ajout de ce nouveau volume physique au "volume groupe" pve calc0nokvm:/var/lib/vz#
vgextend pve /dev/sdb1 Volume group "pve" successfully extended
calc0nokvm:/var/lib/vz# vgdisplay
--- Volume group --- VG Name pve System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 5
VG Access read/write
VG Status resizable MAX LV 0 Cur LV 3
Open LV 3
Max PV 0
Cur PV 2
Act PV 2
VG Size 906.18 GB
PE Size 4.00 MB
Total PE 231982
Alloc PE / Size 16385 / 64.00 GB
Free PE / Size 215597 / 842.18 GB
VG UUID qbzjFv-rYTt-pRGE-FfUP-BgXr-z54a-5QNmXh
  1. Increasing the size of a logical volume, in this case I add 100GB to volume / dev / pve / data
    calc0nokvm: / var / lib / vz # lvextend-L 100 G / dev / PvE / data

    Extending logical volume data to 140.00 GB Logical volume data
    Successfully resized


    not forget to update the filesystem with
    calc0nokvm: / var / lib / vz #
  2. resize2fs-p / dev / pve / data
  3. resize2fs 1.40-WIP (14-Nov-2006) Filesystem at / dev / pve / SI data mounted on / var / lib / vz; on-line resizing required old
    desc_blocks = 3 = 9 new_desc_blocks Performing an on-line resize of / dev / pve / data to 36701184 (4k) blocks. The filesystem on / dev / pve / data Is Now 36701184 blocks long. calc0nokvm: / var / lib / vz # df-hT

    Filesystem Type Size Used Avail Use% Mounted on / dev / pve / root ext3 17G 750M 16G 5% / tmpfs tmpfs 3.9G 0 3.9G 0% / lib / init / rw udev tmpfs 10M
    64K 10M 1% / dev tmpfs tmpfs 3.9G
    0 3.9G 0% / dev / shm
    / dev / mapper / pve-data ext3 138G 21G
    118g 16% / var / lib / vz
    / dev/sda1 ext3 35M 496m 436M 8% / boot





    Now as you can see from the above, I df well and truly won over 100GB on my pve-data logical volume or is "mount" my / var / lib / vz. And all without service interruption. I can any time restart the command to add space on one of my logical volumes. This flexibility is not beautiful? "

    This article on Wikipedia
    is useful, as the LVM Howto




Tuesday, May 19, 2009

Clarins Products Good For Acne Skin?

How to compare (and know) the debian packages installed on 2 servers

I use recently
distribution Proxmox
as surround virtualization.
Only it turns out that in the network or I use this distribution I use a proxy to get out on the Net. Here are the changes you need to perform the basic installation to make it work correctly. For "apt-get update" and "apt-get upgrade" function is modified (or created if necessary)
file / etc / apt / apt.conf
containing the line:
  • Acquire: : http::Proxy "http://10.1.253.63:3128"


    For wget works it modifies the file / etc / wgetrc around line 79 is removed by deleting the comment # and we correct the address of the proxy as follows: http_proxy =

    http://10.1.253.63:3128/



    for the command "pveam update" function is modified

    file:
    / usr/share/perl5/PVE/APLInfo.pm


    after line 84 in the update method is added:
    # this code works for ftp and http
    # Always use passive ftp
    local $ ENV {} = FTP_PASSIVE 1;
    my $ ua = LWP:: UserAgent-> new;

    $ ua-> env_proxy;

    # $ ua-> agent ("PVE/1.0");

    then just run in a Shell:
  • export http_proxy = "http://10.1.253.63:3128/"
    before launching the famous pveam update

  • Tuesday, May 5, 2009

    What Is The Safe Period For Intercourse

    Increase the size of a LVM2 logical volume online

    I currently working on setting a server
    Proxmox.

    This distribution allows to implement server virtualization quickly based on a debian 64 bit kvm and the tools I already use for quite some time on OpenVZ and Gentoo (a virtualization solution " container "for Linux I discovered), it will also have me do a post just on that.
    Meanwhile I give you the url
    my public notepad Virtualization

    always short is it that in my network surroundings.Its I am behind a proxy and it took me to do everything for mods 2-3 it works. And as Proxmox uses perl modules in PVE and I was tired of see Perl code in / usr/share/perl5/PVE / in Black and White with vim I wanted to enable syntax highlighting by a syntax enable command mode in vim and I see it respond in Nicht Supportieren this version of Vim! Ach
    not a Karambar! and making a
    vim - version
    I see there is a syntax-Was ist das! Neither one nor
    of two
    I run a apt-cache search vim
    that tells me that there is a package "vim-perl" and a shoo Chtit
    apt-get install vim-perl
    and I find myself with a good command vim.perl
    and now when vim.perl / usr/share/perl5/PVE/APLInfo.pm and I typing: syntax enable I actually Code of beautiful Technicolor. As I do not want of typing it every time I put it in ~ /. Vimrc and so it will be forever and simply. A + on the bus

    Monday, May 4, 2009

    Nami Bath Hentaï Picturs

    Using Proxmox behind a Proxy

    I had a directory full of tif files with tfw files. I wanted to meet me with all images converted Geotiff . The advantage then is that we included in the image file tiff any georeferencing information. To do this we need only one tool: gdal So with the command:

      for i in `ls -1` *. tif; do (gdal_translate-of-GTiff a_srs EPSG: 4149 $ i `basename $ i. tif` _geo.tif)
    1. done all the original files in your directory will be preserved and for each file tif MonBoFichier.tif there will MonBoFichier_geo.tif a new file that has been created. And these new files containing georeferencing information as you can see by running a tiffinfo or better one:
      listgeo cn41_geo.tif
      Geotiff_Information: Version: 1 Key_Revision: 1.0
    2. Tagged_Information:
    3. ModelTiepointTag (2.3 ) 0 0 0 550 000 158 000 0 ModelPixelScaleTag (1,3):
      5 5 0
      End_Of_Tags.
      Keyed_Information:
    4. GTModelTypeGeoKey (Short,1): ModelTypeGeographic
    5. GTRasterTypeGeoKey (Short,1): RasterPixelIsArea GeographicTypeGeoKey (Short,1): Unknown-4149 GeogCitationGeoKey (Ascii,7): "CH1903" GeogAngularUnitsGeoKey (Short,1): Angular_Degree End_Of_Keys. End_Of_Geotiff.
      GCS: 4149/CH1903
      Datum: 6149/CH1903
      Ellipsoid: 7004/Bessel 1841 (6377397.16,6356078.96)
      Prime Meridian: 8901/Greenwich (0.000000/ 0d 0' 0.00"E)
      Corner Coordinates: Upper Left <--ajout pour support proxy (550000d 0 '0.00 "E, 158000d 0' 0.00" N) Lower Left
      (550000d 0 '0.00 "E, 110000d 0' 0.00" N) Upper Right
      (620000d 0'4294967296 .00 "E 158000d 0 '0.00 "N) Lower Right
      (620000d 0'4294967296 .00" E, 110000d 0' 0.00 "N)
      Center (585000d 0 '0.00" E, 134000d 0' 0.00 "N)