7-STABLE, gjournal and fsck.

Eugene Butusov ebutusov at gmail.com
Sun Aug 3 15:03:33 UTC 2008


Dmitry Morozovsky wrote:
> On Sun, 3 Aug 2008, Eugene Butusov wrote:
> 
> EB> > Did you re-create your file systems? How did you create the journal?
> EB> > 
> EB> > eg. newfs /dev/ad4s1g.journal       ?
> EB> > 
> EB> > or did you just enable journal on the partition? via tunefs?
> EB> 
> EB> I did it this way:
> EB> 
> EB> /dev/ad4s1g is my /home, an existing partition
> EB> 
> EB> umount /home
> EB> gjournal label -f /dev/ad4s1g
> EB> tunefs -J enable -n disable /dev/ad4s1g.journal
> EB> (added 'async' option to /etc/fstab for /home and changed entry to
> EB> /dev/ad4s1g.journal)
> EB> mount /home
> EB> 
> EB> It worked until power failed... :)
> 
> No surprize. with you `gjournal label' command you've effectively destroyed 
> last 1G of UFS.  You should use external journal provider in such case.

Thanks, it explains everything. Ehm... well, next time I'll do it the 
right way.

Best regards,
-- 
_/_/   .. Eugene Butusov
  _/_/  ... www.devilka.info
   _/_/ .... ebutusov(at)gmail(dot)com


More information about the freebsd-stable mailing list