Ubuntu :: How To Resize Lvm2 Partitions
Jan 7, 2011
I recently installed fedora on my system along with windows in a dual boot unfortunately, the fedora partition is too big and is taking 80% of my disk space. lvm2 volumes are not recognised by windows so i decided to shrink my fedora lvm2 partition and create a new fat32 partition to store common data. i tried gparted from my ubuntu 10.04 CD but it was unable to resize the partition can someone suggest to me a GUI tool which could do the the resizing of an lvm2 partition?
View 1 Replies
ADVERTISEMENT
Feb 20, 2010
Can someone help me understand by giving me the commands I need in order to shrink my "debian-home" logical volume by 10GBs and increase the size of my "debian-root" logical volume by that same 10GB of data? (Everything in that computer is ext4 including the /boot ... physical volume? (I think that's what it's called))I would REALLY appreciate it if someone could just give me the exact or approximate terminal commands that I would need to use. I assure you, I will never forget them
View 4 Replies
View Related
Apr 11, 2011
I have a 500GB hard disk, /dev/sda. On it, there is /dev/sda1 for /boot, /dev/sda2 for an LVM PV (physical volume), and /dev/sda3 for another /boot (multiple Linux distros, one boot partition for grub legacy, another for grub2). so the LVM2 partition, /dev/sda2, is taking up ~465GiB. I want to add another OS (non-Linux), so I resized the *lvm2 physical volume* to 320GiB, successfully, using pvresize.
However, I now need to resize the partition so the lvm2 physical volume only just fits on it, ie to 320GiB. My plan of action is to use gparted (the partition table is GUID, so fdisk won't work), to first delete the partition from the partition table, then re-add it but this time with a smaller value (~320GiB). The problem is that I need to know exactly how many MiB/cylinders the physical volume is taking up. So, I run:
Code:
root@sysresccd /root % pvdisplay
--- Physical volume ---
PV Name /dev/sda2
VG Name vg0
[code]....
What one of these values do I need to set the new lvm2 replacement partition to?
View 7 Replies
View Related
Feb 7, 2011
I have ubuntu installed on 2 hdd. one of my hdd is having a lvm. I am unable to acess the home partition created in this lvm from my other hdd. in fact it is not shown at all inside the explorer window, the whole lvm block itself. if u run disk utility that also does not show the lvm partitions as mounted. So what are the steps required to be done to access those LVM partition from the other disk.
View 1 Replies
View Related
Apr 18, 2010
I am planning to install 10.4 when it arrives. And am not going to upgrade because i upgraded from 9.04 to 9.10 so now i need to refresh the system.But I have all my partitions except root using lvm2 logical volumes. My question is : What is the safest procedure to install 10.4 on an existing lvm2 without losing my files/partitions
View 2 Replies
View Related
Feb 17, 2011
I've reached a point in my Slackware journey where I feel confident enough to remove my Mint 10 linux. It used to be my 'go to distro' when I trashed my Slackware installation. Now, I have Slax on a USB and I think that is enough.Mint 10 occupies /dev/sda5 (root) and /dev/sda6 (home) while Slackware occupies /dev/sda7 (root) and /dev/sda8 (home).If I delete the /dev/sda5 & /dev/sda6 partitions, can I very safely resize /dev/sda7 and /dev/sda8 to use the space freed up?
View 14 Replies
View Related
Jun 13, 2011
I'm dual booting Ubuntu with Windows7. Instructions I've found on how to resize partitions tell me to open gparted and shrink things from there. However, I can't seem to do this because:
-I can't expand the windows partition because i first need to shrink the linux partition
-I can't shrink the linux partition because it is mounted
-I can't unmount the linux partition because it is being used.
So how exactly do I expand my Windows partition?
View 1 Replies
View Related
Jun 1, 2011
I am currently running Ubuntu 11.04 (narwhal), dualbooting with Windows 7. When I installed ubuntu, i gave it a small(er) partition size for it to use (10gb total for swap and main partition). I now find I have run out of room on my Ubuntu partition, and want to (if possible) shrink down my Windows partioion and move some of that freed space to Ubuntu to expand it.I tried to use gParted from a live Ubuntu CD, but I can't seem to move any unused space into the Ubuntu partitions. Am i doing something wrong?
View 2 Replies
View Related
May 1, 2009
Is it possible? I have a server that's colocated so a live cd isn't really an option. Everything I can find on resizing the partitions has said to use a live cd.
View 10 Replies
View Related
Apr 22, 2010
I have a dual boot system on my Laptop running Arch Linux and Windows XP. I have the following setup on my Laptop.
View 2 Replies
View Related
Jan 21, 2010
My ubuntu partition is tiny (~9 GB, ~5 free) and my vista partition is big (~100 GB, ~60 free). I need to reverse this (so I can move all my documents and music (~40 GB) over to the ubuntu portion from the external HD they're on now). I'm using karmic. I installed gparted, but I couldn't figure out how to make it let me access the resize option.
So I booted with the karmic live CD and used gparted there. It let me set up the shrink on the vista partition, but gave me an error in actual running (I'll post the error details at the bottom).
The error details seem to be saying that I should try shrinking it less? But I was already leaving more than 10 GB free space there, no? Does anyone know how to help me past this sticking point here? This is one of the vital steps for me in switching over to using ubuntu as my main OS, and hopefully leaving vista behind.
[Code]...
View 1 Replies
View Related
Jan 6, 2011
I am running a dual boot with XP and Ubuntu - what I want to do is increase the partition size of Ubuntu and reduce XP. When I run " G Parted" it shows both partitions with Xp being NTFS. I guess the boot loader is Grub because Ubuntu takes priority at Boot. I cannot persuade G Parted to allow me to resize the two different partitions. I am using the G Parted Live CD.
View 1 Replies
View Related
Apr 22, 2011
I've resized partitions with some program - perhaps even gparted - but from Win7. partitions are indeed resized, but now I can't boot Win7, grub says:
"No such device found - No such partition found".
I tried to use some advices on similar problems I found here (like adding GRUB_PRELOAD_MODULES="part_msdos" to etc/default/grub and running grub-mkconfig after), but nothing helped. I guess I could restore win7 with installation dvd but I want to fix GRUB (and have both ubuntu 10.10 and win7)
Code:
john@john:~$ sudo fdisk -l
[sudo] password for john:
Disk /dev/sda: 82.0 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xd576590b
Device Boot Start End Blocks Id System
/dev/sda1 1 789 6336513 f W95 Ext'd (LBA)
Partition 1 does not end on cylinder boundary.
/dev/sda2 * 1476 4008 20346322+ 7 HPFS/NTFS
/dev/sda3 4009 9964 47841570 7 HPFS/NTFS
/dev/sda5 1 749 6008832 83 Linux
/dev/sda6 749 789 326656 82 Linux swap / Solaris
View 5 Replies
View Related
Sep 20, 2010
I installed linux to my whole hard drive. I want to make it a little smaller to dual boot windows just for games. Gparted wont let me resize my partitions at all.
View 5 Replies
View Related
Aug 24, 2009
Googling tells you how to resize RAID partitions but not how to resize the underlying disk partitions. In my particular case, I initially sized a RAID array way too large - and when I added another disk to the array, I decided I was wasting too much space.I shrunk the file system, then "grew" the array (/dev/md2) to the smaller size, and resized the file system again to fit. However the actual disk partitions (/dev/sda2, /dev/sdb2, etc.) are still the original size - they are just mostly unused space.As I understand it, the superblocks are at the end of the partition. I believe this means the end of space used by the array on each device, so that the superblock moved to a lower block number when I shrunk the array. However it also means that I need to get the new physical partition size correct to avoid clobbering the superblock.
Is there an easy way to get any partition editor to shrink the physical partitions to the new array size?If not, is the superblock included in the space allocated to the array so that the next partition can start in the very next block, or is it added after the array so I'd need to allow some space for it?
View 3 Replies
View Related
Sep 1, 2010
Can someone help me to make a shell script to resize automatically the NTFS partitions of my disk ?
View 3 Replies
View Related
Mar 22, 2011
I have a windows box running w2003 server on 1 volume with 2x ntfs basic partitions. c: = the windows bit, d: = the data bit for user data.I have cloned (clonezilla) the volume to another and deleted the data (d bit and want to extend the c: into the freed space.I'm booted from a partedmagicv5 cd and using gparted to attempt this.I can't see a way to do this with gparted but then, I could be thick. Maybe I clone off reformat and copy back?Is there a better way or even is this the correct forum (please don't refer me to Microsoft website:-) for this type of question?This is a test box so not worried about breaking it, but the test is to try to solve a live problem at a school I support which is running out of hd space.
View 3 Replies
View Related
Nov 27, 2009
Howto resize Ext3 partitions, but no LVM from debian?Can I use a tool like GParted?
View 7 Replies
View Related
Mar 18, 2011
Preface: I have just bought two new WD20EARS hard drives and have added them into my LVM and moved all my data from my old failing seagate drives to my new drives. I also have a WD10EARS in the LVM.
These are WD Caviar Green Power 4K hard drives.
Using Ubuntu 10.10 64bit and LVM2, everything is working but I want to know if I can tweak it for more performance. I am relatively new.
Questions:
1. How can I check if the 4K drives are aligned?
2. How can I check what block size LVM is using?
3. I didn't partition one of the WD20EARS when adding it to a LV, will this be problematic or effect performance? Can I partition it without losing the data that is on it now?
4. I heard XFS is better than EXT4 for large files and people tend to suggest using certain formats when they're talking about LV's, if I check the format of any of the hard drives it says they are lvm2...?
View 5 Replies
View Related
Jun 26, 2011
Recently I have upgraded my home file server from ubuntu 10.10 to 11.04. I found my LVM+RAID5 does not work any more. Here are stuff I have explored so far
$sudo lvdisplay
--- Logical volume ---
LV Name /dev/fsvr_main/var
[code]....
I don't know where /dev/md1p1 come from and why /dev/md1 is not recognized by lvm any more.
View 5 Replies
View Related
Mar 22, 2011
I used Ubuntu before, without problems but since the 10.04 version it won't recognize my partitions. I formated my laptop and partitioned it, installed Windows 7 64bit, which I need for my work, and wanted now to install Ubuntu 10.04/10. I then used GParted to check my Harddisk and it is having troubles to recognize my partitions, too while Windows finds them. GParted is giving me an error message saying my partitions are oversized. I am still in the beginning of my Linux experiences and so I don't know what to do. I have two 250GB harddisks (how Windows recognizes them),
[Code]....
View 9 Replies
View Related
Mar 3, 2010
Xubuntu 9.04 installation CD not detecting any of the current partitions. This all started when I reinstalled windows XP a few days ago.After, the computer wouldn't boot into GRUB and would boot directly into windows.Other threads have dealt with a similar issue, that of overlapping partitions causing libparted/parted/gparted to detect the whole drive as unallocated space. The problem in these threads seemed to be a corrupted partition table, in which the partitions overlapped with each other. So of course I checked the output of fdisk -l for overlapping partitions, but I don't see any obvious overlapping partitions. I've noticed that the partition that used to be linux swap isn't showing up in the partition table at all. I might just be missing something simple here and would like another set of eyes to help me figure this one out. Does the problem have anything to do with the partition table being out of order (ie. not in order of what regions they cover on the drive)? From the liveCD I've run
Code:
sudo fdisk -lu
sudo sfdisk -d
sudo parted /dev/sda print
and have received the following output:
Code:
ubuntu@ubuntu:/mnt$ sudo fdisk -lu
omitting empty partition (5)
Disk /dev/sda: 60.0 GB, 60011642880 bytes
[code]....
View 3 Replies
View Related
Feb 9, 2011
I am installing Ubuntu on the same hard drive as Windows 7. The partitions of Windows 7 have already occupied the left part of the hard drive. From left to right, the Windows partitions are one partition for Windows booting, one for Windows OS and software installation, and one for data which is planned to mount on Ubuntu. I was wondering how to arrange the order of partitions of root, home and swap, i.e. which is on the left just besides one Windows partition, which is in the middle and which is on the far right?
View 1 Replies
View Related
Jul 16, 2011
I've got three disks together on a *home* server that constitute four LVs.The two are the root and swap LVs installed by the Ubuntu 10.04.2 LTS installer on the OS drive (250 GB VG: Beta). The third & fourth LVs I made of two physical volumes (640 GB and 200 GB VG: Data) and mounted each inside /torrent. All are ext4.
I'm migrating lots of large files from /home to inside of /torrent, but I'm seeing EXTREMELY slow speeds (700KB/s).I'll admit this is my first time using LVM, and I tried it only because of the numerous smaller drives I have sitting around that weren't getting used. I didn't expect such a large drop in speed.
Here's a more technical review of the setup:
Code:
me@Beta:~$ sudo pvdisplay
[sudo] password for me:
--- Physical volume ---
PV Name /dev/sdb
VG Name Data
[code]....
View 5 Replies
View Related
Jul 10, 2011
When I installed Ubuntu, I created an 52 gb encrypted partition which shows up in the disk utility, and in the window that opens when I click on the "home folder" icon. I get my normal windows partition, and under that the 52 GB LVM2 partition. But when I try to access it, I get this error.
Unable to mount 52 GB LVM2 Physical Volume - not a mountable file system
This is what fdisk -l shows
Device Boot Start End Blocks Id System
/dev/sda1 * 1 52 409600 27 Unknown
Partition 1 does not end on cylinder boundary.
/dev/sda2 52 30452 244193280 7 HPFS/NTFS
[Code]....
How can I fix this, and be able to access that 52gb partition? This is only my second day that I work with Ubuntu, so If more information is needed then let me know
View 9 Replies
View Related
Nov 26, 2010
I have a working Fedora14 system. /boot is on sda1.
Here is my system:
Code:
I would like to install Grub2 to have /boot in LVM2 as well. Is there a guide for it or can someone help me with this task?
View 5 Replies
View Related
May 11, 2011
I did all the fsck, resize2fs, lvresize, pvresive, parted, etc. stuff and was very careful about what I was doing, but clearly wasn't careful enough. I did backup lv_root to another drive with fsarchiver before I buggered things up, but I can't restore it because, well... I don't know! At this point I'd really just like to wipe the drive I messed up except for /boot and start over but I don't know how to do that when the system seems to think the drive is mounted when it ISN'T.Here's some info:- device is /dev/sdb with sdb1 as /boot and sdb2 a lvm2 volume group containing lv_root and lv_swap -- it was a default Fedora 11 installation that used up the whole drive- i did nothing to /boot and it seems to be fine, grub loads, choosing Fedora 11 shows the logo but quickly becomes a black screen, choosing Fedora 15 Live USB that I originally added from Fedora 11 works just fine (currently trying to fix things from Fedora 15)- i deleted and recreated lv_swap and it still shows up in /dev/vg_box- i shrunk lv_root and the filesystem is within the right size of the lv, which is within the right size of the pv, which is within the right size of the partition, which i made sure i used the right sectors, but lv_root does not show up in /dev/vg_box.
- lvscan says both lv_swap and lv_root are active but lvdisplay says lv_root is "NOT available"- system thinks /dev/sdb2 is mounted even though it ISN'T and can't seem to do ANYTHING to it because of thislvchange -ay /dev/vg_box gives:
Code:
device-mapper: resume ioctl failed: Invalid argument
Unable to resume vg_box-lv_root (253:2)
[code]....
View 3 Replies
View Related
Sep 14, 2009
My Linux OS is mounted on a LVM spread across an 8GB SD Card and a 4GB Flash Drive. I've used about 6GB and have about 2.xGB left. I'm trying to download Sabayon and I don't quite have enough space to store DVD size ISO. I have extra 2GB Flash Drive that I am not using and can converted to a PV and that would give me the necessary space I need to store the ISO. Now the ISO would spread from 4GB Flash to my 2GB Flash. My question is complicated, so bare with me. I want to know by adding 2GB PV into LogGroup and then remove it from the same LogGroup and then added back later. Would the data still exists and accessible? What happens to the data when I remove it the first time, would be automatically deleted, or stay hidden to plug back in?
View 4 Replies
View Related
Jun 21, 2010
Yesterday I had a functioning system but needed to do an reinstall of ubuntu because of missing dependencies. Then I installed /dev/sda5 as normal (no lvm) When I ran vgchange -ay after installation it did not find my missing logic volume. Instead got a whole bunch of error messages. I googled and followed the advice below vgreduce --removemissing UBUNTU. I did this vgreduce command because when running pvs I got /dev/sda5 unknown device.
Read LVM HOWTO, but I dont understand this part. How can I know which pvs belongs to which LV "Use pvcreate to restore the metadata: pvcreate --uuid "<some_long_string>" --restorefile /etc/lvm/archive/VolumeGroupName_XXXXX.vg <PhysicalVolume>" below:
Code:
View 3 Replies
View Related
Jan 9, 2010
I have vista and opensuse 11.2 on my computer, the problem is i can't open ext3 partitions from vista but i can the other way. I tried Ext2fsd but the linux partition is always in a read only mood even when i change this option. Also, all folders are empty I downloaded the program as admin and compatable with XP SP2.
View 3 Replies
View Related