CentOS 5 :: LVM - Add The New Big Drive To The VG - Use Pvmove To Move The Smaller PV Onto The New PV

Apr 28, 2011

I have a volume group that is made up of a number of physical volumes. I am thinking of consolidating all the small physical volumes onto one big drive. Is there any benefit in this, besides making administration easier? How do I go about doing this? From what I have read, it looks like I should have to do the following

1. add the new big drive to the VG
2. use pvmove to move the smaller PV onto the new PV
3. use pvchange -xn to make sure the old PV can no longer be allocated
4. repeat for all the small PVs.
5. use pvremove to remove all the small PVs

Is this the correct procudure to follow?

View 4 Replies


ADVERTISEMENT

General :: Move Smaller Hard Drive To Partition On A Larger Hard Drive?

Mar 16, 2010

My parents bought a new hard drive for a laptop that I've owned for several years. It's much larger than the current one, so I plan on splitting it up to dual boot it with Ubuntu.I have no problem with partitioning a drive (I always keep a LiveCD handy), but my question is this: how can I go about moving the existing partition to the new drive? This is a laptop, so I can't simply plug the new drive into another slot.

Also, even if I manage to move it, will Windows still work on the new drive in a larger partition? I've had this laptop for quite a while, and I've lost the recovery discs that came with it a long time ago. I also have a lot of software without CDs to reinstall them with. This makes not reinstalling Windows a high priority.

View 3 Replies View Related

CentOS 5 Hardware :: How To Clone CentOS Installation To Smaller Drive

May 9, 2010

I am trying to clone the hard drive to a slightly smaller hard drive in the same computer, same setup.What software or commands do you use to clone the entire system and resize the partition automatically?The original HD is a little larger than the destination HD. The source partition only has about 20 GB in use and the rest is blank.

I have 2 partition, a small 100MB boot partition and another 500GB LVM partition.I can't just clone from the original disk to the new disk. (for another long reason) I need to make an image of the original disk on an external USB drive first, then move that image onto a new disk.I have tried creating an image of the whole disk with Clonezilla, but then the restoration didn't work because the target drive is smaller than the original.

View 7 Replies View Related

Ubuntu :: Replace A Hard Drive With Smaller Drive?

Jan 20, 2010

I have ubuntu server acting as a router installed on a 60 gig drive, i'd like to use that drive in another machine and replace it with a 5 gig drive. how can i transfer from the 60 gig drive to the 5 gig drive?

View 9 Replies View Related

CentOS 5 :: Fonts Smaller After Latest Updates To Centos 5.6?

Apr 17, 2011

After doing an update a couple of days ago (had previously upgraded to 5.6), the font size in firefox (file forward reload, etc), terminal and the panel (using xfce) are significately smaller. Searching the web, mail lists and the forums have not resulted in finding anyone else with this problem. I did notice that glibc has a bug that is currently being worked on at Redhat but it is unclear if the font problem I am seeing is related. Note also, that the initial upgrade to Centos 5.6 was successful.

View 8 Replies View Related

General :: Backing Up To Smaller Drive?

May 24, 2010

In a few hours I'll have a new 500GB Sony laptop, filled with the usual Sony rubbish which I'll promptly be replacing with Ubuntu or Crunchbang or something. However, first I want to make a full clone of the drive (including recovery partitions), should I wish to return it to Sony or sell it on in its factory state.

The problem is that the only backup drives I have are less than 500GB - the biggest I have is 250GB or so! So I need to backup and compress on-the-fly.

What's the best way to do this? Presumably dd piped into gzip would do the trick, or does anyone have any other suggestions to accomplish this?

View 3 Replies View Related

Ubuntu Installation :: 'Bad Primary Partition' After G4u Big Drive To Smaller One

Sep 5, 2010

I have recently ghosted, using g4u, an 80 gig drive to a 30 gig drive. The data size is about 15 gig so no problem there.The system does work and it doing everything it should, except for some errors in dmsg log.The thing is though, that the system works! all the services are running and live.And i have years worth of customizations in this machine. Has been running for several years, so i dont just want to reformat and reinstall. Its hard to get linux the way you want it sometimes!So my question is this, is there a way to fix my partition or somehow tell the machine what the current boundries <i>should</i> be?

View 5 Replies View Related

Ubuntu :: Clone Bootable USB Stick To Smaller Drive?

Aug 22, 2011

I wanted to back up my 4Gb boot drive and the new drive I had was slightly smaller. Couldn't find any info on here and precious little on the internet but I have previously used this technique to clone an 8Gb disk onto a 4Gb one. Since I have gained a lot of useful info from this forum over the years its probably time I contributed something. I used my netbook but this would work equally well from a live CD. Note the disk has to be unmounted so you can't use the live system. Firstly your USB stick probably has 2 partitions one for "/" and one for swap.

