Reply
 
Thread Tools Display Modes
  #11  
Old 07-04-2006, 08:04 PM
TerryP TerryP is offline
Senior Member
 
Join Date: Nov 2005
Location: Ga. USofA
Posts: 7,906
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to TerryP Send a message via AIM to TerryP Send a message via Yahoo to TerryP
Default
Am I the only one who does not like doing that? Seems a bit of work, why not just use ext3.
Reply With Quote
  #12  
Old 07-04-2006, 08:12 PM
antik's Avatar
antik antik is offline
Super Moderator
 
Join Date: Jul 2005
Location: Estonia
Posts: 3,610
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Originally Posted by TerryP
Am I the only one who does not like doing that? Seems a bit of work, why not just use ext3.
ext3 is pseudojournaled filesystem, just like ufs2+softupdates.
But with gjournal it is possible even use journaling features with old filesystem like FAT32.... :twisted:
__________________
"All parts should go together without forcing. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer." -- IBM maintenance manual, 1975
Reply With Quote
  #13  
Old 07-04-2006, 10:32 PM
TerryP TerryP is offline
Senior Member
 
Join Date: Nov 2005
Location: Ga. USofA
Posts: 7,906
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to TerryP Send a message via AIM to TerryP Send a message via Yahoo to TerryP
Default
Hmm, I see your point.
Reply With Quote
  #14  
Old 07-05-2006, 10:30 AM
antik's Avatar
antik antik is offline
Super Moderator
 
Join Date: Jul 2005
Location: Estonia
Posts: 3,610
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Originally Posted by antik
So, I tested what is journaling and how to use this feature:

Code:
# swapoff /dev/ad0s2b 
# umount /dev/ad0s4 
# gjournal label ad0s4 ad0s2b
# mount -o async,gjournal /dev/ad0s4.journal /mnt/ad0s4
# df -h
/dev/ad0s4.journal     56G     24G     27G    47%    /mnt/ad0s4
# mount
/dev/ad0s4.journal on /mnt/ad0s4 (ufs, asynchronous, local, gjournal)
Read speed is indeed better than standard ufs but writing is slower for about 10%. But I have to backup all files from ad0s4 and restore my swap usage then I can permanently prepare ad0s4 for journaling:

add geom_journal_load="YES" into /boot/loader.conf
Code:
# reboot
# gjournal label /dev/ad0s4 
# newfs /dev/ad0s4.journal
You can use journaling even to existing filesystems.

Code:
umount /dev/ad0s4
gjournal label /dev/ad0s4
mount -o async,gjournal /dev/ad0s4.journal /mnt/ad0s4
Code:
# mount
/dev/ad0s4.journal on /mnt/ad0s4 (ufs, asynchronous, local, gjournal)
Enable journaling on bootup:
add geom_journal_load="YES" into /boot/loader.conf

Change line in /etc/fstab:
Code:
/dev/ad0s4      /mnt/ad0s4              auto    rw,noauto       0       0
to
Code:
/dev/ad0s4.journal      /mnt/ad0s4              ufs    rw,async,gjournal       2       2
__________________
"All parts should go together without forcing. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer." -- IBM maintenance manual, 1975
Reply With Quote
  #15  
Old 07-05-2006, 03:01 PM
DragnLord DragnLord is offline
Senior Member
 
Join Date: Feb 2006
Location: C'ville, Va.
Posts: 695
Thanks: 0
Thanked 0 Times in 0 Posts
Default
since PC-BSD scripts change fstab on boot, maybe you could post a revised script for people using gjournal (hopefully this makes default, huge boost in desktop usability)
__________________
add [SOLVED] to topics with solutions
psearch: use it, love it
Reply With Quote
  #16  
Old 07-07-2006, 06:47 PM
antik's Avatar
antik antik is offline
Super Moderator
 
Join Date: Jul 2005
Location: Estonia
Posts: 3,610
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Originally Posted by DragnLord
since PC-BSD scripts change fstab on boot, maybe you could post a revised script for people using gjournal (hopefully this makes default, huge boost in desktop usability)
Great bsdtalk interview with Pawel Jakub Dawidek about gjournaling and other projects.
__________________
"All parts should go together without forcing. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer." -- IBM maintenance manual, 1975
Reply With Quote
  #17  
Old 07-13-2006, 10:55 AM
PCdoc PCdoc is offline
Junior Member
 
Join Date: Jul 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default ufs partition imaging
that's a cool trick antik

Code:
# dd if=/dev/zero of=/0bits bs=20971520   # bs=20m 
# rm /0bits
+ghost = smaller images

is there anything like ghost that can image pcbsd's partitions and just save the good stuff, so it can be laid down on a partition that is not the same size??
Reply With Quote
  #18  
Old 07-13-2006, 11:45 AM
rodonn rodonn is offline
Senior Member
 
Join Date: Jun 2006
Posts: 1,178
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Now that's a strange thing... I was wondering if there was a Ghost clone for PC-PSD this morning (about 5am, as you do...)
Reply With Quote
  #19  
Old 07-13-2006, 11:49 AM
antik's Avatar
antik antik is offline
Super Moderator
 
Join Date: Jul 2005
Location: Estonia
Posts: 3,610
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Originally Posted by rodonn
Now that's a strange thing... I was wondering if there was a Ghost clone for PC-PSD this morning (about 5am, as you do...)
Ghost4Unix.
__________________
"All parts should go together without forcing. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer." -- IBM maintenance manual, 1975
Reply With Quote
  #20  
Old 07-13-2006, 11:57 AM
rodonn rodonn is offline
Senior Member
 
Join Date: Jun 2006
Posts: 1,178
Thanks: 0
Thanked 0 Times in 0 Posts
Default
<Mr Burns>
Excellent!
</Mr Burns>
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS sharing a file system over the net GigiLaTrottola FreeBSD Help 3 03-03-2009 09:01 PM
What file system I can use for PC-BSD? FastMady123 General Questions 1 09-28-2008 08:39 PM
File system full? miggols99 Installing PC-BSD 8 05-05-2008 09:05 AM
ZFS - Solaris' new file system dracheflieger The Lounge 3 06-21-2006 06:19 PM
What is the best file system Atze Installing PC-BSD 1 06-27-2005 01:08 PM


All times are GMT. The time now is 07:26 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.