31 May 2013 @ 2:39 PM 

My server is dead now and I have 2 HDD drives with LVM on them. So I’ve decided to add these drives into another server, so I’ll be able to get data.
So what I’m going to do?
1. You need to add your drives into your server, and reboot it (if you have hot-swap HDDs, no reboot is required).

2. Your system should find those HDDs, check yourself:
fdisk -l
There should be few drives to be sure you see your new drives you can compare serials on the HDD side and via:
hdparm -i /dev/sd* or
hdparm -i /dev/hd* or
hdparm -i /dev/your_drive_name (usually its sda hda, anyway correct name you can see in result of fdisk -l)

3. Now you need to check, if your system can see your LVM Volume Groups:
vgscan
vgdisplay

Example of my one:
— Volume group —
VG Name vgdisk4
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 2
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 931,51 GB
PE Size 4,00 MB
Total PE 238466
Alloc PE / Size 238080 / 930,00 GB
Free PE / Size 386 / 1,51 GB
VG UUID 1yehuY-dAfQ-Ki2r-reMY-P33U-vlJg-Jyug7u

More »

Posted By: lvlind
Last Edit: 06 Oct 2016 @ 03:54 PM

EmailPermalinkComments Off on LVM HDD migration
Tags
Tags: , ,
Categories: Uncategorized

 26 Nov 2012 @ 8:28 AM 

How to setup Django on the server with CPanel control panel. CPanel uses Python 2.4, but Django requires PHP mod_wsgi, which requires Python 2.6+.
We need to install 2 Python versions.


cd /usr/local/src/
wget http://www.python.org/ftp/python/2.6/Python-2.6.tgz
tar -xvzf Python-2.6.tgz
./configure --enable-shared
make install
cd /etc/ld.so.conf.d
echo "/etc/ld.so.conf.d/opt-local.conf" > python26.conf
ldconfig

Now Now you’re ready to build mod_wsgi through easy_apache. Download custom_opt_mod-mod_wsgi.tar.gz from this ticket at google code and run:
More »

Posted By: lvlind
Last Edit: 06 Oct 2016 @ 03:54 PM

EmailPermalinkComments Off on CPanel + Python 2.6 + Django
Tags
Tags: , ,
Categories: Uncategorized

 15 Nov 2012 @ 9:09 AM 

Building FFmpeg on CentOS:

1. Update and install build environment:

yum update
yum install make automake autoconf libtool gcc-c++

2. Install YASM:

cd /tmp
wget http://pkgs.repoforge.org/yasm/yasm-1.1.0-1.el5.rf.x86_64.rpm
rpm -ivh yasm-1.1.0-1.el6.rf.x86_64.rpm

More »

Posted By: lvlind
Last Edit: 06 Oct 2016 @ 03:54 PM

EmailPermalinkComments Off on Centos 5 FFmpeg
Tags
Tags: , ,
Categories: Uncategorized





 Last 50 Posts
Change Theme...
  • Users » 1
  • Posts/Pages » 35
  • Comments » 0
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight

About



    No Child Pages.

Need Help?



    No Child Pages.

Check your IP



    No Child Pages.