The first step is to reduce the "/" partition on the source drive to a size smaller than your target drive. I used gparted for this. Next create a partition on your target drive that is the same size or bigger than your newly shrunken partition. I formatted this although I'm not sure this is necessary. Personally I just used the whole drive and used a file on a hard disk as swap. Next you have to use dd to copy the partition.What is important is that you are copying the partition not the drive. So your source would be /dev/sdx1 and target /dev/sdy1 (you will need to find your own values for x&y).

Once again be very careful that you get these the right way around or you will destroy your souce disk. Even better do it in two stages - copy your source to a file and then the file to the target. Now you have a replica of your original disk but it is not bootable. If you are planning to use a swap partition you may as well create it now. Remember you will probably have to change /etc/fstab to read the new swap - at least on my system this was referenced by UUID. No need to change anything for the replicated partition as the UUID came over with everything else.

View 3 Replies View Related

General :: Cloning Dual Boot Drive Onto Smaller One

May 28, 2010

I've decided that I want to use another, smaller, hard drive for my OS and I'd like to clone /dev/sda onto /dev/sdc. I want it to be an exact clone except my partition for my "/home" will be smaller (since there's not room for it). I was gonna try with dd but I'm not sure if I should build the partition table and use dd-command on one partition at the time? Will this then include GRUB boot loader and will it be working properly?

Do I have to clone the disk completely for it to boot properly? I'm not sure how or where GRUB places itself on disks as you install it. Can I perhaps copy the partitions one by one and then install GRUB from CD afterwards? Should I leave some unallocated space somewhere in between the partitions as I build and clone them?

View 4 Replies View Related

Software :: LVM Resizing - Pvdisplay Showing Drive Smaller

Jun 28, 2010

I'm a bit new to LVM administration, and I have a question that the Clonezilla Live forum referred here. Below is the question.

2010-06-24 07:10:00 UTC
So, I was moving from a 250G disk to a 320G disk because I was running out of space on my laptop. My problem is that my new drive seems convinced that it is only 250G in size, and I'm wondering how to persuade it otherwise. I'm not sure if it matters, but I did use the -k1 option when Clonezilla was restoring in order to resize the partitions proportionally. Here is the output of fdisk -l and pvdisplay:

root@nansen: [/]$ fdisk -l
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 17 133610 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 17 38911 312412851+ 8e Linux LVM

So fdisk knows that the drive is 320Gb, and the sda2 partition is about 319Gb in size. But LVM isn't buying it:

root@nansen: [/]$ pvdisplay
--- Physical volume ---
PV Name /dev/sda2
VG Name VolGroup00
PV Size 232.78 GB / not usable 2.71 MB
Allocatable yes
PE Size (KByte) 32768
Total PE 7449
Free PE 1
Allocated PE 7448
PV UUID RKhtpa-J34H-GnvD-26v3-bAEI-wccm-f55hwS

Is there some sort of pvchange command that I need to run? Here is some more info in case you need it.

root@nansen: [/]$ pvs
PV VG Fmt Attr PSize PFree
/dev/sda2 VolGroup00 lvm2 a- 232.78G 32.00M
root@nansen: [/]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00 225G 209G 4.5G 98% /
/dev/sda1 127M 12M 108M 10% /boot
tmpfs 125M 0 125M 0% /dev/shm

steven_shiau (Clonezilla Live moderator)
2010-06-24 14:03:48 UTC
Option "-k1" is only for partition size, it won't deal with LVM yet. I think you need other tool to resize the LVM.

View 1 Replies View Related

Ubuntu :: 10.04 LTS Lucid - Root Is Getting Smaller And Smaller

Jan 22, 2011

I am using 10.04 LTS Lucid, and I notice the free space of root is getting smaller and smaller.

Five months ago, there was about 3.9GB free space of root, but now it is only 1.6GB. I always run sudo apt-get autoremove and sudo apt-get autoclean every time the update is finished, and also use Bleachbit to clean the system, but both are useless.

I never faced such problem with older versions of Ubuntu, is there any measure to fix it?

View 6 Replies View Related

Ubuntu :: Restoring Disk Image To A Smaller Hard Drive Than The Original?

Jan 13, 2011

I am looking for an Open Source software making it possible to make a disk image of an Ubuntu installation as well as a Windows XP installation.I have checked out Clonezilla which almost solved the problem. However, the disk to which you restore needs to be the same size or bigger. I want to restore the whole thingo a smaller disk than the original.I am considering getting myself an SSD disk which will be considerably smaller than the 160 gb disk I have right now. I need it to work for Windows as well. Unfortunately I can't get rid of Windows quite yet I often participate in webinars on GotoWebinar and they do not support Linux ...

View 9 Replies View Related

Server :: Control The Speed Of Pvmove?

Jan 28, 2011

Is there any way we can control the speed of pvmove??

View 1 Replies View Related

Ubuntu :: Root Is Getting Smaller And Smaller

Jan 23, 2011

I am using 10.04 LTS Lucid, and I notice the free space of root is getting smaller and smaller. Five months ago, there was about 3.9GB free space of root, but now it is only 1.6GB. I always run sudo apt-get autoremove and sudo apt-get autoclean every time the update is finished, and also use Bleachbit to clean the system, but both are useless.

I never faced such problem with older versions of Ubuntu, is there any measure to fix it?
1. There is not any .deb in the /var/cache/apt/archives.
2. The total content of /var/log is only 167.6 MB, that won't be a problem.

View 5 Replies View Related

Software :: LVM2 Pvmove A Multi-pv LV In One Step?

Oct 13, 2010

I've a VG that contains one LV which consists of several PVs in a concat. Now I want to pvmove the whole construct to a new set of PVs in one step! Of course I could move PV by PV but is it possible to move them altogether?

View 2 Replies View Related

CentOS 5 :: Tool To Standardize All .jpg Sizes And Make Them Smaller In Size

Jul 4, 2010

If I open my 3.3MB .jpg file in Microsoft Paint and re-save it as .jpg it will right away loose it's size and go down to 1.5MB and still keep the good quality.

I have 100s of these picture files, so I can't set down and do it one by one in Paint.

I am wondering if there is any command in Centos 5.4 or tool that I can use to not only make these files size smaller but also to standardize their size to let's say 800 X 600. The latter is not really needed but it will be bonus if someone can guide me.

I am running a php photo gallery script and it takes way to long to load the picture hence the requirement to lower the size for all the files.

I know that there is "mogrify" and "convert" but I think they don't work without GIMP. I don't have GIMP installed and I do install it I think it goes on to install a lot of gnome libraries which I am afraid might break my server or overload it too much. My CentOS doens't have any GUI or gnome package to it and I want to keep it simple.

View 1 Replies View Related

Ubuntu Installation :: Possible To Move Grub2 To Other Drive And Repair Windows 7 Drive MBR?

Feb 5, 2011

So I install Ubuntu 10.10 on a multi-drive, dual boot with windows 7 computer. At almost the end of the install, I see "running grub-install sda" or whatever it is. sda is my windows drive.So rather than asking where to install the bootloader or give you the option like it used to, it just did it to my "first" drive.

What the hell? Now my Windows MBR is gone. I like to maintain that so if my linux drive dies I can still boot into windows via the old windows boot loader.Possible to move Grub2 to my other drive and repair windows 7 drive MBR?

View 3 Replies View Related

Red Hat / Fedora :: Move Hard Drive Installation To External Drive?

Mar 30, 2011

i have installed fedora 14 with so many libraries ,development tools installed on my pc but i usually have to present some projects which can run on my system .........and can't be executed or compiled due to absence of libraries and tools there so, i there some way to so that i can use this current installation on my hard drive of my pc to some external media like external hard disk and plug and use that installation anywhere on any system..

View 2 Replies View Related

General :: Usb Drive, Locate It, Move Folder From Usb Drive To Usr Directory?

Feb 28, 2010

I want to move a folder from USB drive to desktop, any directory, let say usr directory. But don't know what the name for usb drive and where to find it, i know i am going to use mv command.

View 5 Replies View Related

Ubuntu :: Move From Current Drive To A New Drive?

Jun 18, 2011

I have Ubuntu 11.04 on a hard drive that has Windows 7 as well. I just obtained another hard drive and want to move Ubuntu and all of the contents therein to the new drive, so I can have one drive dedicated solely for Windows (for the family) and Ubuntu on the other. The current drive is a SATA drive and the new is an IDE if that makes a difference.

View 6 Replies View Related

General :: Move Ubuntu To Another Drive?

Mar 12, 2011

I have a laptop with an 80GB SSD and 500GB HDD. I currently have Windows installed on the SSD, and a 400GB data partition for Windows on the HDD. I set aside 100GB on the HDD to try out Ubuntu, and I'd like to make it my primary OS and switch it over to the (much) faster SSD.

How could I go about getting my Ubuntu setup moved over to the SSD? I have a 120GB USB hard drive I can use if necessary for getting through it.

View 2 Replies View Related

Ubuntu :: Move Installation To New Hard Drive

Mar 2, 2010

The HDD on which I currently have my Ubuntu partition(s) (as well as a Windows partition) is dying on me (non-zero bad sector count, with warning pop-ups from Ubuntu). I have already ordered a replacement hard drive*, but I was wondering if there is a simple way to transfer the contents of my current hard drive to my new hard drive in such a way that the new one will be a fully functional replacement (e.g. so that everything will boot and run properly on the new hard drive). Which is a different size (bigger) than the current drive.

View 5 Replies View Related

Ubuntu :: Possible To Move Windows To Another Hard Drive?

Feb 23, 2011

I am buying a new laptop and of course it comes with Windows 7, I prefer not dual booting and want to keep windows on a separate hard drive for that once in a blue moon I need windows, the hard drive is pretty sweet and I would rather use the new hard drive for Ubuntu and put windows on a smaller slower drive.The laptop obviously dont come with the Windows CD

View 5 Replies View Related

Ubuntu :: Move 1.2GB Of Photos Onto A 2GB Thumb Drive?

May 3, 2011

I want to move 1.2GB of photos onto a 2GB thumb drive, calling up Properties, it says the size on disk is 9.7GB. What is going on? I don't recall discrepencies this huge in previous OS's. What is taking up 7 times more space than my actual files?

View 3 Replies View Related

Red Hat / Fedora :: Move Boot Drive To Different Controller?

Mar 26, 2010

Is it possible to move the boot and OS drive to another controller and still boot machine?

I moved the boot drive sdb1 to a different controller and I can figure out how to make the machine boot from it.

I changed the bios and get a brief boot indication, I then editted menu.lst in the grub folder and pointed it to the new device but still the machine won't boot.

Is there something I need to do, other than reinstall?

View 6 Replies View Related

Hardware :: Can't Move Drive To Identical Laptop

Oct 7, 2010

I have two identical laptops. One has an installed Ubuntu and parts that I want to use. The box itself is all beat up. The other box is newer but has a stale edition of linux. (Stale software means "seldom used.") I thought to be clever I would pull drive-A from box-A and install it into box-B. Likewise, I would install drive-B into box-A. This will leave my clunky software on my battered box and my newer software on the newer box.

Mechanically it works (doh!). However, neither box will see the network. When I look at the logs, I find a "rename wlan0 to wlan1" entry among others. If I put the drives back into their original box, all works correctly.

What could be going on that I cannot move the drives and have things just boot and run?

I thought that system start would detect the installed hardware, load the required drivers and all is right with the world. The "rename" log entry suggests that the old hardware details are somehow in the way of the new hardware discovery and configuration.

Is there some command I need to use or utility that I ought to run that says, "rediscover my hardware" or similar?

I already know how to use clonezilla and other ways to duplicate a drive contents to a second drive. (Note to reader: laptop drive to usb drive clonezilla takes quite some amount of time.)

Another reason that this is important lies in the ability to move a drive from in-use but failed hardware to stand-by working hardware in a fail soft recovery situation. I know that win-doze knows about the installed hardware and demands a re-install or "repair" to the alternate box... but this is linux not win-doze.

View 11 Replies View Related

General :: Move Boot Drive To New System?

Jul 19, 2010

I have been given a new system, but want to try moving my old server's system / boot drive directly to it, rather than re-install.

All of the hardware is different, what am I letting myself in for? What should I prepare for?

Existing system OS is Ubuntu 10.04 Server, non-specific install from live CD.

I've done this before on Win XP and it was a nightmare, but I suppose that's not really designed for that sort of thing. I'm hoping that linux will be easier.

View 9 Replies View Related

Red Hat :: Move Hard Drive Contains RH3 Enterprise From PC To PC And Still Working?

Dec 8, 2010

i have HD contains RH3 enterprise and i wanna move it to new PC, keep the framework is working without any error?

View 2 Replies View Related

Ubuntu :: Drive Failing And Need To Move Partitions?

Sep 14, 2010

I have 2 500gb drives in my system. One of the drives I use for swap and home is failing, good thing it is under warranty... Bad thing I have to remove the drive from my system.

I have / on the first drive taking it all up. On the drive that needs replaced I have /swap and /home taking up the whole drive.

Is there a way to shrink /dev/sda to put swap and home on that drive and to move it back when new drive arrives? Or would it be simpler to just re-install to one drive?

View 4 Replies View Related

Ubuntu :: Move Files From One Hard Drive To Another?

Jan 18, 2009

I have one hard drive that is filling up and I went and got another hard drive and installed it into the machine. How do I move files from the full hard drive to the almost empty hard drive. I only have about 400mb left on the full drive. Or should I move the Ubuntu 8.04LTS OS to the new drive?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved