Solved

How do I rename an existing file system?

Posted on 2004-09-27
3
370 Views
Last Modified: 2013-12-27
I am running Solaris 9 with two 20gig mirrored hard drives.  I need to rename an existing file system.  I want to rename export/home to /export.  How can I do this?  I need step by step instructions. See my current partiton table below.

Current partition table (original):
Total disk cylinders available: 39533 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       0 -  8322        4.00GB    (8323/0/0)   8389584
  1       swap    wu    8323 - 10403        1.00GB    (2081/0/0)   2097648
  2     backup    wm       0 - 39532       19.00GB    (39533/0/0) 39849264
  3        usr    wm   10404 - 20562        4.88GB    (10159/0/0) 10240272
  4        var    wm   20563 - 32135        5.56GB    (11573/0/0) 11665584
  5       home    wm   32136 - 39490        3.54GB    (7355/0/0)   7413840
  6 unassigned    wm   39491 - 39532       20.67MB    (42/0/0)       42336
  7 unassigned    wm       0                0         (0/0/0)            0

# df -k  
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/md/dsk/d30      4127894  708533 3378083    18%    /
/dev/md/dsk/d32      5038454 1008509 3979561    21%    /usr
/proc                      0       0       0     0%    /proc
mnttab                     0       0       0     0%    /etc/mnttab
fd                         0       0       0     0%    /dev/fd
/dev/md/dsk/d33      5739845  155301 5527146     3%    /var
swap                 1428456      24 1428432     1%    /var/run
swap                 1428432       0 1428432     0%    /tmp
/dev/md/dsk/d34      3647766  153828 3457461     5%    /export/home
/export/home/<name of dir>  3647766  153828 3457461     5%    /home/<name of dir>


0
Comment
Question by:dee43
3 Comments
 
LVL 40

Assisted Solution

by:jlevie
jlevie earned 250 total points
Comment Utility
Edit /etc/vfstab and change the mount point for /dev/md/dsk/d34 from /export/home to /export. That's best done from a single user boot.
0
 
LVL 38

Accepted Solution

by:
yuzh earned 250 total points
Comment Utility
jlevie is correct.

In single user mountYou need:
umount /export/home
and make sure /export is a empty dir, so that can mount  /dev/md/dsk/d34 on /export


If you have any software installed under /export/home you might need to modify the ENV
setting for using them.  (or you need to modify the scripts for runing the software)
0
 
LVL 3

Expert Comment

by:cagri
Comment Utility
Actually, as other friends explained, you do not "rename" filesystems on Solaris, but rather, mount them under different directories. Normally a filesystem does not have a name, and it can be mounted under any directory of your choice.

Btw, /export/home is the default directory for a number of applications, so I suggest, making and keeping a "home" folder under your newly mounted /export filesystem for just in case.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now