[Bug 220391] "gpart resize" = panic

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Mar 8 13:45:28 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220391

James Qin <jqin at itti.pw> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jqin at itti.pw

--- Comment #4 from James Qin <jqin at itti.pw> ---
(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.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-geom mailing list