Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
made a bit of a stupid mistake when stretching a disk, I added 550Gb to the existing disk in vmware, created a partition in fdisk, created a pv, stretched the group onto that pv, then stretched the lv to 100%.
after doing all this I realised the partition I had created was only 15Gb (I used fdisk default values I didn't check thoroughly!!). I went back into fdisk, deleted the partition, created a new partition with the same starting point and full size this time and rebooted.
Now the problem is, it seems like the change I make in fdisk is not actually taking effect, for example, after reboot fdisk sees the correct partition size, but parted does not (still shows the partition as 15gb and 500gb of free space. This has prevented me from doing a pvresize, it still thinks the disk is only 15g. Any ideas what else I could do to try and claim this space? I wanted to just delete the pv and start over but I cant do a pvmove because there is no free space to move the new pv off to and because the disk is so full its starting consuming space on this pv aswell.
Disk /dev/sda: 1664.3 GB
Device Boot Start End Blocks Id System
/dev/sda1 1 2202009599 1101004769+ ee GPT
/dev/sda2 2202009600 3040870389 419430300 ee GPT
pvmove /dev/sda2
No extents available for allocation
pvdisplay /dev/sda2
--- Physical volume ---
PV Name /dev/sda2
VG Name vg_one
PV Size 15.65 GiB / not usable 24.78 MiB
Allocatable yes (but full)
PE Size 32.00 MiB
Total PE 500
Free PE 0
Allocated PE 500
/dev/sda3 doesn't exist, yet LVM thinks it does. I'd say pvremove sda3 and restart from scratch.
Yes that is strange, do you think that would cause data loss? Sda3 (which is really sda1) has 1tb space and its file system is 90% full with files and is also the root partition.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.