Bug 161864 - [ufs] removing journaling from UFS partition fails on gpt-labelled disk
Summary: [ufs] removing journaling from UFS partition fails on gpt-labelled disk
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-21 08:50 UTC by bartsch
Modified: 2017-12-31 22:32 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bartsch 2011-10-21 08:50:03 UTC
I'm not able to get rid of journaling on a gpt-labeled disk.
Journal creation works as expected.
Console output:
GEOM_JOURNAL: Journal 3251779739: ada5p2 contains data.
GEOM_JOURNAL: Journal 3251779739: ada5p1 contains journal.
GEOM_JOURNAL: Journal ada5p2 clean.

After stopping journaling I get the following console output:
GEOM_JOURNAL: Journal 3251779739: gptid/bbf0f112-fbb0-11e0-a819-000423dc1f94 contains journal.
GEOM_JOURNAL: Journal 3251779739: gptid/c688176f-fbb0-11e0-a819-000423dc1f94 contains data.
GEOM_JOURNAL: Journal gptid/c688176f-fbb0-11e0-a819-000423dc1f94 clean.

gjournal clear ada5p2 fails: 
Cannot clear metadata on ada5p2: Operation not permitted.
gjournal: Not fully done.

gjournal stop gptid/c688176f-fbb0-11e0-a819-000423dc1f94.journal leads to following console output:
GEOM_JOURNAL: Journal 3251779739: ada5p2 contains data.
GEOM_JOURNAL: Journal 3251779739: ada5p1 contains journal.
GEOM_JOURNAL: Journal ada5p2 clean.

this seems to be endless repeatable.
"gjournal clear" fails on all possible device names.

How-To-Repeat: issuing the following commands on a clean disk (here /dev/ada5):
gpart label -s GPT ada5
gpart add -t freebsd-swap -s 2g ada5
gpart add -t freebsd-ufs  ada5
gjournal label ada5p2 ada5p1
gjournal stop ada5p2.journal
gjournal clear ada5p2
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2011-10-22 06:05:27 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-fs

This kind of spans several areas, so try to guess at a label for it as 
I assign it.
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:50 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped