Increasing allocated space to a mount - possible?


 
Thread Tools Search this Thread
Operating Systems Solaris Increasing allocated space to a mount - possible?
# 15  
Old 06-28-2009
Actually I just thought the same thing, I fixed it with /etc/mount instead, but the result should be the same Smilie I hit a few others bumps on the road.

I have mounted / with write and deleted the pesky usr-link, created /usr and moved /export/usr/* -> /usr.

It is still a bit wobbly, though. After a reboot, it says that it cannot find /usr/sbin/fsck.

Full message (muuuch shorter than before the "fix"):

WARNING - /usr/sbin/fsck not found. Most likely the mount of /usr failed or the /usr filesystem is badly damaged.

Jun 28 18:23:29 svc.startd[7]: svc:/system/filesystem/usr:default: Method "/libsvc/method/fs-usr" failed with exit status 95.
Jun 28 18:23:29 svc.startd[7]: system/filesystem/usr:default failed fatally: transitioned to maintenance (see 'svcs -xv' for details)
Requesting System Maintenance Mode
(See /lib/svc/share/README for more information.)
Console login service(s) cannot run

Now, when I log in, it's clear that there is no such thing as /usr/sbin. I suppose this is less-than-good Smilie

However, there are:

-bash-3.00# find / -name sbin
/usr/xpg6/platform/i86pc/sbin
/usr/xpg6/sbin
/usr/xpg6/sfw/sbin
/sbin

Speculation: Could I boot into failsafe and create a /usr/sbin and copy /usr/xpg6/sbin to /usr/sbin? I tried from System Maintenance to create /usr/sbin and then a cp /sbin/* /usr/sbin which failed with:

cp: bpgetfile and /usr/sbin//bpgetfile are identical
cp: cannot access in.mpathd

Addition:
I found that bpgetfile is a link to /usr/sbin/pgetfile and in.mpathd is another link to /usr/lib/iet/in.mpathd. These *could* be discarded at first and investigated later?
# 16  
Old 06-28-2009
Hmm. Why is /usr/sbin missing? It should be there (obviously! I was there before you moved stuff to /export/usr)

Can you send the output of:

Code:
ls -l /
ls -l /export/usr
ls -l /usr

(I'm in the process of fixing mine again, and it looks good.. no errors. This is after breaking it like yours the first time).
# 17  
Old 06-28-2009
I got a little further. Now, it complains that it cannot mount /dev/fd. I copied all files from /sbin -> /usr/sbin with the exception of the two links which were fairly broken.

Here's some ls-mayhem (I have not written owner, group and mods since i'm doing it manually this time):

-bash-3.00# ls -l /
Desktop
Documents
bin -> ./usr/bin
boot
core
dev
devices
etc
export
home
kernel
lib
lost+found
mnt
net
opt
platform
proc
rmdisk
sbin
system
tmp
u03
usr
var
vol

-bash-3.00# ls -l /export/usr
total 0

-bash-3.00# ls -l /usr
bin
sbin (I created the directory and copied /sbin/* -> /usr/sbin)
xpg6
# 18  
Old 06-28-2009
Well, it seems that /usr is missing a lot for stuff.

I'm sure it must be somewhere! It might be that you've copied it somewhere and then overmounted it when you rebooted.

Can you send the output of
Code:
mount
df
find / -name sbin -type f

# 19  
Old 06-28-2009
Yeah, it could look like it's still missing something here and there.
Here is the result of our little detective work:


mount:
/ on /dev/dsk/c0d1s0 read/write/setuid/devices/intr/largefiles/logging/xattr/onerror=panic/dev=1980000 on Sun Jun 28 18:45:26 2009
/devices on /devices read/write/setuid/devices/dev=4700000 on Sun Jun 28 18:45:26 2009
/system/contract on ctfs read/write/setuid/devices/dev=4740001 on Sun Jun 28 18:45:12 2009
/proc on proc read/write/setuid/devices/dev=4780000 on Sun Jun 28 18:45:12 2009
/etc/mnttab on mnttab read/write/setuid/devices/dev=47c0001 on Sun Jun 28 18:45:12 2009
/etc/svc/volatile on swap read/write/setuid/devices/xattr/dev=4800001 on Sun Jun 28 18:45:12 2009
/system/object on objfs read/write/setuid/devices/dev=4840001 on Sun Jun 28 18:45:12 2009
/etc/dfs/sharetab on sharefs read/write/setuid/devices/dev=4880001 on Sun Jun 28 18:45:12 2009

df:
/ (dev/dsk/c0d1s0): 1568400 blocks 419959 files
/devices (/devices): 0 blocks 0 files
/system/contract (ctfs): 0 blocks 2147493641 files
/proc (proc): 0 blocks 8082 files
/etc/mnttab (mnttab): 0 blocks 0 files
/etc/svc/volatile (swap): 1558680 blocks 150685 files
/system/object (objfs): 0 blocks 2147483509 files
/etc/dfs/sharetab (sharefs) 0 blocks 2147483646 files

find / -name sbin -type f
(no results)
# 20  
Old 06-28-2009
my brain said "-type -d" and my fingers said "-type -f"

This is one for the scrap book! Six hours ago, I was happily bored Smilie I owe you some bits.

Can I ask you to run "find / -name sbin -type d" - can you first run mountall again, as /export/home is missing.

I'm struggling to know where everything from /usr went.
# 21  
Old 06-28-2009
Haha, sure thing, no problem - we're doing great - at least it's a good opportunity for learning Smilie

Mountall has taken a turn for the worse and is not able to mount /dev/rdsk/c0d1s7: (which should be /export/home)

-bash-3.00# mountall
mount: Operation not applicable to FSType tmpfs

-bash-3.00# find / -name sbin -type d
/usr/xpg6/platform/i86pc/sbin
/usr/xpg6/sbin
/usr/xpg6/sfw/sbin
/usr/sbin
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell script to sum up the space allocated to filesystems

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

2. UNIX for Dummies Questions & Answers

How to find the disk space allocated.

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

3. Solaris

How much portion of RAM is allocated to Swap space?

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

4. Solaris

Increasing disk space of a mount point.

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

5. UNIX for Dummies Questions & Answers

Increasing swap space

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

6. Solaris

Can be changeed the allocated space

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

7. UNIX for Dummies Questions & Answers

Best ways of increasing space on a partition

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

8. UNIX for Dummies Questions & Answers

df+du=Total space allocated(for a file system)

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

9. UNIX for Advanced & Expert Users

Increasing filesystem space

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

10. UNIX for Dummies Questions & Answers

Swap space used greater than allocated using top

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
Login or Register to Ask a Question