06-28-2009
I now tried to do the following sequence:
mkdir /export/usr
mv /usr/* /export/usr
/export/usr/bin/ln -s /export/usr usr
rm -rf /usr
/export/usr/bin/mv usr /
Since the ls, mv etc reside in /usr/bin, I had to add a little extra to be able to create the link, remove the old /usr and move the usr-link to /. So far, so good and I was again able to do things without /export/... stuff in front.
However, after rebooting this prevents me from doing anything but going into system maintenance mode. The errors did not make much sense, so I decided to boot it into failsafe since Solaris itself suggested it because there was some diffs in /.
In failsafe, I realized I couldn't really do much (at least, not to my knowledge). In failsafe, I had an empty /usr. I rebooted again and attempted to start in normal mode. It fails and prompting that Console login is not possible and forced me again to enter system maintenance mode.
However, since system maintenance mode is read only, I am wondering - can you enter system maintenance in write mode? The only thing I need to do (as far as I can see) to bring things back in order is to -
1) Delete the usr link in /
2) Create new /usr dir
3) Move all data from /export/usr to /usr.
4) Reboot
Any ideas?
Last edited by brightstorm; 06-28-2009 at 11:54 AM..
Reason: corrected sentence to make more sense
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi there,
When I run top on my machine it says I have 497M swap space in use, and 380M swap space free,
but I have only allocated 512M swap space to the machine!!!!
Does anyone know how swap used is calculated in the top command?
Thanks... (1 Reply)
Discussion started by: chorgan
1 Replies
2. UNIX for Advanced & Expert Users
Now, i know a ufs file system can be increased using mkfs but hwo do I take space from a file system and add it to another file system? at my job here, that seems to be possible because I see request on it almost every day.
what is the exact command to do this and does the system need to be... (1 Reply)
Discussion started by: TRUEST
1 Replies
3. UNIX for Dummies Questions & Answers
Hi All,
Will df+du=Total space allocted for a file system??
Is the above correct. Please correct me If iam wrong.
In one my programs the above is not happening.
Please help me out.
Many thanks.
Regards,
Manas (2 Replies)
Discussion started by: manas6
2 Replies
4. UNIX for Dummies Questions & Answers
Hi,
On one of our solaris servers, the root partition has filled up,(it was poorly sized in the first place), Does anyone have any advice about the best way to add space to a partition. I'm sure I've read how to do this somewhere before but just can't remember...:(
A colleague has suggested... (1 Reply)
Discussion started by: kenny123m
1 Replies
5. Solaris
i am working with solaris 9 and my disk usages are
# df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0t0d0s0 2148263 1902721 202577 91% /
/proc 0 0 0 0% /proc
mnttab 0 0 0 ... (3 Replies)
Discussion started by: smartgupta
3 Replies
6. UNIX for Dummies Questions & Answers
I searched the archives first, but found that there are alot of mixed answers on whether swap space can or can not be increased. Some postings said swap space can be increased using the swap or growfs commands while other postings said you can not increase the permanent size of the swap space.
... (1 Reply)
Discussion started by: Kevin1166
1 Replies
7. Solaris
Hi
I have a mount point that is in production environment, and is currently filled up.
more space has been presented from same original source (EVA).
Problem;
1. Can't see presented space
2. After I discover the presented space, how do I go about adding this new space to existing mount point.... (9 Replies)
Discussion started by: Targ
9 Replies
8. Solaris
How swap is getting 12GB as its size as per the below output:
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d0 7.9G 2.1G 5.7G 27% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 12G 1.2M 12G 1%... (3 Replies)
Discussion started by: ramnagaraj
3 Replies
9. UNIX for Dummies Questions & Answers
Hello,
I need to find the total allocated disk space for the home directory.
How can i find that in unix?(in GB).
Thanks. (4 Replies)
Discussion started by: kailash19
4 Replies
10. Shell Programming and Scripting
Hi ,
I Would like to know the space allocated by adding up all the allocated space to group of filesystems ..
example ,
df -h|grep /db | awk '{ print $4 }' ---> giving me all the used space on the filesystem but need to know the total used space by adding up all the values (3 Replies)
Discussion started by: nsankineni
3 Replies