Subject: Re: drobne postrehy - 2.0rc5 amd64
To: Lubomir Sedlacik <salo@Xtrmntr.org>
From: netbsd <netbsd@eq.cz>
List: regional-cs
Date: 12/06/2004 14:12:28
Lubomir Sedlacik wrote:
> zdravim,
> 
> mate na danom disku zapnutu write cache?
> 
>  # dkctl wd0 getcache
> 
> ak ano, skuste ju vypnut a testy zopakovat.
> 
>  # dkctl wd0 setcache r
>  
> 




Se softdep:

11:57:50 root@tyan:~# dkctl wd0 getcache
/dev/rwd0d: read cache enabled
/dev/rwd0d: write-back cache enabled
/dev/rwd0d: read cache enable is not changeable
/dev/rwd0d: write cache enable is changeable
/dev/rwd0d: cache parameters are not savable
11:58:02 root@tyan:~# dkctl wd0 setcache r
11:58:41 root@tyan:~# dkctl wd0 getcache
/dev/rwd0d: read cache enabled
/dev/rwd0d: read cache enable is not changeable
/dev/rwd0d: write cache enable is changeable
/dev/rwd0d: cache parameters are not savable
11:58:43 root@tyan:~# cd /tmp/
11:59:09 root@tyan:/tmp# mkdir pkgsrc
11:59:12 root@tyan:/tmp# cd pkgsrc/
11:59:13 root@tyan:/tmp/pkgsrc# cp ~/pkgsrc.tar.gz ./
11:59:21 root@tyan:/tmp/pkgsrc# tar -xzf pkgsrc.tar.gz
12:09:03 root@tyan:/tmp/pkgsrc# mount -vvv
/dev/wd0a on / type ffs (soft dependencies, local, root file system, 
writes: sync 966 async 53959)
/dev/wd0e on /var type ffs (soft dependencies, local, writes: sync 136 
async 60)
/dev/wd0f on /usr type ffs (soft dependencies, local, writes: sync 2 
async 27)
kernfs on /kern type kernfs (local, writes: sync 0 async 0)
12:10:51 root@tyan:/tmp/pkgsrc# shutdown -r now

=> v single fsck neopravuje chyby

Bez softdep:

12:22:35 root@tyan:~# dkctl wd0 getcache
/dev/rwd0d: read cache enabled
/dev/rwd0d: write-back cache enabled
/dev/rwd0d: read cache enable is not changeable
/dev/rwd0d: write cache enable is changeable
/dev/rwd0d: cache parameters are not savable
12:22:45 root@tyan:~# dkctl wd0 setcache r
12:22:57 root@tyan:~# dkctl wd0 getcache
/dev/rwd0d: read cache enabled
/dev/rwd0d: read cache enable is not changeable
/dev/rwd0d: write cache enable is changeable
/dev/rwd0d: cache parameters are not savable
12:22:59 root@tyan:~# mkdir /tmp/pkgsrc
12:23:08 root@tyan:~# cd /tmp/pkgsrc/
12:23:09 root@tyan:/tmp/pkgsrc# cp ~/pkgsrc.tar.gz ./
12:23:16 root@tyan:/tmp/pkgsrc# tar -xzf pkgsrc.tar.gz
13:04:49 root@tyan:/tmp/pkgsrc# mount -vvv
/dev/wd0a on / type ffs (local, root file system, writes: sync 402089 
async 5650)
/dev/wd0e on /var type ffs (soft dependencies, local, writes: sync 136 
async 68)
/dev/wd0f on /usr type ffs (soft dependencies, local, writes: sync 2 
async 29)
kernfs on /kern type kernfs (local, writes: sync 0 async 0)
13:09:59 root@tyan:/tmp/pkgsrc# shutdown -r now

=> v single fsck NEopravuje chyby

Zkousel jsem to jen 2x (se stejnym vysledkem), trva to trosku dlouho :-)
Je tedy vadny disk?

r.