Re: setup journaling for root partition

2013-06-03 Thread Adam Vande More
On Tue, May 21, 2013 at 9:46 AM, Michael Sierchio ku...@tenebras.com wrote:
 AFAIK Softupdates journaling still breaks snapshot functionality - which
 makes it unusable for me. I wouldn't assume that the O.P. doesn't want we
 he's asking for.

Fixed awhile ago unless there is new bug on that.  Haven't tried.

http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/161674


--
Adam Vande More
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: setup journaling for root partition

2013-05-24 Thread s m
thanks Warren, you're right but i want to set journaling in fixit
mode in fixit mode none of my partitions are mounted (mount
command show no partition) but geom returns error yet.

is there any way to tell geom that my partitions are unmounted?

On 5/23/13, Warren Block wbl...@wonkity.com wrote:
 On Thu, 23 May 2013, Torsten Hantzsche wrote:

 On Thu, 23 May 2013, s m wrote:


 thanks,

 i do as you said, but after loading gjournal, dd says operation not
 permitted.
 gjournal clear says operation not permitted too and therefore
 gjournal
 label is not done and say previous error (gjournal cannot clear
 metadata
 on ad3s1a: operation not permitted). and -v return no extra log.

 i don't know why i can not do any thing in fixit mode:(

 is this a true procedure? i mean maybe i should do any thing else
 because
 freebsd handbook set journaling for user partition in single user mode
 not
 in fixit mode. i test it and it works well, but for root partition i can
 not do the same because root partition can not be unmount in single user
 mode.

 any hints or comments are really appreciated.
 thanks in advance


 Hi,

 i remember having similar error messages with glabel some years ago.
 The solution was found in man 4 geom in section DIAGNOSTICS:

 I had to set kern.geom.debugflags=0x10 to enable the foot shooting
 mode.

 Maybe this could help you too?

 For certain values of help. :)

 If geom won't let you write to part of a disk, it's because it thinks
 that part of the disk is already in use, usually by a mounted
 filesystem.  Overwriting part of a filesystem is not guaranteed to lose
 data.  But why take the chance?

 Better to boot from mfsBSD (http://mfsbsd.vx.sk/).  Possibly better yet
 to use SUJ, which can be enabled with tunefs with the root partition
 mounted read-only in single user mode.  SUJ has its own problems,
 though.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: setup journaling for root partition

2013-05-23 Thread Michael Sierchio
On Wed, May 22, 2013 at 10:53 PM, s m sam.gh1...@gmail.com wrote:

 thanks Michael for your quick reply:)
 yes, i can boot from usb freebsd flash and use fixit mode.
 i have root, var, tmp, usr and swap on my system. i create an extra swap
 partition to use it as journal provider for root partition.

 in fixit mode, first i run two below command in order to abel load
 gjournal:

 ln -s /dist/lib /lib
 ls -s /dist/boot/kernel /boot/modules

 then
 gjournal load

 and after that: gjournal label -f ad3s1a ad3s1g (ad3s1a is root
 partition and ad3s1g is swap partition for journal provider)

 but this error is shown:
 gjournal cannot clear metadata on ad3s1a: operation not permitted
 what is wrong here??? i really don't know how to fix it:


Try using -v to get more verbose output.  I am at a loss here, too.
 Perhaps you can try

gjournal load
dd if=/dev/zero of=/dev/ad3s1g bs=1m
gjournal clear -v ad3s1a
gjournal label -vf ad3s1a ad3s1g

and see what it says, if anything.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: setup journaling for root partition

2013-05-23 Thread s m
thanks,

i do as you said, but after loading gjournal, dd says operation not
permitted.
gjournal clear says operation not permitted too and therefore gjournal
label is not done and say previous error (gjournal cannot clear metadata
on ad3s1a: operation not permitted). and -v return no extra log.

i don't know why i can not do any thing in fixit mode:(

is this a true procedure? i mean maybe i should do any thing else  because
freebsd handbook set journaling for user partition in single user mode not
in fixit mode. i test it and it works well, but for root partition i can
not do the same because root partition can not be unmount in single user
mode.

