From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 27 Dec 2007 19:12:44 +0100 From: Christian Kellermann To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] ata drive capabilities Message-ID: <20071227181244.GG16180@hermes.my.domain> References: <13426df10712252231u167ae5c2k616534728b97e338@mail.gmail.com> <20071226195247.GE16180@hermes.my.domain> <14ec7b180712261213p68de8b5bp8bc4a07a9f06ec2f@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OzxllxdKGCiKxUZM" Content-Disposition: inline In-Reply-To: <14ec7b180712261213p68de8b5bp8bc4a07a9f06ec2f@mail.gmail.com> User-Agent: Mutt/1.5.16 (2007-06-09) Topicbox-Message-UUID: 22c0a0dc-ead3-11e9-9d60-3106f5b1d025 --OzxllxdKGCiKxUZM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * andrey mirtchovski [071226 21:17]: > > How do you check if your disks are still ok? >=20 > i used to run cmp on the two mirrorred partitions to verify weekly > that devfs hadn't missed anything. i would imagine if one of the disks > went south cmp would fail. Ah Thanks! I have fs(3) configured as follows: cpu% cat /dev/fs/ctl mirror arenas /dev/sdD0/arenas /dev/sdD1/arenas mirror isect /dev/sdD0/isect /dev/sdD1/isect mirror fscfg /dev/sdD0/fscfg /dev/sdD1/fscfg And my disks have been formatted and partitioned beforehand like this: cpu% lc sdD0 arenas ctl data fscfg isect plan9 raw cpu% lc sdD1 arenas ctl data fscfg isect plan9 raw Still if I know run cmp against the arena partition from the running system it says they differ, and ls says the same: cpu% lc -ld sdD* --rw-r----- S 0 bootes bootes 285779527168 Dec 5 03:37 arenas --rw-r----- = S 0 bootes bootes 285777530368 Dec 5 03:37 arenas --rw-r----- S 0 bootes bootes 0 Dec 5 03:37 ctl --rw-r----- S= 0 bootes bootes 0 Dec 5 03:37 ctl --rw-r----- S 0 bootes bootes 300069052416 Dec 5 03:37 data --rw-r----- S = 0 bootes bootes 300069052416 Dec 5 03:37 data --rw-r----- S 0 bootes bootes 512 Dec 5 03:37 fscfg --rw-r----- = S 0 bootes bootes 512 Dec 5 03:37 fscfg --rw-r----- S 0 bootes bootes 14288976384 Dec 5 03:37 isect --rw-r----- S= 0 bootes bootes 14288876544 Dec 5 03:37 isect --rw-r----- S 0 bootes bootes 300068504064 Dec 5 03:37 plan9 --rw-r----- S= 0 bootes bootes 300066407424 Dec 5 03:37 plan9 -lrw------- S 0 bootes bootes 0 Dec 5 03:37 raw -lrw------- S= 0 bootes bootes 0 Dec 5 03:37 raw I cannot see the /dev/fs directory from my server terminal so I wonder if fs is even active? But if it is not I wonder how my venti tells me it is using /def/fs/arenas for storage? I guess that fs(3) is working properly otherwise it would not show the correct configuration on a simple bind. But then why do the disks differ and would it suffice to dd the contents of sdD0 to sdD1 using the live cd? Kind regards, Christian --=20 You may use my gpg key for replies: pub 1024D/47F79788 2005/02/02 Christian Kellermann (C-Keen) --OzxllxdKGCiKxUZM Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (OpenBSD) iD8DBQFHc+scXYob3Uf3l4gRAsl0AJ9nd/Of8BsUC/E7LABKPwbJFgRa9gCgrH91 G7sGrgx+VgjOXWwDA0Ee8cU= =jN/L -----END PGP SIGNATURE----- --OzxllxdKGCiKxUZM--