From: chuckers on
On Jul 7, 2:57 pm, hadi motamedi <motamed...(a)gmail.com> wrote:
> > mount /dev/dsk/c0t0d0s5 /mnt
> > cd /opt
> > ufsdump 0f /mnt - | ufsrestore -rf -
> > umount /mnt
> > That will copy what was in your old /opt to your new /opt on the new
> > disk.
>
> My old(original) /opt resides on /c0t0d0s5 and it has no data and I
> want to import new data from added /c0t2d0s3 to /opt. Can you please
> let me know how it can be accomplished?

Procedure would be pretty much the same then. Just change what you
are mounting.

mount /dev/dsk/c0t2d0s3 /mnt
cd /opt
ufsdump 0f - /mnt | ufsrestore -rf -
umount /mnt

Please not that I screwed up the arguments for the ufsdump first time
around.
The name of the file system to dump should come after the file to dump
to ('-' i.e.
stdout.) Should have check the man page first.
From: Bruce D Porter on
On Tue, 06 Jul 2010 22:08:51 -0700, hadi motamedi wrote:

>> Maybe /opt is a part of the root filesystem data (/) and didn't really
>> get made into it's own filesystem?? �Just guessing...
> The '/' resides on c0t0d0s0 but the '/opt' resides on /c0t0d0s5 so on
> different slices . Can you please let me know how to add data from the
> imported /opt ?

I'd be interested in why /opt is empty ?

If you want to add a list of packages cleanly you should really get the
package(s) and use pkgadd.

Otherwise future admin actions, like patching, may not turn out very well.


--
Bruce
"The internet is a huge and diverse community and not every one is friendly"
http://www.ytc1.co.uk

From: hume.spamfilter on
hadi motamedi <motamedi24(a)gmail.com> wrote:
> My old(original) /opt resides on /c0t0d0s5 and it has no data and I
> want to import new data from added /c0t2d0s3 to /opt. Can you please
> let me know how it can be accomplished?

Are you mounting your new /opt first, and then mounting the old, empty /opt
on top of it? Did you make sure to remove or comment out the old /opt from
your /etc/vfstab? When you do a 'df -k /opt', what device does it show?

--
Brandon Hume - hume -> BOFH.Ca, http://WWW.BOFH.Ca/
From: Barry on
On Tue, 6 Jul 2010 22:08:51 -0700 (PDT), hadi motamedi
<motamedi24(a)gmail.com> wrote:

>> Maybe /opt is a part of the root filesystem data (/) and didn't really
>> get made into it's own filesystem?? �Just guessing...
>The '/' resides on c0t0d0s0 but the '/opt' resides on /c0t0d0s5 so on
>different slices . Can you please let me know how to add data from the
>imported /opt ?

Can you copy it?

From: hadi motamedi on
> Are you mounting your new /opt first, and then mounting the old, empty /opt
> on top of it?  Did you make sure to remove or comment out the old /opt from
> your /etc/vfstab?  When you do a 'df -k /opt', what device does it show?
Thank you for your reply. I commented out the original /opt from my /
etc/vfstab and then added entry for mounting new slice on it. But
still it does not contain new imported data and the 'df -k' shows it
mounted on /dev/dsk/c0t0d0s0 . Can you please let me know how to
import new data inside it?