Server :: Splitting A Mirror With LVM?
Feb 22, 2010
I'm running Red Hat Enterprise Linux ES release 4 (Nahant Update 6).
I've created a mirror of a Logical Volume with this command:
# lvconvert -m1 --corelog /dev/datavg/data /dev/dm-16
Now I've this:
# lvs -a -o name,copy_percent,devices
LV Copy% Devices
data 100.00 data_mimage_0(0),data_mimage_1(0)
[data_mimage_0] /dev/dm-11(0)
[Code].....
My goal was to remove devices dm-10, dm-11 and dm-14 from my VG, so I decided to extend the VG with dm-16 and mirror my data LV to that device, then split that mirror from the other devices. The FS is mounted and need to stay online...
View 1 Replies
ADVERTISEMENT
Apr 7, 2010
I need to split a logical volume ( only have /boot and lvm partitions on drive)
This new logical volume needs to take up most of the existing space.
I'm just wondering about the sequence of steps to take before I do this.
How do I resize the new/old LVM partitions - and would I need to re-size the underlying fs?
View 4 Replies
View Related
Apr 8, 2010
I'm trying to transfer a large .tgz file from a CentOS dedicated server to a linux webhost (unknown OS). The problem is the webhost will not allow a 1.1gb file to be uploaded, however it will allow the upload in 149MB chunks. I used the split command to segment my tgz into 7 segments under 150mb. I then uploaded all segments via FTP which worked. Then I tried to join the segments to create the original tgz. The join appears to work with no issues. However, when I try to extract the tgz it appears there is a problem, most, but not all files are extracted and there is this error message:
Code: gzip: stdin: Input/output error
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now It appears the join did not work and the tgz is slightly corrupt. What am I doing wrong? Here's the commands I'm using:
1. Create the original tgz on the dedicated server
Code: tar -czf mysite.tgz ./myfolder
2. Split the tgz into segments
Code: split -b 149m -d mysite.tgz seg
# using the -d switch so the segment files use a numerical suffix
# I now have these files:
seg00
seg01
seg02
seg03
seg04
seg05
seg06
seg07
3. Transfer segments to the other webhost using FTP
Code: # hand typing (not a script)
ftp ftp.mysite.com
myusername
mypassword
binary
cd somefolder
put seg00
put seg01
put seg02
# through to seg07
4. Join up the segments on the new webhost
Code: # this is in a .sh script file
cd /full/path/to/somefolder
cat seg* > mysite.tgz 5. Extract the new tgz
Code: # this is in a .sh script file
cd /full/path/to/somefolder
tar -xzf mysite.tgz
# the above error is now thrown.
That's it. What am I doing wrong that's causing the above error?
View 5 Replies
View Related
Jan 15, 2011
I have 2 servers each one with a RAID and I want them mirror they data so if one of them goes down the other one take the job with out disruption. I've heard of multipath by I want to know it in detail or learn of more options.
View 2 Replies
View Related
Jan 13, 2011
We have two CentOS 5 servers in production (web and database). We are setting up a single staging server that will mirror the configurations of these servers as closely as possible. What is the easiest way to ensure the exact same software and configs as the production servers are setup on the new staging server. Our contracted data center provider has already informed us that they do not perform images and NO we do not have physical access to the machines. It is undetermined whether we will be virtualizing the staging server into two virtual servers yet, so for the purposes of this post lets assume we are not. I'm seeking a faster/more precise method than doing this by eye and hand.
Some information on our web server code...
View 4 Replies
View Related
May 17, 2011
We are using Linux as our database server and Microsoft Sever 2008 as our file server. Both are on independent servers. We would like to be able to mirror each server on the other for disaster recovery purposes. I am completely new to Linux.
View 3 Replies
View Related
Oct 12, 2010
Im using Ubuntu 10.4 LTS. New user. Looking for a CRM that is comparable to ACT, BCM that is in MS Office, or Sugar like that does not require a server. Need something light for stand alone CRM.
View 1 Replies
View Related
Jan 3, 2011
Server A is running Centos 5.5, Server B is running Centos 5.5.What is the simplest way to grab the package list from Server A, and use yum/rpm to make sure that the same packages are installed on server B, and if not -- install them?
View 1 Replies
View Related
Apr 26, 2011
I am building a new server to replace a MAc server. I want to use CentOS. I don't know how to view the software in the ISO's; I don't know what version I will need to get these versions:
Apache 2.2.8
MySQL 5/0.45
PHP 5.2.5
I have posted this in the CentOS forums. But I need an answer ASAP.
View 1 Replies
View Related
Jun 26, 2009
I have a server, running Centos 5 and it is working fine. Now I want to have another server (server2), mirror of my current server (server 1) if any time my (sever 1) stopped responding, (server 2) should start working until I fix server 1.
View 1 Replies
View Related
Jan 27, 2010
My requirement is to install Ubuntu SERVER 8.04.3 LTS on a Dell 2550 machine.
Problem.
- Bug in ubuntu (desktop and server) stopping CD install on this hardware platform. It hangs half way through and is something to do with the SCSI CD drive. Lots of stuff on the net about it, but no fix as far as I can see, at least nothing that works for me.
- So, tried boot off CD and then used F6 and added a cdrom-detect/try-usb=true line together with putting a USB with the ISO burnt onto it in the USB port. Still hangs during install (can't see USB perhaps? USB not correctly burnt? Tried many many times though, and eventually gave up at 2am)
- Next tried PXE boot. Now getting somewhere. Ok I installed tftpd32 on my windows machine, and copied the netboot files from the ubuntu site to the tftpd directory. (I dont think this will help me install the server, just the desktop??) Anyway, it booted from the win tftp machine (wahey!), and went through install, BUT when it tried to find the mirror site it couldnt. In fact it couldnt find ANY mirror site. (Internet access from windows and all other PCs on the network is working fine).
So, to ensure I am installing the SERVER version, and to use PXE boot, and to NOT use the internet to download the files (i.e. load them up locally somewhere), what do I do?
View 3 Replies
View Related
Aug 27, 2010
I have a remote drive mounted on my system(ubuntu 10.04 x64), and i have the contents of that drive backed up to dropbox. the problem is, if i unmount the drive, the files disappear from dropbox. is there a way to mirror the contents of the network drive to a localfolder(preferably in such a way that all changes and file deletions are changed on the local folder instantly, but unmounting doesn't delete it all)? It looks like rsync would work, but im not sure how to make it work.
View 2 Replies
View Related
Mar 20, 2011
I am currently running Debian on a system with 3 scsi hard drives with Raid and have an identical back up server. I want to schedule a daily "mirror" copy of the server operating system and data so that if the primary server drops I can move the network plug to the next server and be back in business. Can someone let me know what would be the best solutions for this? I am new to linux so this may be an obvious question so if it is I applogize but I have been searching through the forums and have not found an adeqate solution.
View 1 Replies
View Related
Jan 11, 2010
I've just set up the local mirror for my 96 CentOS 5 workstations. The mirroring script is taken from public-mirror howto and looks like this:
#!/bin/sh
rsync="/usr/bin/rsync -avHzL --delete --delay-updates" # replaced -q with -v for debuging purposes, removed --bwlimit, added -L to follow symlinks
mirror=centos.politechnika.lublin.pl::CentOS # tried several different same result
[Code]....
I tested mirror consistency by putting the mirror addres I'm syncing with, directly into repo file. Than yumex works fine. I tried several different mirrors with the same result.
View 3 Replies
View Related
Jan 13, 2010
I am looking for a solution to mirror a directory on my companys computer that runs in windows to an external ubuntu server on the internet.
View 7 Replies
View Related
Jul 29, 2009
I'm new here and hope to profit from your immense linux knowledge and of course to share my own experience where I can.
I'm in a student organization and we use a file server that runs linux. I can log in through ssh and copy using scp using login and password (no rsa/dsa keys because most users are windows users using winSCP and they're lacking in computer knowledge so we don't require them to mess around with keys)
However, I don't have network access everywhere, so I'd like to make a copy on my laptop harddisk of some of the folders I use most frequently. Note that I don't need it to copy files from my pc back to the remote server so I don't need two-way sync. Deleting the local copy every time and downloading a new full copy is not an option as we are talking about several gigabytes and the download speed is limited. Normally I would use Unison, however, this requires unison to be installed on both pc's and I can't install any software on the file server so this is not an option.
Any ideas on how to achieve this? I'm reasonable knowledgable about linux so I don't mind tinkering with some config files and using command line applications.
View 1 Replies
View Related
Aug 21, 2010
I have been tooling around with different way of getting our local Debian network mirror back up and running with different various scripts. I have tried apt-mirror which was a breeze to setup and run, anonftpsync again super easy to get rolling.
My question is there a way to make sure our Sarge distro doesn't get deleted from the mirror? A filtering command for rsync possibly?
I started to go over the script for the ftpsync (debian recommended!) and to be honest it seems way over my head due to lack of documentation that I have been able to find.
View 2 Replies
View Related
Apr 18, 2010
I would like to build a NAS from PC (D510MO) running Debian. I have two HDDs (one 3.5 1T and one 2.5 500G).
On 3.5 HDD I have already two partitions 100M+40G dedicated for Win7-64. Now, I want to install Debian (second OS) on this PC and to have some kind of soft RAID or disk mirror of 500G space. I am planning to create a third partition on 3.5 HDD of 500G (identical as 2.5 HDD size) in order to have a mirror 500G space.
Please send my some suggestions on where I have to install Debian; on 500G 2.5HDD or 500G 3.5HDD!Will Debian boot from both HDDs 3.5 or 2.5 after I create the mirror? What Linux soft I have to use for mirroring (mdadm)?
View 3 Replies
View Related
Jan 9, 2010
I'm using f12. My university has recently become a mirror for fedora packages. But i'm facing a trivial problem. I have set proxy for yum so that the packages that are not available on local mirror can be downloaded from other mirrors. But then i don't know how to set no proxy for my local server. Consequently it is not using my local mirror at all. Tell me how to set no proxy for the local mirror. I want my local mirror because it's damn fast. My proxy settings are like this (they go in /etc/yum.conf):
[code]....
View 2 Replies
View Related
May 29, 2010
how to split two files like
big.zip.1
big.zip.2
then, my second is how to merge them like windows
in windows, i can use copy /b
in linux,
cat big.zip.1 > big.zip
cat big.zip.2 >> big.zip
View 1 Replies
View Related
Jan 20, 2011
I have a file of size 6GB. I would like to find an utility which will split and join in both windows and in Linux. I know Linux has native split and cat for this purpose. My idea is, if I give this split files to anyone, they should be able to join them either in Windows or Linux. Is there any utility to do this job?
View 7 Replies
View Related
Apr 1, 2010
I've a web page where I can search information in my database.Sometimes results of search operation are more of fifty.How can I split results in different web page as it happens for example in any search engine or operation
View 7 Replies
View Related
Jul 6, 2010
I have the following setup: Client A, having 2 network interfaces, eth0 and eth1, both with the IP address 192.168.1.1/32. Client B, also having 2 network interfaces, eth0 and eth1, with the IP addresses 192.168.1.2. The routing table on client A has one entry: 192.168.1.2 dev eth0 The routing table on client B has one entry: 192.168.1.2 dev eth1. Basically the idea is to send the upload traffic one one interface and the download traffic on the other interface. (Client B could serve as a gateway). However, with this setup, well... nothing works. The packets received by Client B are ignored. Does the linux kernel have anything against routing packets coming from an interface, although he thinks the source is on another interface?
View 4 Replies
View Related
Oct 14, 2010
I am using gnu bash 3.2I need to split the string into array like
a=this_is_whole_world.file # split [_.]
I need to split this on _ and . some thing like this
a[0]=this
a[1]=is
a[2]=whole
a[3]=world
a[4]=file
preferable using bash regex. if not sed is also ok.
View 2 Replies
View Related
Dec 26, 2010
I have a folder with 15000+ images! How to (using bash) mv the files to sub-folders a/ b/ c/ d/ e/ f/ g/ h/ i/ j/?
View 6 Replies
View Related
Dec 10, 2010
I have a text file that is filled with references to duplicate files. I'm trying to create a text file for each duplicate file found that contains the paths to the duplicates. I would also like the text file names to be based on the size and file name.
Some thing like:
231.5 KB - P&S.doc.txt
138.5 KB - LIMITED#C71.doc.txt
Code:
NamePathSizeLast ChangeLast AccessFile TypeOwnerAttributes
P&S.doc(3 Files)
P&S.docZ:Leg\_Pri_LegPurP&SBUYBarry V231.5 KB11/2/2001 4:07 PM11/22/2010 2:38 AM.doc (Microsoft Office Word 97 - 2003 Document)Lou_AC
P&S.docZ:Leg\_Pri_LegP&SBUYBarry V231.5 KB11/2/2001 4:07 PM11/22/2010 2:38 AM.doc (Microsoft Office Word 97 - 2003 Document)DMsC
P&S.docZ:Leg\_Pri_LegPropsPurP&SBUYBarry V231.5 KB11/2/2001 4:07 PM11/22/2010 2:38 AM.doc (Microsoft Office Word 97 - 2003 Document)DMsC
LIMITED#C71.doc(2 Files)
LIMITED#C71.docZ:Leg\_Pri_LegPurCV138.5 KB12/15/2003 1:04 PM11/22/2010 2:38 AM.doc (Microsoft Office Word 97 - 2003 Document)Lou_AC
LIMITED#C71.docZ:Leg\_Pri_LegPropsPurCV138.5 KB12/15/2003 1:04 PM11/22/2010 2:38 AM.doc (Microsoft Office Word 97 - 2003 Document)DMsC
ps revised.8.30.05.clean.doc(3 Files)
ps revised.8.30.05.clean.docZ:Leg\_Pri_LegPropsPurP&SSellVPSummit54.5 KB8/31/2005 11:46 AM11/22/2010 2:38 AM.doc (Microsoft Office Word 97 - 2003 Document)DMsC
ps revised.8.30.05.clean.docZ:Leg\_Pri_LegP&SSellVPSummit54.5 KB8/31/2005 11:46 AM11/22/2010 2:38 AM.doc (Microsoft Office Word 97 - 2003 Document)DMsC
ps revised.8.30.05.clean.docZ:Leg\_Pri_LegPurP&SSellVPSummit54.5 KB8/31/2005 11:46 AM11/22/2010 2:38 AM.doc (Microsoft Office Word 97 - 2003 Document)Lou_AC
Copy of 08 Lee All July Billing.xls(2 Files)
Copy of 08 Lee All July Billing.xlsZ:IS\_Sh_ISDevDocDocl 26 upgradeAS6 backup codeAPImport131.5 KB7/30/2010 12:11 PM11/22/2010 2:38 AM.xls (Microsoft Office Excel 97-2003 Worksheet)AdministratorsC
Copy of 08 Lee All July Billing.xlsZ:APKellie131.5 KB7/30/2010 10:03 AM11/22/2010 2:38 AM.xls (Microsoft Office Excel 97-2003 Worksheet)KellieC
View 5 Replies
View Related
Mar 22, 2011
How long does hardware Raid card (raid 1, 2 drives)take to mirror a 1 TB drive (500gb used)?Is there a general rule of thumb for this?4 hours? 12 hours? 24 hours?
View 1 Replies
View Related
Apr 24, 2011
I want to setup a FAI server for which I was looking for the best method of mirroring the Debian Lenny. I want to setup a local mirror with the best method available for mirroring. If it is ftpsync, please provide me some best ways of doing it. I tried ftpsync mirroring but that was not getting properly working due to insufficient I want this mirror to be accessible in my FAI setup so that I can start the installation on multiple machines and start the updates and package installation to be done from the same local mirror.
View 1 Replies
View Related
Apr 27, 2010
I need files to be <= 5GB to put on S3. Right now I have an ugly tar / gzip / cut before upload, then cat / zcat / tar on download, but it's really ugly - and nearly every archiver should support archive splitting right? What's the best way?
View 2 Replies
View Related
Feb 24, 2010
I am trying to use ffmpeg to split a number of videos of different types (WMV, MPG, AVI). I do not want to change anything else, just split them into smaller chunks. The video is split, but the quality of the output file is terrible. I would describe it as "blocky" (I think the correct term is "pixelated"). When I make the player (KMPlayer) much smaller the problem naturally goes away.
The command I am using:
ffmpeg -i original_vid.wmv -ss 00:00:00 -t 00:05:00 first_vid.wmv
The output:
FFmpeg version SVN-r19352-4:0.5+svn20090706-2ubuntu2, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --extra-version=4:0.5+svn20090706-2ubuntu2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis
[Code]....
"Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 25.00 (25/1)
Seems to mean something, but I couldn't find anything saying that this is the problem or what O should do to correct it.
View 2 Replies
View Related