Must I reboot after altering / partition in CentOS7

I'm trying to script the resize of VMs.  Is there a way to continue without a reboot of the VM after altering the partition table?

It seems that partprobe doesn't work on CentOS7 as with previous versions, so partprobe then pvresize etc. will not work.

It's a real bugbear of mine the way things are changed to "protect" us form ourselves.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Zephyr ICTCloud ArchitectCommented:
I haven't tested this but wouldn't partx be an option?

You create the partition via fdisk for example and add the new partition using partx, for example:

partx -v -a /dev/sdb 

Open in new window

This would add the partition to the system...
micktAuthor Commented:
I tried it but it didn't work.  At least with / partition.
Zephyr ICTCloud ArchitectCommented:
It doesn't work with partitions that already exist and are altered, that's true ... It worked with new partitions in previous versions, can't say for CentOS7 though...
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

micktAuthor Commented:
I think behavior changed around CentOs6.
Zephyr ICTCloud ArchitectCommented:
Could be ... But did you try it with a new partition or an existing one, are you able to test it with a new partition? Just out of curiosity ...

In any case, if you want to adjust existing partitions a reboot will most likely be required.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
micktAuthor Commented:
I didn't but I expect it would work.  It is a safety precaution to protect existing partitions.  It's very inconvenient.

I'm hopeful though that there is a workaround out there.
Zephyr ICTCloud ArchitectCommented:
I've been looking for a solution as well, but since they changed it there hasn't been much out there ... If you find a way I'd love to know :)

Anyway, thanks!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.