From: hume.spamfilter on
hadi motamedi <motamedi24(a)gmail.com> wrote:
> mounted on /dev/dsk/c0t0d0s0 . Can you please let me know how to
> import new data inside it?

c0t0d0s0 is likely your root slice. So your /opt isn't being mounted at all,
I'd bet.

What happens if you try the command "mount /opt"?

What does "grep opt /etc/vfstab" tell you?

--
Brandon Hume - hume -> BOFH.Ca, http://WWW.BOFH.Ca/
From: hadi motamedi on
> What happens if you try the command "mount /opt"?
> What does "grep opt /etc/vfstab" tell you?
The original /opt resides on /c0t0d0s5 , so I added a line to my /etc/
vfstab to put it on the new imported /c0t2d0s3 . The 'mount /opt'
command will mount it on the /c0t0d0s5 and the output of 'grep opt /
etc/vfstab' is as the following:
/dev/dsk/c0t0d0s5 /dev/rdsk/c0t0d0s5 /opt ufs 2 yes -
/dev/dsk/c0t2d0s3 /dev/rdsk/c0t2d0s3 /opt ufs 2 yes -

From: Ian Collins on
On 07/12/10 03:42 PM, hadi motamedi wrote:

[please stop stripping attributions, it's rude]

>> What happens if you try the command "mount /opt"?
>> What does "grep opt /etc/vfstab" tell you?
> The original /opt resides on /c0t0d0s5 , so I added a line to my /etc/
> vfstab to put it on the new imported /c0t2d0s3 . The 'mount /opt'
> command will mount it on the /c0t0d0s5 and the output of 'grep opt /
> etc/vfstab' is as the following:
> /dev/dsk/c0t0d0s5 /dev/rdsk/c0t0d0s5 /opt ufs 2 yes -
> /dev/dsk/c0t2d0s3 /dev/rdsk/c0t2d0s3 /opt ufs 2 yes -

You can't have two devices on the same mountpoint!

Remove the first line and manually mount /dev/dsk/c0t0d0s5 somewhere
else (say /mnt) and copy the data over.

--
Ian Collins
From: hadi motamedi on
> Remove the first line and manually mount /dev/dsk/c0t0d0s5 somewhere
> else (say /mnt) and copy the data over.
I removed the first line from /etc/vfstab and I tried to manually
mount /dev/dsk/c0t0d0s5 on /mnt but it is returning '/mnt is busy' .
Can you please let me know how can I implement your proposed
procedure ?

From: hume.spamfilter on
hadi motamedi <motamedi24(a)gmail.com> wrote:
> I removed the first line from /etc/vfstab and I tried to manually
> mount /dev/dsk/c0t0d0s5 on /mnt but it is returning '/mnt is busy' .

Are you standing in /mnt when you try to mount that filesystems? What
I mean is, is your current working directory /mnt at the time?

As an example (using ZFS, when you are using UFS, but that doesn't matter):

shumira:/export/home/hume# cd /mnt
shumira:/mnt# mount -F zfs rpool/test /mnt
mount failed: Device busy
shumira:/mnt# cd /
shumira:/# mount -F zfs rpool/test /mnt
shumira:/#

--
Brandon Hume - hume -> BOFH.Ca, http://WWW.BOFH.Ca/