any hints or comments are really appreciated.
thanks in advance



On Thu, May 23, 2013 at 10:41 AM, Michael Sierchio ku...@tenebras.comwrote:


 On Wed, May 22, 2013 at 10:53 PM, s m sam.gh1...@gmail.com wrote:

 thanks Michael for your quick reply:)
 yes, i can boot from usb freebsd flash and use fixit mode.
 i have root, var, tmp, usr and swap on my system. i create an extra swap
 partition to use it as journal provider for root partition.

 in fixit mode, first i run two below command in order to abel load
 gjournal:

 ln -s /dist/lib /lib
 ls -s /dist/boot/kernel /boot/modules

 then
 gjournal load

 and after that: gjournal label -f ad3s1a ad3s1g (ad3s1a is root
 partition and ad3s1g is swap partition for journal provider)

 but this error is shown:
 gjournal cannot clear metadata on ad3s1a: operation not permitted
 what is wrong here??? i really don't know how to fix it:


 Try using -v to get more verbose output.  I am at a loss here, too.
  Perhaps you can try

 gjournal load
 dd if=/dev/zero of=/dev/ad3s1g bs=1m
 gjournal clear -v ad3s1a
 gjournal label -vf ad3s1a ad3s1g

 and see what it says, if anything.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: setup journaling for root partition

2013-05-23 Thread Torsten Hantzsche

On Thu, 23 May 2013, s m wrote:



thanks,

i do as you said, but after loading gjournal, dd says operation not
permitted.
gjournal clear says operation not permitted too and therefore gjournal
label is not done and say previous error (gjournal cannot clear metadata
on ad3s1a: operation not permitted). and -v return no extra log.

i don't know why i can not do any thing in fixit mode:(

is this a true procedure? i mean maybe i should do any thing else  because
freebsd handbook set journaling for user partition in single user mode not
in fixit mode. i test it and it works well, but for root partition i can
not do the same because root partition can not be unmount in single user
mode.

any hints or comments are really appreciated.
thanks in advance



Hi,

i remember having similar error messages with glabel some years ago.
The solution was found in man 4 geom in section DIAGNOSTICS:

I had to set kern.geom.debugflags=0x10 to enable the foot shooting mode.

Maybe this could help you too?


Torsten
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: setup journaling for root partition

2013-05-23 Thread RW
On Thu, 23 May 2013 09:57:50 +0430
s m wrote:


 my problem is, i can not run gjournal command for root partition in
 fixit mode nor single user mode. 

Just to check, you did boot into single user mode rather than shut-down
into single user mode?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: setup journaling for root partition

2013-05-23 Thread s m
thanks Torsten but it can't help me:((

and RW, yes i can boot to single user mode, but i can't do anything
there!!! i mean when i run command gjournal label -f ad3s1a ad3s1g some
errors returned and all my partition disappear!!

what do you do if you want to set a journal partition for your root
partition? can you tell me step by step to compare it with my steps?

i really don't know how to set a journal partition for my root:(( i think
it is so simple but it make me busy more than a week:(


On Thu, May 23, 2013 at 3:34 PM, RW rwmailli...@googlemail.com wrote:

 On Thu, 23 May 2013 09:57:50 +0430
 s m wrote:


  my problem is, i can not run gjournal command for root partition in
  fixit mode nor single user mode.

 Just to check, you did boot into single user mode rather than shut-down
 into single user mode?
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: setup journaling for root partition

2013-05-23 Thread Warren Block

On Thu, 23 May 2013, Torsten Hantzsche wrote:


On Thu, 23 May 2013, s m wrote:



thanks,

i do as you said, but after loading gjournal, dd says operation not
permitted.
gjournal clear says operation not permitted too and therefore gjournal
label is not done and say previous error (gjournal cannot clear metadata
on ad3s1a: operation not permitted). and -v return no extra log.

i don't know why i can not do any thing in fixit mode:(

is this a true procedure? i mean maybe i should do any thing else  because
freebsd handbook set journaling for user partition in single user mode not
in fixit mode. i test it and it works well, but for root partition i can
not do the same because root partition can not be unmount in single user
mode.

any hints or comments are really appreciated.
thanks in advance



Hi,

i remember having similar error messages with glabel some years ago.
The solution was found in man 4 geom in section DIAGNOSTICS:

I had to set kern.geom.debugflags=0x10 to enable the foot shooting mode.

Maybe this could help you too?


For certain values of help. :)

