Ask Your Question

aimt's profile - activity

2014-08-17 05:48:23 -0500 received badge  Popular Question (source)
2014-08-17 05:48:23 -0500 received badge  Famous Question (source)
2014-08-17 05:48:23 -0500 received badge  Notable Question (source)
2013-02-11 13:26:21 -0500 received badge  Editor (source)
2013-02-11 13:12:25 -0500 asked a question Installing Windows along with fedora 18 problem with lvm

I want to install windows along with fedora in my system, and for the same I resized me 750 GB /home to 500GB and mounted it back. Whenever I try to run lvm pvresize i get the following error

[root@localhost ~]# lvm pvresize /dev/sda3 --setphysicalvolumesize 232G
  /dev/sda3: cannot resize to 59391 extents as 178789 are allocated.
  0 physical volume(s) resized / 1 physical volume(s) not resized

I think the problem is that the /root and swap are still linearly mounted after the unused space.

[root@localhost ~]# df
Filesystem              1K-blocks    Used Available Use% Mounted on
rootfs                   51606140  992812  47991888   3% /
devtmpfs                  2739528       0   2739528   0% /dev
tmpfs                     2751188     236   2750952   1% /dev/shm
tmpfs                     2751188    5028   2746160   1% /run
tmpfs                     2751188       0   2751188   0% /sys/fs/cgroup
/dev/mapper/fedora-root  51606140  992812  47991888   3% /
/dev/mapper/fedora-usr  146149952 4177604 134548348   4% /usr
/dev/sda2                  495844   41975    428269   9% /boot
/dev/sda1                  204580    7996    196584   4% /boot/efi
/dev/mapper/fedora-tmp    1592444   36352   1475196   3% /tmp
/dev/sr0                  4465968 4465968         0 100% /run/media/root/Fedora 18 x86_64
/dev/mapper/fedora-home 516061624  788080 489059144   1% /home

image:![logical volume management] (http://dl.dropbox.com/u/113616505/Screenshot%20from%202013-02-12%2000%3A20%3A09.png "logical volume management")

Is it it the problem why pvresize fails? Is possible to move /root and swap? How can I make a new fat/ntfs partion to install windows?

Output of fdisk -l

[root@localhost ~]# fdisk -l

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sda: 1000.2 GB, 1000204886016 bytes, 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1  1953525167   976762583+  ee  GPT
Partition 1 does not start on physical sector boundary.

Disk /dev/mapper/fedora-usr: 152.0 GB, 152043520000 bytes, 296960000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/mapper/fedora-swap: 5637 MB, 5637144576 bytes, 11010048 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/mapper/fedora-root: 53.7 GB, 53687091200 bytes, 104857600 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/mapper/fedora-tmp: 1656 MB, 1656750080 bytes, 3235840 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/mapper/fedora-home: 536.9 GB, 536870912000 bytes, 1048576000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


[root@localhost ~]# vgdisplay
  --- Volume group ---
  VG ...
(more)