
07-04-2006, 08:04 PM
|
|
Senior Member
|
|
Join Date: Nov 2005
Location: Ga. USofA
Posts: 7,906
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
Am I the only one who does not like doing that? Seems a bit of work, why not just use ext3.
|
|

07-04-2006, 08:12 PM
|
 |
Super Moderator
|
|
Join Date: Jul 2005
Location: Estonia
Posts: 3,610
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
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
|
|

07-04-2006, 10:32 PM
|
|
Senior Member
|
|
Join Date: Nov 2005
Location: Ga. USofA
Posts: 7,906
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
Hmm, I see your point.
|
|

07-05-2006, 10:30 AM
|
 |
Super Moderator
|
|
Join Date: Jul 2005
Location: Estonia
Posts: 3,610
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
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
|
|

07-05-2006, 03:01 PM
|
|
Senior Member
|
|
Join Date: Feb 2006
Location: C'ville, Va.
Posts: 695
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

07-07-2006, 06:47 PM
|
 |
Super Moderator
|
|
Join Date: Jul 2005
Location: Estonia
Posts: 3,610
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
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
|
|

07-13-2006, 10:55 AM
|
|
Junior Member
|
|
Join Date: Jul 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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??
|
|

07-13-2006, 11:45 AM
|
|
Senior Member
|
|
Join Date: Jun 2006
Posts: 1,178
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
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...)
|
|

07-13-2006, 11:49 AM
|
 |
Super Moderator
|
|
Join Date: Jul 2005
Location: Estonia
Posts: 3,610
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
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
|
|

07-13-2006, 11:57 AM
|
|
Senior Member
|
|
Join Date: Jun 2006
Posts: 1,178
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
<Mr Burns>
Excellent!
</Mr Burns>
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 07:26 PM.
|
|