If geom won't let you write to part of a disk, it's because it thinks 
that part of the disk is already in use, usually by a mounted 
filesystem.  Overwriting part of a filesystem is not guaranteed to lose 
data.  But why take the chance?


Better to boot from mfsBSD (http://mfsbsd.vx.sk/).  Possibly better yet 
to use SUJ, which can be enabled with tunefs with the root partition 
mounted read-only in single user mode.  SUJ has its own problems, 
though.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: setup journaling for root partition

2013-05-22 Thread s m
thanks Michael, but in all documentation about journaling, tunefs is used
as below: tunefs -J enable ad3s1X.journal. ad3s1X.journal is created by
gjournal command: gjournal label ad3s1a ad3s1g that assign ad3s1g as
journal provider for ad3s1a and create ad3s1a.journal which contains ad3s1a
as data provider and ad3s1g as journal provider.

my problem is, i can not run gjournal command for root partition in fixit
mode nor single user mode. you mean, i should just use tunefs command on
ad3s1X (root partition)? if yes, then where journal provider for root
partition is located? in root partition?


On Wed, May 22, 2013 at 10:23 AM, Michael Sierchio ku...@tenebras.comwrote:



 On Tue, May 21, 2013 at 10:14 PM, s m sam.gh1...@gmail.com wrote:

 thanks guys for your attentions.

 i want to setup journaling in FreeBSD 8.2. i compare soft-update and
 journaling and choose journaling (it is more suitable for my goals).

 i want to enable journaling for all my partitions. i can do it for all
 partitions except root in single user mode. i can not do it for root
 because i can not unmount root in single user mode.


 No, but you don't need to.  In single user mode, root is mounted
 read-only.  You can run tunefs on the root fs device.

 - M

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: setup journaling for root partition

2013-05-22 Thread Michael Sierchio
On Wed, May 22, 2013 at 10:27 PM, s m sam.gh1...@gmail.com wrote:

 thanks Michael, but in all documentation about journaling, tunefs is used
 as below: tunefs -J enable ad3s1X.journal. ad3s1X.journal is created by
 gjournal command: gjournal label ad3s1a ad3s1g that assign ad3s1g as
 journal provider for ad3s1a and create ad3s1a.journal which contains ad3s1a
 as data provider and ad3s1g as journal provider.

 my problem is, i can not run gjournal command for root partition in fixit
 mode nor single user mode. you mean, i should just use tunefs command on
 ad3s1X (root partition)? if yes, then where journal provider for root
 partition is located? in root partition?


Ah, sorry -  lack of careful reading on my part.  Can you boot from
installation media and use the fixit mode?  This still won't work if the
last sector of the partition is in use by the filesystem  You'll need a
spare partition of some size to be the journal provider, as in the example.

The very best approach is to create a gjournal and then newfs.  How is your
disk organized?  One big root partition with everything on it?

- M
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: setup journaling for root partition

2013-05-22 Thread s m
thanks Michael for your quick reply:)
yes, i can boot from usb freebsd flash and use fixit mode.
i have root, var, tmp, usr and swap on my system. i create an extra swap
partition to use it as journal provider for root partition.

in fixit mode, first i run two below command in order to abel load gjournal:

ln -s /dist/lib /lib
ls -s /dist/boot/kernel /boot/modules

then
gjournal load

and after that: gjournal label -f ad3s1a ad3s1g (ad3s1a is root partition
and ad3s1g is swap partition for journal provider)

but this error is shown:
gjournal cannot clear metadata on ad3s1a: operation not permitted
what is wrong here??? i really don't know how to fix it:



