After a certain rev, I know you can set the "sync" property, and it takes effect immediately, and it''s persistent across reboots. But that doesn''t apply to Solaris 10. My question: Is there any way to make Disabled ZIL a normal mode of operations in solaris 10? Particularly: If I do this "echo zil_disable/W0t1 | mdb -kw" then I have to remount the filesystem. It''s kind of difficult to do this automatically at boot time, and impossible (as far as I know) for rpool. The only solution I see is to write some startup script which applies it to filesystems other than rpool. Which feels kludgy. Is there a better way? Thanks... -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20110805/c6c94cf4/attachment.html>
On 08/05/11 13:11, Edward Ned Harvey wrote:> After a certain rev, I know you can set the "sync" property, and it > takes effect immediately, and it''s persistent across reboots. But that > doesn''t apply to Solaris 10. > > My question: Is there any way to make Disabled ZIL a normal mode of > operations in solaris 10? Particularly: > > If I do this "echo zil_disable/W0t1 | mdb -kw" then I have to remount > the filesystem. It''s kind of difficult to do this automatically at boot > time, and impossible (as far as I know) for rpool. The only solution I > see is to write some startup script which applies it to filesystems > other than rpool. Which feels kludgy. Is there a better way?echo "set zfs:zil_disable = 1" > /etc/system -- Darren J Moffat
On 05 August, 2011 - Darren J Moffat sent me these 0,9K bytes:> On 08/05/11 13:11, Edward Ned Harvey wrote: >> After a certain rev, I know you can set the "sync" property, and it >> takes effect immediately, and it''s persistent across reboots. But that >> doesn''t apply to Solaris 10. >> >> My question: Is there any way to make Disabled ZIL a normal mode of >> operations in solaris 10? Particularly: >> >> If I do this "echo zil_disable/W0t1 | mdb -kw" then I have to remount >> the filesystem. It''s kind of difficult to do this automatically at boot >> time, and impossible (as far as I know) for rpool. The only solution I >> see is to write some startup script which applies it to filesystems >> other than rpool. Which feels kludgy. Is there a better way? > > echo "set zfs:zil_disable = 1" > /etc/systemOr use >> if you don''t want to zap /etc/system.. /Tomas -- Tomas ?gren, stric at acc.umu.se, http://www.acc.umu.se/~stric/ |- Student at Computing Science, University of Ume? `- Sysadmin at {cs,acc}.umu.se
On 5 Aug 11, at 08:14 , Darren J Moffat wrote:> On 08/05/11 13:11, Edward Ned Harvey wrote: >> >> My question: Is there any way to make Disabled ZIL a normal mode of >> operations in solaris 10? Particularly: >> >> If I do this "echo zil_disable/W0t1 | mdb -kw" then I have to remount >> the filesystem. It''s kind of difficult to do this automatically at boot >> time, and impossible (as far as I know) for rpool. The only solution I >> see is to write some startup script which applies it to filesystems >> other than rpool. Which feels kludgy. Is there a better way? > > echo "set zfs:zil_disable = 1" > /etc/systemecho "set zfs:zil_disable = 1" >> /etc/system Mike --- Michael Sullivan mps at axsh.us http://www.axsh.us/ Phone: +1-662-259-8888 Mobile: +1-662-202-7716
On Aug 5, 2011, at 6:14 AM, Darren J Moffat <darrenm at opensolaris.org> wrote:> On 08/05/11 13:11, Edward Ned Harvey wrote: >> After a certain rev, I know you can set the "sync" property, and it >> takes effect immediately, and it''s persistent across reboots. But that >> doesn''t apply to Solaris 10. >> >> My question: Is there any way to make Disabled ZIL a normal mode of >> operations in solaris 10? Particularly: >> >> If I do this "echo zil_disable/W0t1 | mdb -kw" then I have to remount >> the filesystem. It''s kind of difficult to do this automatically at boot >> time, and impossible (as far as I know) for rpool. The only solution I >> see is to write some startup script which applies it to filesystems >> other than rpool. Which feels kludgy. Is there a better way? > > echo "set zfs:zil_disable = 1" > /etc/systemThis is a great way to cure /etc/system viruses :-) -- richard
On 08/05/11 15:09, Richard Elling wrote:> On Aug 5, 2011, at 6:14 AM, Darren J Moffat<darrenm at opensolaris.org> wrote: > >> On 08/05/11 13:11, Edward Ned Harvey wrote: >>> After a certain rev, I know you can set the "sync" property, and it >>> takes effect immediately, and it''s persistent across reboots. But that >>> doesn''t apply to Solaris 10. >>> >>> My question: Is there any way to make Disabled ZIL a normal mode of >>> operations in solaris 10? Particularly: >>> >>> If I do this "echo zil_disable/W0t1 | mdb -kw" then I have to remount >>> the filesystem. It''s kind of difficult to do this automatically at boot >>> time, and impossible (as far as I know) for rpool. The only solution I >>> see is to write some startup script which applies it to filesystems >>> other than rpool. Which feels kludgy. Is there a better way? >> >> echo "set zfs:zil_disable = 1"> /etc/system > > This is a great way to cure /etc/system viruses :-)LOL! Okay, thanks for all the nit picking on the > vs >> I "think" Edward is probably aware of enough UNIX to know what I mean''t. My original response was just going to be: system(4) I shouldn''t have bothered trying to be more helpful! -- Darren J Moffat
> From: Darren J Moffat [mailto:darrenm at opensolaris.org] > Sent: Friday, August 05, 2011 10:14 AM > > >> echo "set zfs:zil_disable = 1"> /etc/system > > > > This is a great way to cure /etc/system viruses :-) > > LOL!:-) Thank you.