Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi
i got this line in /etc/vfstab
/dev/dsk/c1t0d0s10 20557672 9 20352087 5% /export/spare and i want to change /export/spare to /export/home . I have users data on /export/home. I did umount /export/spare n then i changed /export/spare to /export/home and i did mount /export/home but it didnt work as /export/home got data. What is the best solution of changing it ?
I think after changing mount to /export/home in vfstab i tried mount /export/home n it gave me msg that device is busy. It is busy coz i got user data on it.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
It is busy because that user data is currently in use.
Either some of the users are still logged in, or some of their processes are still running.
The normal way is to mount a filesystem or an empty directory, or at least a directory with files that won't suffer from being unreachable after the mount.
Where did the line in /etc/vfstab come from? It looks like a line from "df -k".
standard format for /etc/vfstab fields are:
Code:
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
And I find the person most likely to be the cause of the mount point being active is that I am cd'ed to it myself.
U r right. the main thing is that /dev/dsk/c1t0d0s10 is mounted on /export/spare n i want to change it to /export/home n all is mentioned in post above.
Where did the line in /etc/vfstab come from? It looks like a line from "df -k".
standard format for /etc/vfstab fields are:
Code:
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
And I find the person most likely to be the cause of the mount point being active is that I am cd'ed to it myself.
U r right. the main thing is that /dev/dsk/c1t0d0s10 is mounted on /export/spar n i want to change it to /export/home n all is mentioned in post above.
well i was trying the following plan
i was copying the /export/home to /export/home.backup
then
rm /export/home
change mount point in vfstab from /export/spar to /export/home
n copy data from /export/home.backup to /export/home
then mount /export/home .
But i was failed in step 1 . I was trying to copy /export/home to /export/home.backup with the following command
cp -r /export/home /export/home.backup
but it only copy 4 to 5 files i guess other users have created files with there users and there is permission problem in that. I even tried to copy/paste from GUI but again 4 to 5 files were copied.
The system refuse this mount because it would crash some running programs.
If nothing important is running, go in single user mode (init 1) from the console, and try again that mount.
Right now no user is login n nothing is working there.
You mean i should to single user mode and try all that
cp -r /export/home /export/home.backup
rm /export/home
mount /exprot/home
cp -r /export/home.backup /export/home
there.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.