Re: [OpenIndiana-discuss] auto-scrub and its result

2012-12-31 Thread Edward Ned Harvey (openindiana)
From: Richard L. Hamilton [mailto:rlha...@smart.net] I seem to recall that only one scrub could be running at a time, even against different zpools. So the cron that does them all might never actually do more than the first. Your system should not be scrubbing most of the time. If you are

Re: [OpenIndiana-discuss] auto-scrub and its result

2012-12-30 Thread Richard L. Hamilton
On Dec 29, 2012, at 6:57 PM, Bob Friesenhahn wrote: On Sat, 29 Dec 2012, Jim Klimov wrote: Well, apparently Bob does use the copypasted line and it works for him ;) Yes, and it should. There is no need to add more complexity than is warranted. Even if the scrub takes a very long time

Re: [OpenIndiana-discuss] auto-scrub and its result

2012-12-30 Thread Jim Klimov
On 2012-12-30 16:39, Richard L. Hamilton wrote: I seem to recall that only one scrub could be running at a time, even against different zpools. So the cron that does them all might never actually do more than the first. Might have been the case for SVM volumes with components sharing the

Re: [OpenIndiana-discuss] auto-scrub and its result

2012-12-29 Thread Brogyányi József
Jim Thanks for your script.I'm going to try.So I if I understand well the next commands are perfect: shutdown -y -i5 -g0***for power off shutdown -y -i6 -g0***for reboot. The commands are good?Are they working on oi? Brogyi 2012.12.28. 22:47 keltezéssel, Jim Klimov írta: On 2012-12-28 21:45,

Re: [OpenIndiana-discuss] auto-scrub and its result

2012-12-29 Thread Jim Klimov
On 2012-12-29 10:10, Brogyányi József wrote: Jim Thanks for your script.I'm going to try.So I if I understand well the next commands are perfect: shutdown -y -i5 -g0***for power off shutdown -y -i6 -g0***for reboot. The commands are good?Are they working on oi? Brogyi Yes, now that I was

Re: [OpenIndiana-discuss] auto-scrub and its result

2012-12-29 Thread Edward Ned Harvey (openindiana)
From: Jim Klimov [mailto:jimkli...@cos.ru] Note however that halt, poweroff and reboot commands are binaries (and hardlinks of one program), and they can be ungraceful and fast. Up till now, whenever I want to completely reboot (with bios and bootloader, not just fastreboot which reloads

Re: [OpenIndiana-discuss] auto-scrub and its result

2012-12-29 Thread Edward Ned Harvey (openindiana)
From: Bob Friesenhahn [mailto:bfrie...@simple.dallas.tx.us] 20 3 * * 1 /usr/sbin/zpool scrub rpool I'm not 100% sure if this will work directly inside a cron job; you might have to stick it inside of a bash shell script, and then have cron call the shell script. (This is what I do). for

Re: [OpenIndiana-discuss] auto-scrub and its result

2012-12-29 Thread Jim Klimov
On 2012-12-29 14:38, Edward Ned Harvey (openindiana) wrote: From: Jim Klimov [mailto:jimkli...@cos.ru] Note however that halt, poweroff and reboot commands are binaries (and hardlinks of one program), and they can be ungraceful and fast. Up till now, whenever I want to completely reboot (with

Re: [OpenIndiana-discuss] auto-scrub and its result

2012-12-29 Thread Jim Klimov
On 2012-12-29 14:42, Edward Ned Harvey (openindiana) wrote: From: Bob Friesenhahn [mailto:bfrie...@simple.dallas.tx.us] 20 3 * * 1 /usr/sbin/zpool scrub rpool I'm not 100% sure if this will work directly inside a cron job; you might have to stick it inside of a bash shell script, and then

Re: [OpenIndiana-discuss] auto-scrub and its result

2012-12-29 Thread Bob Friesenhahn
On Sat, 29 Dec 2012, Jim Klimov wrote: Note however that halt, poweroff and reboot commands are binaries (and hardlinks of one program), and they can be ungraceful and fast. Even 'halt' normally does a sync so it should not corrupt the filesystem or lose data the applications have already

Re: [OpenIndiana-discuss] auto-scrub and its result

2012-12-29 Thread Bob Friesenhahn
On Sat, 29 Dec 2012, Jim Klimov wrote: Well, apparently Bob does use the copypasted line and it works for him ;) Yes, and it should. There is no need to add more complexity than is warranted. Even if the scrub takes a very long time and scrub is requested again while scrub is still

[OpenIndiana-discuss] auto-scrub and its result

2012-12-28 Thread Brogyányi József
Hi Yesterday I've issued the scrub command by manual. The results are the next: scrub repaired 2.50K in 0h9m with 0 errors this was on the rpool ssd and ( The SSD is a brand new Samsung equipment) scrub repaired 9K in 2h12m with 0 errors this was on the disks. My question is it good result or I

Re: [OpenIndiana-discuss] auto-scrub and its result

2012-12-28 Thread Bob Friesenhahn
On Fri, 28 Dec 2012, Brogyányi József wrote: Hi Yesterday I've issued the scrub command by manual. The results are the next: scrub repaired 2.50K in 0h9m with 0 errors this was on the rpool ssd and ( The SSD is a brand new Samsung equipment) scrub repaired 9K in 2h12m with 0 errors this was

Re: [OpenIndiana-discuss] auto-scrub and its result

2012-12-28 Thread Brogyányi József
Hi Bob Thanks your answer. I'd like to know what does it mean clean shut down? I think there is a way what is the perfect. Could you write down that command?This before I used Ubuntu. Brogyi I like your crontab command. :) 2012.12.28. 20:32 keltezéssel, Bob Friesenhahn írta: On Fri, 28 Dec

Re: [OpenIndiana-discuss] auto-scrub and its result

2012-12-28 Thread Jim Klimov
On 2012-12-28 21:45, Brogyányi József wrote: Hi Bob Thanks your answer. I'd like to know what does it mean clean shut down? I think there is a way what is the perfect. Could you write down that command?This before I used Ubuntu. There are a few. The most proper one is init 5 which brings down

Re: [OpenIndiana-discuss] auto-scrub and its result

2012-12-28 Thread Michael Stapleton
Hello, One little correction, Shutdown is fine because it is a shell script that calls init. Mike On Fri, 2012-12-28 at 22:47 +0100, Jim Klimov wrote: On 2012-12-28 21:45, Brogyányi József wrote: Hi Bob Thanks your answer. I'd like to know what does it mean clean shut down? I think