Created attachment 183957 [details] crashinfo storm~;gpart show da3 => 40 1953525088 da3 GPT (932G) 40 1024 1 freebsd-boot (512K) 1064 984 - free - (492K) 2048 16777216 2 freebsd-swap (8.0G) 16779264 10485760 3 freebsd-ufs (5.0G) 27265024 10485760 4 freebsd-ufs (5.0G) 37750784 209715200 5 freebsd-ufs (100G) 247465984 209715200 6 freebsd-ufs (100G) 457181184 1496343944 - free - (714G) storm~;gpart resize -i 5 -s 50g da3 ...and my SSH terminal goes away. Console drops to debugger. Enter "dump", "reset."
Could you try to update to a current 12-CURRENT (r320390 or newer) or 11-STABLE (r320562 or newer) and see if the problem persists?
Erm, please disregard the previous comment - I hadn't noticed your crashinfo; it's a different bug.
I'm trying to reproduce this bug, but I'm failing to do so. Could you provide some more details for me: - What is your root? (It was da3p5?) - Was da3p5 mounted? - da3p5 was clean or there was a UFS there? (Did you do newfs before resize?) - How much data you had on da3p5?
(In reply to Mariusz Zaborski from comment #3) I hit this bug as well, trying to resize da0p2 of a secondary disk that has 3 partitions. Maybe I could answer your questions to help reproduce the error. - What is your root? (It was da3p5?) # my root is on another disk - Was da3p5 mounted? # the partition I tried to resize wasn't mounted - da3p5 was clean or there was a UFS there? (Did you do newfs before resize?) # newfs was ran on all the partitions on this disk before resize (freebsd-ufs) - How much data you had on da3p5? # the resize partition is new and empty with 50G of space $ sudo gpart resize -i 2 -a 1M -s 25G da0 After kernel panic and rebooted manually, gpart in my case is showing resize was completed. gpart show da0 => 40 625142368 da0 GPT (298G) 40 2008 - free - (1.0M) 2048 209715200 1 freebsd-ufs (100G) 209717248 52428800 2 freebsd-ufs (25G) 262146048 52428800 - free - (25G) 314574848 310566912 3 freebsd-ufs (148G) 625141760 648 - free - (324K) I hope this helps.
(sorry for the delay, back with this system now) My root was ada0p1, a totally different drive. Partition was not mounted. It did have a UFS. I intended to growfs after resizing.
(In reply to James Qin from comment #4) Follow up to the data I provided. After I tried expand the "shrink" partition gpart is showing the original size of 50G. $ sudo gpart resize -i 2 -a 1M -s 35G da0 $ gpart show da0 => 40 625142368 da0 GPT (298G) 40 2008 - free - (1.0M) 2048 209715200 1 freebsd-ufs (100G) 209717248 104857600 2 freebsd-ufs (50G) 314574848 310566912 3 freebsd-ufs (148G) 625141760 648 - free - (324K)