On Thu, May 23, 2013 at 10:12 AM, Michael Sierchio ku...@tenebras.comwrote:


 On Wed, May 22, 2013 at 10:27 PM, s m sam.gh1...@gmail.com wrote:

 thanks Michael, but in all documentation about journaling, tunefs is used
 as below: tunefs -J enable ad3s1X.journal. ad3s1X.journal is created by
 gjournal command: gjournal label ad3s1a ad3s1g that assign ad3s1g as
 journal provider for ad3s1a and create ad3s1a.journal which contains ad3s1a
 as data provider and ad3s1g as journal provider.

 my problem is, i can not run gjournal command for root partition in fixit
 mode nor single user mode. you mean, i should just use tunefs command on
 ad3s1X (root partition)? if yes, then where journal provider for root
 partition is located? in root partition?


 Ah, sorry -  lack of careful reading on my part.  Can you boot from
 installation media and use the fixit mode?  This still won't work if the
 last sector of the partition is in use by the filesystem  You'll need a
 spare partition of some size to be the journal provider, as in the example.

 The very best approach is to create a gjournal and then newfs.  How is
 your disk organized?  One big root partition with everything on it?

 - M

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


setup journaling for root partition

2013-05-21 Thread s m
hello everybody

i want to setup a journal partition for my root partition. but i do not
know how to do that. in FreeBSD handbook, it is done in single user mode,
unmount the desired partition and assign the journal partition to it. i
test this procedure and it is done for /usr partition but for root
partition, it can not be unmount in single user mode.

i try to do it in fixiit mode, but i can not load gjournal.

do i use gpart to partitioning my system and enable journaling for root
partition? isn't there any way to setup journaling for my existing root
partition? which command should be used (or is better to used) to enable
journaling? tunefs, gjournal or newfs?

please help me to setup a journal partition for my root.
thanks in advance
SAM
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: setup journaling for root partition

2013-05-21 Thread Michael Sierchio
On Mon, May 20, 2013 at 10:59 PM, s m sam.gh1...@gmail.com wrote:

 hello everybody

 i want to setup a journal partition for my root partition. but i do not
 know how to do that. in FreeBSD handbook, it is done in single user mode,
 unmount the desired partition and assign the journal partition to it. i
 test this procedure and it is done for /usr partition but for root
 partition, it can not be unmount in single user mode.


See the man page on gjournal

 To configure journaling on the UFS file system using gjournal, one
should
 first create a gjournal provider using the gjournal utility, then run
 newfs(8) or tunefs(8) on it with the -J flag which instructs UFS to
coop-
 erate with the gjournal provider below.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: setup journaling for root partition

2013-05-21 Thread s m
thanks Michael

this is what i've done (based on the FreeBSD handbook): creating a
partition for journal, go to single user mode, unmount desired partition
(for example /usr), load gjournal, add journal partition to /usr partition.
this procedure works well for user and other partitions except root because
i can not unmount it.

