Move root filesystem to other slice

Hi,

df -h display:

# df -h
Filesystem size used avail capacity Mounted on
/dev/dsk/c1t0d0s0 9.8G 8.1G 1.7G 84% /
/proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
fd 0K 0K 0K 0% /dev/fd
swap 1.0G 152K 1.0G 1% /var/run
swap 1.1G 24M 1.0G 3% /tmp
/dev/dsk/c1t0d0s3 57G 13G 43G 24% /adv1

I'd like to copy Os on /dev/dsk/c1t0d0s3 this slice has 43G free space but try to
1) mkdir /filesystemcopy
2) mount /dev/dsk/c1t0d0s3 but it complaining that: # mkdir /filesystemtest
# mount /dev/dsk/c1t0d0s3 /filesystemtest
mount: /dev/dsk/c1t0d0s3 is already mounted, /filesystemtest is busy,
or the allowable number of mount points has been exceeded
/avd1 is live database and application.

Could someone help please?

Thanks

please use code tag to make your posts better readable for others and watchout to post in the right subforum. thread moved to "solaris". and choose a better title next time. see our rules about this!

Couple of things...

  1. Copying live / is not a recommend process.
  2. If you have /dev/dsk/c1t0d0s3 mounted as /adv1, you cannot mount it again.

If you simply want a "copy" of the data somewhere, you can try this:

mkdir /adv1/root_disk_archive
ufsdump 0f - / | ( cd /adv1/root_disk_archive; ufsrestore xvf - )

You will not be able to boot from /dev/dsk/c1t0d0s3, but you will have a copy...

If you want a copy of / for redundancy, buy a second disk and mirror it.

Thanks lot!

Can i later put this copy of filesystem somewhere else or on thw tape, if i need to use ir later in case of emmergency, then can i restore it to / (root) to have the same thing back again???

Yes you can