tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: new shutdown order
On Wed, Apr 29, 2009 at 07:01:37PM -0500, David Young wrote:
> <ftp://cuw.ojctech.com/users/netbsd-202ea70d/new-shutdown-order.patch0>
> is a patch derived from my work in progress. Note that I have omitted
> the traditional doshutdownhooks() call from cpu_reboot(). Also, I have
> re-ordered dumps and other operations. I have not started assigning
> generation numbers to the new struct mount member, mnt_gen, yet.
In this transcript, I have stacked vnd0 on /tmp, /mnt on vnd0, vnd1 on
/mnt, and /mnt on vnd1. NetBSD seems to be able to tear it all down
gracefully.
Dave
--
David Young OJC Technologies
dyoung%ojctech.com@localhost Urbana, IL * (217) 278-3933
cuw# dd if=/dev/zero of=/tmp/xyz count=1024
1024+0 records in
1024+0 records out
524288 bytes transferred in 0.197 secs (2661360 bytes/sec)
cuw# vnconfig vnd0 /tmp/xyz
cuw# newfs /dev/rvnd0a
/dev/rvnd0a: 0.5MB (1024 sectors) block size 4096, fragment size 512
using 4 cylinder groups of 0.12MB, 32 blks, 64 inodes.
super-block backups (for fsck_ffs -b #) at:
32,
288,
544,
800,
cuw# mount /dev/vnd0a /mnt
cuw#
cuw#
cuw# dd if=/dev/zero of=/tmp/xyz count=1024
512+0 records in
512+0 records out
262144 bytes transferred in 0.300 secs (873813 bytes/sec)
cuw# vnconfig vnd0 /mnt/xyz
vnconfig: /dev/rvnd0d: VNDIOCSET: Device busy
cuw# vnconfig vnd1 /mnt/xyz
cuw# newfs /dev/rvnd1a
/dev/rvnd1a: 0.2MB (512 sectors) block size 4096, fragment size 512
using 3 cylinder groups of 0.09MB, 22 blks, 32 inodes.
super-block backups (for fsck_ffs -b #) at:
32,
208,
384,
cuw# mount /dev/vnd1a /mnt
cuw# cd /mnt
cuw# df -h
Filesystem Size Used Avail %Cap Mounted on
/dev/wd0a 29M 25M 2.7M 90% /
tmpfs 1.5M 384K 1.1M 25% /dev
tmpfs 8.0M 2.8M 5.2M 34% /mfs
/etc 29M 25M 2.7M 90% /permanent/etc
/home 29M 25M 2.7M 90% /permanent/home
/root 29M 25M 2.7M 90% /permanent/root
/tmp 29M 25M 2.7M 90% /permanent/tmp
/var 29M 25M 2.7M 90% /permanent/var
/mfs/etc 8.0M 2.8M 5.2M 34% /etc
/mfs/home 8.0M 2.8M 5.2M 34% /home
/mfs/root 8.0M 2.8M 5.2M 34% /root
/mfs/tmp 8.0M 2.8M 5.2M 34% /tmp
/mfs/var 8.0M 2.8M 5.2M 34% /var
/dev/vnd0a 416K 512B 395K 0% /mnt
/dev/vnd1a 192K 512B 182K 0% /mnt
cuw# shutdown -r now
Shutdown NOW!
shutdown: [pid 1133]
wall: You have write permission turned off; no reply possible
*** FINAL System shutdown message from root@cuw ***
System going down IMMEDIATELY
cuw#
System shutdown time has arrived
About to run shutdown hooks...
rcorder: Circular dependency on provision `root' in file `/etc/rc.d/lvm'.
rcorder: requirement `ypbind' in file `/etc/rc.d/mountall' has no providers.
rcorder: requirement `named' in file `/etc/rc.d/mountall' has no providers.
Stopping cron.
Stopping inetd.
Removing block-type swap devices
Tue Apr 21 20:43:07 CDT 2009
Done running shutdown hooks.
cuw# syncing disks... done
unmounting 0xc6a71000 /mnt (/dev/vnd1a)...unmount of /mnt failed with error 16
unmounting 0xc6a70000 /mnt (/dev/vnd0a)...unmount of /mnt failed with error 16
unmounting 0xc6913000 /var (/mfs/var)...
unmounting 0xc690e000 /tmp (/mfs/tmp)...unmount of /tmp failed with error 16
unmounting 0xc6908000 /root (/mfs/root)...
unmounting 0xc68e5000 /home (/mfs/home)...
unmounting 0xc6889000 /etc (/mfs/etc)...
unmounting 0xc6884000 /permanent/var (/var)...
unmounting 0xc687f000 /permanent/tmp (/tmp)...
unmounting 0xc687a000 /permanent/root (/root)...
unmounting 0xc6875000 /permanent/home (/home)...
unmounting 0xc6870000 /permanent/etc (/etc)...
unmounting 0xc673c200 /mfs (tmpfs)...unmount of /mfs failed with error 16
unmounting 0xc66f4000 /dev (tmpfs)...unmount of /dev failed with error 16
unmounting 0xc666a400 / (/dev/wd0a)...unmount of / failed with error 16
done
WARNING: some file systems would not unmount
unmounting 0xc6a71000 /mnt (/dev/vnd1a)...unmount of /mnt failed with error 16
unmounting 0xc6a70000 /mnt (/dev/vnd0a)...unmount of /mnt failed with error 16
unmounting 0xc690e000 /tmp (/mfs/tmp)...unmount of /tmp failed with error 16
unmounting 0xc673c200 /mfs (tmpfs)...unmount of /mfs failed with error 16
unmounting 0xc66f4000 /dev (tmpfs)...unmount of /dev failed with error 16
unmounting 0xc666a400 / (/dev/wd0a)...unmount of / failed with error 16
done
WARNING: some file systems would not unmount
pcmcia1: detached
cardbus1: detached
pcmcia0: detached
cardbus0: detached
wd0: detached
cardslot1: detached
cardslot0: detached
nsphyter1: detached
nsphyter0: detached
atabus0: detached
sip1: detached
sip0: detached
cbb1: detached
cbb0: detached
npx0: detached
wdc0: detached
com1: detached
gpio0: detached
elanpex0: detached
elanpar0: detached
unmounting 0xc6a71000 /mnt (/dev/vnd1a)...unmount of /mnt failed with error 16
unmounting 0xc6a70000 /mnt (/dev/vnd0a)...unmount of /mnt failed with error 16
unmounting 0xc690e000 /tmp (/mfs/tmp)...unmount of /tmp failed with error 16
unmounting 0xc673c200 /mfs (tmpfs)...unmount of /mfs failed with error 16
unmounting 0xc66f4000 /dev (tmpfs)...unmount of /dev failed with error 16
unmounting 0xc666a400 / (/dev/wd0a)...unmount of / failed with error 16
done
WARNING: some file systems would not unmount
forcefully unmounting /mnt (/dev/vnd1a)...
unmounting 0xc6a70000 /mnt (/dev/vnd0a)...unmount of /mnt failed with error 16
unmounting 0xc690e000 /tmp (/mfs/tmp)...unmount of /tmp failed with error 16
unmounting 0xc673c200 /mfs (tmpfs)...unmount of /mfs failed with error 16
unmounting 0xc66f4000 /dev (tmpfs)...unmount of /dev failed with error 16
unmounting 0xc666a400 / (/dev/wd0a)...unmount of / failed with error 16
done
WARNING: some file systems would not unmount
vnd1: detached
unmounting 0xc6a70000 /mnt (/dev/vnd0a)...
unmounting 0xc690e000 /tmp (/mfs/tmp)...unmount of /tmp failed with error 16
unmounting 0xc673c200 /mfs (tmpfs)...unmount of /mfs failed with error 16
unmounting 0xc66f4000 /dev (tmpfs)...
unmounting 0xc666a400 / (/dev/wd0a)...unmount of / failed with error 16
done
WARNING: some file systems would not unmount
unmounting 0xc690e000 /tmp (/mfs/tmp)...unmount of /tmp failed with error 16
unmounting 0xc673c200 /mfs (tmpfs)...unmount of /mfs failed with error 16
unmounting 0xc666a400 / (/dev/wd0a)...unmount of / failed with error 16
done
WARNING: some file systems would not unmount
vnd0: detached
unmounting 0xc690e000 /tmp (/mfs/tmp)...
unmounting 0xc673c200 /mfs (tmpfs)...
unmounting 0xc666a400 / (/dev/wd0a)...unmount of / failed with error 16
done
WARNING: some file systems would not unmount
unmounting 0xc666a400 / (/dev/wd0a)...unmount of / failed with error 16
done
WARNING: some file systems would not unmount
forcefully unmounting / (/dev/wd0a)... done
rebooting...
POST: 012345689bcefghipsajklnopqr,,,tvwxy
Home |
Main Index |
Thread Index |
Old Index