I have a 1T USB disk with Fedora 20 installed. It shows as sdd in the first image below. I only used about 50GB. There are 3 logic volumes under the sdd2 and also there are about 620GB of free space after I shrunk its home logical partition, as shown in the second image.
I am thinking create a physical volume/partition, sdd3, by using that 620GB free space. I hope other logical volumes will not be damaged and data will stay unchanged. how can I do that?
I have created a disk image with clonezilla. So I am not worry about data loss during the process.
The purpose of doing this is I want to move the installation on my 1T disk with settings over to my another 500GB USB disk. I have tried many ways, clonezilla, dd logical partition(s), true image, gparted, .... no one can help me or gives me a good result due to the lvm and smaller destination. I hope I can dd physical partition after the new physical partition takes over some space.
My have to restart my ubuntu live CD session. now the target disk is sdb . I got error when I try to resize the sdb2:
ubuntu@ubuntu:~$ sudo su root@ubuntu:/home/ubuntu# pvdisplay /dev/sdb2 --- Physical volume --- PV Name /dev/sdb2 VG Name fedora_lym PV Size 930.99 GiB / not usable 4.00 MiB Allocatable yes PE Size 4.00 MiB Total PE 238333 Free PE 160569 Allocated PE 77764 PV UUID Ytsy31-op7u-DqLM-lJG7-uIFb-2hAG-eZhn0a root@ubuntu:/home/ubuntu# pvresize --setphysicalvolumesize 320G /dev/sdb2 /dev/sdb2: cannot resize to 81919 extents as later ones are allocated. 0 physical volume(s) resized / 1 physical volume(s) not resized root@ubuntu:/home/ubuntu#
Done, sdb3 is here now:
root@ubuntu:/home/ubuntu# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 223.6G 0 disk ├─sda1 8:1 0 100M 0 part └─sda2 8:2 0 223.5G 0 part sdb 8:16 0 931.5G 0 disk ├─sdb1 8:17 0 500M 0 part ├─sdb2 8:18 0 312.5G 0 part │ ├─fedora_lym-swap 252:0 0 3.8G 0 lvm │ ├─fedora_lym-home 252:1 0 250G 0 lvm │ └─fedora_lym-root 252:2 0 50G 0 lvm └─sdb3 8:19 0 618.5G 0 part sr0 11:0 1 4.4G 0 rom /cdrom loop0 7:0 0 1.1G 1 loop /rofs root@ubuntu:/home/ubuntu#