Move root filesystem to other slice


 
Thread Tools Search this Thread
Operating Systems Solaris Move root filesystem to other slice
# 1  
Old 01-15-2009
Move root filesystem to other slice

Hi,

df -h display:
Code:
# 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

Last edited by lamoul; 01-15-2009 at 01:32 PM.. Reason: How to copy filesystem on another slice on Solaris 5.9
# 2  
Old 01-15-2009
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!

Last edited by DukeNuke2; 01-15-2009 at 03:47 PM..
# 3  
Old 01-15-2009
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:
Code:
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.
# 4  
Old 01-15-2009
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???
# 5  
Old 01-16-2009
Yes you can
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Linux

root filesystem goes readonly

I see this when tried to create a dir using root fstab entries are pretty normal tried to remount with rw but it is still the same block device /dev/sda2 is write-protected ---------- Post updated at 04:57 PM ---------- Previous update was at 03:51 PM ---------- fstab entry ... (4 Replies)
Discussion started by: robo
4 Replies

2. UNIX for Dummies Questions & Answers

Solaris 2.6 - Duplicate Filesystem to a larger slice(same drive)

One of our production systems has a slice called "oldslice" that periodically runs low on space during normal operation. We have minimum requirements for online data retention, and whoever sized this slice didn't give it much wiggle room, so it periodically runs low on space. I'm getting tired of... (1 Reply)
Discussion started by: the.gooch
1 Replies

3. Solaris

Resizing the Root Filesystem

Is it possible to increase the root filesystem size without reboot ?? (4 Replies)
Discussion started by: gowthamakanthan
4 Replies

4. UNIX for Dummies Questions & Answers

Root filesystem filling up!

Hi all. New to the forum and new to Unix admin... / filesystem filled up and I can't find where the large files are. Any help will be apppreciated: # df -k Filesystem kbytes used avail capacity Mounted on /dev/dsk/c1t0d0s0 8063580 7941745 41200 100% / /proc ... (4 Replies)
Discussion started by: jamie_collins
4 Replies

5. Solaris

Root Filesystem

Hi, Can we install root file system on other than 0th slice???? (5 Replies)
Discussion started by: tirupathiraju_t
5 Replies

6. Solaris

Ways to analyse root disk slice

Hi, Recently I faced with need of analyze root disk. I figured out two possible ways to do it: 1. Practical. Boot from CD and run format 2. Theoretical. Create live upgrade boot environment on another disk, activate it, reboot, unmont all root disk partitions and run format. I've already... (3 Replies)
Discussion started by: Sapfeer
3 Replies

7. UNIX for Dummies Questions & Answers

Move veritas filesystem space between Logical volumes

I have a veritas file system (fsA) that is nearing capacity. We have secondary file system (fsB). that is unused and would like to move some of it's disk space but I'm unsure as to how to do this with. /dev/vx/dsk/vg05/lvol05 25288704 21887258 3188911 88% ... (2 Replies)
Discussion started by: Steelysteel
2 Replies

8. Solaris

mirroring the boot slice (slice 8) on x86

Hi there I am about to mirror a Solaris 10 x86 box (SunFire X4100) onto a secondary disk using svm (current system is one disk). My question is this, on X86 boxes there is a slice 8 defined as boot partition (and also a slice 9, dunno what its used for tho). Do I need to mirror this boot slice... (0 Replies)
Discussion started by: hcclnoodles
0 Replies

9. UNIX for Advanced & Expert Users

Mounted Root Filesystem

In my Solaris 10 based server, I have noticed the following mounts when a use DF -K /dev/dsk/c0t0d0s0 5062414 3213876 1797914 65% / / 5062414 3213876 1797914 65% /net/se420 I understand the first mount because it appears in my vfstab file and is the mount of root that I would expect.... (1 Reply)
Discussion started by: jimthompson
1 Replies
Login or Register to Ask a Question