From: doofus on
Good evening folks,

For years now we've used a fairly simple backup script to clone system
partitions to a storedge multipack that is only ever brought online for
this purpose. Occasionally we boot from the mutipack to recover from
some mishap and then clone back in the other direction.


But now, with a couple of new Solaris 10 builds, this bit of script:


foreach SLICE ($LIST)

# NEWFS the current slice

newfs /dev/rdsk/c2t6d0s${SLICE} <<EOF


returns a message along the lines of:

"/dev/dsk/c2t6d0s7 is normally mounted on /export/se06 according to
/etc/vfstab. Please remove this entry to use this device."


Sacrebleu... what have they done now? This is the first time I've ever
sat in front of a unix machine and felt control has been taken away
from me, even with root access - somewhat akin to the way a windows
machine won't let the administrator format a drive with system files on
it. Deciding that microsoft's enabling and disabling of services is
preferable to thirty-odd years of starting and stopping daemons seems
bad enough to me, but I'd concede that's just playing with words. The
above situation though, smacks wholeheartedly of microsoft's default
"you obviously don't know what you're doing but don't worry, we know
what's best for you" attitude.

Does anyone have a solution for this problem, short of having to edit a
file which as far as I'm concerned has nothing to do with the commands
in the script? They haven't even risked giving us an "f" switch in
their new child proof utility.

Sorry about the rant ;O)

From: Zack on

> returns a message along the lines of:
>
> "/dev/dsk/c2t6d0s7 is normally mounted on /export/se06 according to
> /etc/vfstab. Please remove this entry to use this device."

>
> Does anyone have a solution for this problem,

Solution:
"/dev/dsk/c2t6d0s7 is normally mounted on /export/se06 according to
/etc/vfstab. Please remove this entry to use this device."

From: doofus on

Zack wrote:
> > returns a message along the lines of:
> >
> > "/dev/dsk/c2t6d0s7 is normally mounted on /export/se06 according to
> > /etc/vfstab. Please remove this entry to use this device."
>
> >
> > Does anyone have a solution for this problem,
>
> Solution:
> "/dev/dsk/c2t6d0s7 is normally mounted on /export/se06 according to
> /etc/vfstab. Please remove this entry to use this device."


Well snipped. Many thanks for your time, but I can read, honest. Not so
sure about you though:

short of having to edit a file which as far as I'm concerned has
nothing to do with the commands in the script?

From: James Carlson on
"doofus" <tumbleweed(a)fastmail.net> writes:
> > Solution:
> > "/dev/dsk/c2t6d0s7 is normally mounted on /export/se06 according to
> > /etc/vfstab. Please remove this entry to use this device."
>
>
> Well snipped. Many thanks for your time, but I can read, honest. Not so
> sure about you though:
>
> short of having to edit a file which as far as I'm concerned has
> nothing to do with the commands in the script?

Use something like this:

# env NOINUSE_CHECK=1 newfs ...

--
James Carlson, KISS Network <james.d.carlson(a)sun.com>
Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677
From: doofus on

James Carlson wrote:
> "doofus" <tumbleweed(a)fastmail.net> writes:

> Use something like this:
>
> # env NOINUSE_CHECK=1 newfs ...


Excellent.
Thanks James, I'll give it a go.