should i set up journaling in fixit mode with gpart? how? i try different
ways but none of them work for me:((



On Tue, May 21, 2013 at 10:36 AM, Michael Sierchio ku...@tenebras.comwrote:


 On Mon, May 20, 2013 at 10:59 PM, s m sam.gh1...@gmail.com wrote:

 hello everybody

 i want to setup a journal partition for my root partition. but i do not
 know how to do that. in FreeBSD handbook, it is done in single user mode,
 unmount the desired partition and assign the journal partition to it. i
 test this procedure and it is done for /usr partition but for root
 partition, it can not be unmount in single user mode.


 See the man page on gjournal

  To configure journaling on the UFS file system using gjournal, one
 should
  first create a gjournal provider using the gjournal utility, then run
  newfs(8) or tunefs(8) on it with the -J flag which instructs UFS to
 coop-
  erate with the gjournal provider below.



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: setup journaling for root partition

2013-05-21 Thread Julien Cigar
gjournal should not be used anymore as it has been implemented in the 
file system code ...


On 05/21/2013 11:24, s m wrote:

thanks Michael

this is what i've done (based on the FreeBSD handbook): creating a
partition for journal, go to single user mode, unmount desired partition
(for example /usr), load gjournal, add journal partition to /usr partition.
this procedure works well for user and other partitions except root because
i can not unmount it.

should i set up journaling in fixit mode with gpart? how? i try different
ways but none of them work for me:((



On Tue, May 21, 2013 at 10:36 AM, Michael Sierchio ku...@tenebras.comwrote:


On Mon, May 20, 2013 at 10:59 PM, s m sam.gh1...@gmail.com wrote:


hello everybody

i want to setup a journal partition for my root partition. but i do not
know how to do that. in FreeBSD handbook, it is done in single user mode,
unmount the desired partition and assign the journal partition to it. i
test this procedure and it is done for /usr partition but for root
partition, it can not be unmount in single user mode.



See the man page on gjournal

  To configure journaling on the UFS file system using gjournal, one
should
  first create a gjournal provider using the gjournal utility, then run
  newfs(8) or tunefs(8) on it with the -J flag which instructs UFS to
coop-
  erate with the gjournal provider below.




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org



--
No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: setup journaling for root partition

2013-05-21 Thread s m
you mean that journaling is enabled by default i don't think so. i
think i misunderstanding. may i ask you to explain it more clear?


On Tue, May 21, 2013 at 2:09 PM, Julien Cigar jci...@ulb.ac.be wrote:

 gjournal should not be used anymore as it has been implemented in the file
 system code ...


 On 05/21/2013 11:24, s m wrote:

 thanks Michael

 this is what i've done (based on the FreeBSD handbook): creating a
 partition for journal, go to single user mode, unmount desired partition
 (for example /usr), load gjournal, add journal partition to /usr
 partition.
 this procedure works well for user and other partitions except root
 because
 i can not unmount it.

 should i set up journaling in fixit mode with gpart? how? i try different
 ways but none of them work for me:((



 On Tue, May 21, 2013 at 10:36 AM, Michael Sierchio ku...@tenebras.com
 wrote:

  On Mon, May 20, 2013 at 10:59 PM, s m sam.gh1...@gmail.com wrote:

  hello everybody

 i want to setup a journal partition for my root partition. but i do not
 know how to do that. in FreeBSD handbook, it is done in single user
 mode,
 unmount the desired partition and assign the journal partition to it. i
 test this procedure and it is done for /usr partition but for root
 partition, it can not be unmount in single user mode.


  See the man page on gjournal

   To configure journaling on the UFS file system using gjournal, one
 should
   first create a gjournal provider using the gjournal utility, then
 run
   newfs(8) or tunefs(8) on it with the -J flag which instructs UFS to
 coop-
   erate with the gjournal provider below.



  __**_
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/**mailman/listinfo/freebsd-**questionshttp://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-**
 unsubscr...@freebsd.org freebsd-questions-unsubscr...@freebsd.org



 --
 No trees were killed in the creation of this message.
 However, many electrons were terribly inconvenienced.

 __**_
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/**mailman/listinfo/freebsd-**questionshttp://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-**
 unsubscr...@freebsd.org freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: setup journaling for root partition

2013-05-21 Thread Julien Cigar

On 05/21/2013 12:10, s m wrote:
you mean that journaling is enabled by default i don't think so. i 
think i misunderstanding. may i ask you to explain it more clear?




gjournal is journaling through GEOM. Since Freebsd 9 soft-updates 
journaling has been implemented for UFS. So if you want journaling for 
an UFS FS there is no reason to use gjournal anymore. (check manpages of 
newfs and/or tunefs and the -j and the -J flags)




On Tue, May 21, 2013 at 2:09 PM, Julien Cigar jci...@ulb.ac.be 
mailto:jci...@ulb.ac.be wrote:


gjournal should not be used anymore as it has been implemented in
the file system code ...


On 05/21/2013 11:24, s m wrote:

thanks Michael

this is what i've done (based on the FreeBSD handbook): creating a
partition for journal, go to single user mode, unmount desired
partition
(for example /usr), load gjournal, add journal partition to
/usr partition.
this procedure works well for user and other partitions except
root because
i can not unmount it.

should i set up journaling in fixit mode with gpart? how? i
try different
ways but none of them work for me:((



On Tue, May 21, 2013 at 10:36 AM, Michael Sierchio
ku...@tenebras.com mailto:ku...@tenebras.comwrote:

On Mon, May 20, 2013 at 10:59 PM, s m
sam.gh1...@gmail.com mailto:sam.gh1...@gmail.com wrote:

hello everybody

i want to setup a journal partition for my root
partition. but i do not
know how to do that. in FreeBSD handbook, it is done
in single user mode,
unmount the desired partition and assign the journal
partition to it. i
test this procedure and it is done for /usr partition
but for root
partition, it can not be unmount in single user mode.


See the man page on gjournal

  To configure journaling on the UFS file system using
gjournal, one
should
  first create a gjournal provider using the gjournal
utility, then run
  newfs(8) or tunefs(8) on it with the -J flag which
instructs UFS to
coop-
  erate with the gjournal provider below.



___
freebsd-questions@freebsd.org
mailto:freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
freebsd-questions-unsubscr...@freebsd.org
mailto:freebsd-questions-unsubscr...@freebsd.org



-- 
No trees were killed in the creation of this message.

However, many electrons were terribly inconvenienced.

___
freebsd-questions@freebsd.org
mailto:freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
freebsd-questions-unsubscr...@freebsd.org
mailto:freebsd-questions-unsubscr...@freebsd.org





--
No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: setup journaling for root partition

2013-05-21 Thread saeedeh motlagh
thanks Julien, but i think it's not true. man page for newfs seys that
journaling is done via gjournal and in freebsd handbook it says do
journaling with gjournal for UFS file system.

you mean i should create a partition and just enable journaling for it with
-J flag?

i think my problem is, my gjournal can not act correctly in fixit mode
because i can load it in single user mode and every thing is ok but in
fixit mode, i can not load it and all commands return errors.

please help me to make a journal for my root:(((


On Tue, May 21, 2013 at 3:10 PM, Julien Cigar jci...@ulb.ac.be wrote:

 On 05/21/2013 12:10, s m wrote:

 you mean that journaling is enabled by default i don't think so. i
 think i misunderstanding. may i ask you to explain it more clear?


 gjournal is journaling through GEOM. Since Freebsd 9 soft-updates
 journaling has been implemented for UFS. So if you want journaling for an
 UFS FS there is no reason to use gjournal anymore. (check manpages of newfs
 and/or tunefs and the -j and the -J flags)


 On Tue, May 21, 2013 at 2:09 PM, Julien Cigar jci...@ulb.ac.be mailto:
 jci...@ulb.ac.be wrote:

 gjournal should not be used anymore as it has been implemented in
 the file system code ...


 On 05/21/2013 11:24, s m wrote:

 thanks Michael

 this is what i've done (based on the FreeBSD handbook): creating a
 partition for journal, go to single user mode, unmount desired
 partition
 (for example /usr), load gjournal, add journal partition to
 /usr partition.
 this procedure works well for user and other partitions except
 root because
 i can not unmount it.

 should i set up journaling in fixit mode with gpart? how? i
 try different
 ways but none of them work for me:((



 On Tue, May 21, 2013 at 10:36 AM, Michael Sierchio
 ku...@tenebras.com mailto:ku...@tenebras.com**wrote:


 On Mon, May 20, 2013 at 10:59 PM, s m
 sam.gh1...@gmail.com mailto:sam.gh1...@gmail.com wrote:

 hello everybody

 i want to setup a journal partition for my root
 partition. but i do not
 know how to do that. in FreeBSD handbook, it is done
 in single user mode,
 unmount the desired partition and assign the journal
 partition to it. i
 test this procedure and it is done for /usr partition
 but for root
 partition, it can not be unmount in single user mode.


 See the man page on gjournal

   To configure journaling on the UFS file system using
 gjournal, one
 should
   first create a gjournal provider using the gjournal
 utility, then run
   newfs(8) or tunefs(8) on it with the -J flag which
 instructs UFS to
 coop-
   erate with the gjournal provider below.



 __**_
 freebsd-questions@freebsd.org
 
 mailto:freebsd-questions@**freebsd.orgfreebsd-questions@freebsd.org
 mailing list

 
 http://lists.freebsd.org/**mailman/listinfo/freebsd-**questionshttp://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 
 freebsd-questions-**unsubscr...@freebsd.orgfreebsd-questions-unsubscr...@freebsd.org
 
 mailto:freebsd-questions-**unsubscr...@freebsd.orgfreebsd-questions-unsubscr...@freebsd.org
 




 -- No trees were killed in the creation of this message.
 However, many electrons were terribly inconvenienced.

 __**_
 freebsd-questions@freebsd.org
 mailto:freebsd-questions@**freebsd.orgfreebsd-questions@freebsd.org
 mailing list

 
 http://lists.freebsd.org/**mailman/listinfo/freebsd-**questionshttp://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 
 freebsd-questions-**unsubscr...@freebsd.orgfreebsd-questions-unsubscr...@freebsd.org
 
 mailto:freebsd-questions-**unsubscr...@freebsd.orgfreebsd-questions-unsubscr...@freebsd.org
 




 --
 No trees were killed in the creation of this message.
 However, many electrons were terribly inconvenienced.

 __**_
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/**mailman/listinfo/freebsd-**questionshttp://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-**
 unsubscr...@freebsd.org freebsd-questions-unsubscr...@freebsd.org




-- 
*Sa.M*
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: setup journaling for root partition

2013-05-21 Thread Mark Felder
On Tue, 21 May 2013 06:43:34 -0500, saeedeh motlagh  
saeedeh.motl...@gmail.com wrote:



thanks Julien, but i think it's not true. man page for newfs seys that
journaling is done via gjournal and in freebsd handbook it says do
journaling with gjournal for UFS file system.


No, he's right. It's generally not recommended to use gjournal anymore.  
It's still supported for those that have existing implementations and want  
to be able to update their FreeBSD install without breaking their  
filesystems.


UFS' SUJ (soft updates journaling) is what you should be using.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: setup journaling for root partition

2013-05-21 Thread Arthur Chance

On 05/21/13 12:43, saeedeh motlagh wrote:

thanks Julien, but i think it's not true. man page for newfs seys that
journaling is done via gjournal and in freebsd handbook it says do
journaling with gjournal for UFS file system.

you mean i should create a partition and just enable journaling for it with
-J flag?

i think my problem is, my gjournal can not act correctly in fixit mode
because i can load it in single user mode and every thing is ok but in
fixit mode, i can not load it and all commands return errors.

please help me to make a journal for my root:(((


Look more carefully at the newfs man page. Option -J (upper case) is 
gjournal type journalling, option -j (lower case) is native UFS soft 
update journalling. It's the latter one you want.


This is on RELEASE-9.1 though. What version are you on?

--
In the dungeons of Mordor, Sauron bred Orcs with LOLcats to create a
new race of servants. Called Uruk-Oh-Hai in the Black Speech, they
were cruel and delighted in torturing spelling and grammar.

_Lord of the Rings 2.0, the Web Edition_
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: setup journaling for root partition

2013-05-21 Thread Michael Sierchio
AFAIK Softupdates journaling still breaks snapshot functionality - which
makes it unusable for me. I wouldn't assume that the O.P. doesn't want we
he's asking for.

- M


On Tue, May 21, 2013 at 7:42 AM, Arthur Chance free...@qeng-ho.org wrote:

 On 05/21/13 12:43, saeedeh motlagh wrote:

 thanks Julien, but i think it's not true. man page for newfs seys that
 journaling is done via gjournal and in freebsd handbook it says do
 journaling with gjournal for UFS file system.

 you mean i should create a partition and just enable journaling for it
 with
 -J flag?

 i think my problem is, my gjournal can not act correctly in fixit mode
 because i can load it in single user mode and every thing is ok but in
 fixit mode, i can not load it and all commands return errors.

 please help me to make a journal for my root:(((


 Look more carefully at the newfs man page. Option -J (upper case) is
 gjournal type journalling, option -j (lower case) is native UFS soft update
 journalling. It's the latter one you want.

 This is on RELEASE-9.1 though. What version are you on?

 --
 In the dungeons of Mordor, Sauron bred Orcs with LOLcats to create a
 new race of servants. Called Uruk-Oh-Hai in the Black Speech, they
 were cruel and delighted in torturing spelling and grammar.

 _Lord of the Rings 2.0, the Web Edition_

 __**_
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/**mailman/listinfo/freebsd-**questionshttp://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-**
 unsubscr...@freebsd.org freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: setup journaling for root partition

2013-05-21 Thread Arthur Chance

On 05/21/13 15:46, Michael Sierchio wrote:

AFAIK Softupdates journaling still breaks snapshot functionality - which
makes it unusable for me. I wouldn't assume that the O.P. doesn't want we
he's asking for.


Good point, I'd forgotten that problem as I don't use UFS snapshots. I 
can imagine it would be a killer for some people.


--
In the dungeons of Mordor, Sauron bred Orcs with LOLcats to create a
new race of servants. Called Uruk-Oh-Hai in the Black Speech, they
were cruel and delighted in torturing spelling and grammar.

_Lord of the Rings 2.0, the Web Edition_
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: setup journaling for root partition

2013-05-21 Thread Warren Block

On Tue, 21 May 2013, Arthur Chance wrote:


On 05/21/13 15:46, Michael Sierchio wrote:

AFAIK Softupdates journaling still breaks snapshot functionality - which
makes it unusable for me. I wouldn't assume that the O.P. doesn't want we
he's asking for.


Good point, I'd forgotten that problem as I don't use UFS snapshots. I can 
imagine it would be a killer for some people.


It is, especially if you use dump/restore.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: setup journaling for root partition

2013-05-21 Thread Michael Sierchio
On Tue, May 21, 2013 at 8:20 AM, Warren Block wbl...@wonkity.com wrote:

On Tue, 21 May 2013, Arthur Chance wrote:

  On 05/21/13 15:46, Michael Sierchio wrote:

 AFAIK Softupdates journaling still breaks snapshot functionality - which
 makes it unusable for me. I wouldn't assume that the O.P. doesn't want we
 he's asking for.


 Good point, I'd forgotten that problem as I don't use UFS snapshots. I
 can imagine it would be a killer for some people.


 It is, especially if you use dump/restore.


Or tarsnap (which is what we use for backups here), or... there are many
use cases for snapshots.

- M
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: setup journaling for root partition

2013-05-21 Thread s m
thanks guys for your attentions.

i want to setup journaling in FreeBSD 8.2. i compare soft-update and
journaling and choose journaling (it is more suitable for my goals).

i want to enable journaling for all my partitions. i can do it for all
partitions except root in single user mode. i can not do it for root
because i can not unmount root in single user mode.
please let me know how set a journal provider for my root partition in
FreeBSD 8.2.
thank you so much


On Tue, May 21, 2013 at 9:38 PM, Michael Sierchio ku...@tenebras.comwrote:

 On Tue, May 21, 2013 at 8:20 AM, Warren Block wbl...@wonkity.com wrote:

 On Tue, 21 May 2013, Arthur Chance wrote:
 
   On 05/21/13 15:46, Michael Sierchio wrote:
 
  AFAIK Softupdates journaling still breaks snapshot functionality -
 which
  makes it unusable for me. I wouldn't assume that the O.P. doesn't want
 we
  he's asking for.
 
 
  Good point, I'd forgotten that problem as I don't use UFS snapshots. I
  can imagine it would be a killer for some people.
 
 
  It is, especially if you use dump/restore.
 

 Or tarsnap (which is what we use for backups here), or... there are many
 use cases for snapshots.

 - M
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: setup journaling for root partition

2013-05-21 Thread Michael Sierchio
On Tue, May 21, 2013 at 10:14 PM, s m sam.gh1...@gmail.com wrote:

 thanks guys for your attentions.

 i want to setup journaling in FreeBSD 8.2. i compare soft-update and
 journaling and choose journaling (it is more suitable for my goals).

 i want to enable journaling for all my partitions. i can do it for all
 partitions except root in single user mode. i can not do it for root
 because i can not unmount root in single user mode.


No, but you don't need to.  In single user mode, root is mounted read-only.
 You can run tunefs on the root fs device.

- M
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org