由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - Question: How to make room for /?
相关主题
不好意思,问个问题disk full, how do i handle this?
Dumb Questions on Solaris 2.7 Installation有人在Win98上,装过Solaris8吗?帮帮忙,谢谢!!!!
救命!! 问题比较难!Does Solaris8.0 support 40GB hard disk?
The sender info of mail commandHow to resize partitions on Solaris 9??
Re: [转载] How to install Solaris 7 Over NT?solaris恢复硬盘分区表?
solaris 7 on pcquestion: how to find which dir is on which parti
kde的问题a strange partition comes up
mount FAT32 partition on solaris 8change read-only system to read/write? online waiting
相关话题的讨论汇总
话题: usr话题: partition话题: home1话题: what话题: room
进入Unix版参与讨论
1 (共1页)
L***e
发帖数: 42
1
How to make room for /?
One old system has Solaris 7.
and /usr, /var, /opt are all on partition of /.
Now it's almost full (100% usage) and only 12M left on /
partition.
What could be done to make room for this partition?
What kind of files can be moved around without lost of
function?
We have much room on other partitions, like /home, /home1.
Is there any tool like partition magic on PC for Unix? With
PM I can move free space around and it works pretty cool.
Thanks.
c*******u
发帖数: 1269
2
su
..
mkfile -v 100m swap.dat
swap -a DIR/swap.dat.
I remeber I once did that, but I think repartition is best way to go

【在 L***e 的大作中提到】
: How to make room for /?
: One old system has Solaris 7.
: and /usr, /var, /opt are all on partition of /.
: Now it's almost full (100% usage) and only 12M left on /
: partition.
: What could be done to make room for this partition?
: What kind of files can be moved around without lost of
: function?
: We have much room on other partitions, like /home, /home1.
: Is there any tool like partition magic on PC for Unix? With

m*****e
发帖数: 4193
3
A simple solution is to move directories to other partitions, and make symlinks
to point to the new location. Better not move /usr/bin or /usr/lib. man pages
or things like that are a good candidate.

【在 L***e 的大作中提到】
: How to make room for /?
: One old system has Solaris 7.
: and /usr, /var, /opt are all on partition of /.
: Now it's almost full (100% usage) and only 12M left on /
: partition.
: What could be done to make room for this partition?
: What kind of files can be moved around without lost of
: function?
: We have much room on other partitions, like /home, /home1.
: Is there any tool like partition magic on PC for Unix? With

s***t
发帖数: 195
4

why? you can move any directory /foo/bar to a new partition and make the
mount point of that partition be /foo/bar and you are done.

【在 m*****e 的大作中提到】
: A simple solution is to move directories to other partitions, and make symlinks
: to point to the new location. Better not move /usr/bin or /usr/lib. man pages
: or things like that are a good candidate.

c*****t
发帖数: 1879
5
For system files/directories, better not move them around since if you
do, you may not get the system boot up because at the boot time, only /
is mounted. Also, many /usr/bin/, /sbin/ maybe hard linked to other
directories; moving them don't save any space..

【在 s***t 的大作中提到】
:
: why? you can move any directory /foo/bar to a new partition and make the
: mount point of that partition be /foo/bar and you are done.

s***t
发帖数: 195
6
don't understand. anything needed for booting the os is in /boot.
of course you don't want to move it arround and it's very small.
but for /usr/, sure you can move it to another partition and don't
affect anything, and /usr/ usually has several hundred megabytes to
a couple of gigabytes. unix doesn't use partition, instead, it uses
directory to locate the files.

【在 c*****t 的大作中提到】
: For system files/directories, better not move them around since if you
: do, you may not get the system boot up because at the boot time, only /
: is mounted. Also, many /usr/bin/, /sbin/ maybe hard linked to other
: directories; moving them don't save any space..

m*****e
发帖数: 4193
7
Having spare space on a partition doesn't necessarily mean the whole partition
can be used.
Also you'd better keep critical stuff on / only, in case of emergency.
Otherwise what if that partition fails but fsck is on it? It's always
bad to add an extra point of failure.

【在 s***t 的大作中提到】
: don't understand. anything needed for booting the os is in /boot.
: of course you don't want to move it arround and it's very small.
: but for /usr/, sure you can move it to another partition and don't
: affect anything, and /usr/ usually has several hundred megabytes to
: a couple of gigabytes. unix doesn't use partition, instead, it uses
: directory to locate the files.

s***t
发帖数: 195
8

good point.
but why / is safer than any other paticular partition? also, one should
always have a rescue disc in case of emergency.

【在 m*****e 的大作中提到】
: Having spare space on a partition doesn't necessarily mean the whole partition
: can be used.
: Also you'd better keep critical stuff on / only, in case of emergency.
: Otherwise what if that partition fails but fsck is on it? It's always
: bad to add an extra point of failure.

m*****e
发帖数: 4193
9

There is no /boot for unix.
On Solaris /bin is a symlink to /usr/bin, so it really matters. If you
have a separate /bin, like in Linux, I totally agree that you can mount
another partition on /usr and it really doesn't affect anything. But
here just be careful..
Uh, some programs are in /sbin, such as mount, but fsck is in /usr/sbin,
and /usr/lib is needed for all programs. Anyway, the whole point is, /
should have everything you need to boot/fix a system to a healthy state.
I have no idea w

【在 s***t 的大作中提到】
: don't understand. anything needed for booting the os is in /boot.
: of course you don't want to move it arround and it's very small.
: but for /usr/, sure you can move it to another partition and don't
: affect anything, and /usr/ usually has several hundred megabytes to
: a couple of gigabytes. unix doesn't use partition, instead, it uses
: directory to locate the files.

m*****e
发帖数: 4193
10

/ is not safer than any other partition. The point is, if / fails, everything
else fails even if you have a good /usr. If / is good, but /usr fails, you
should be able to fix it. But if the bins are all on /usr, you fail too.
You are right that rescue disc helps, although it's not so convenient to use.
Seriously, in this case, the best way is to move all /usr/local stuff out to
other partitions. It's usually where the custom packages are installed,
and moving them out shouldn't affect anyth

【在 s***t 的大作中提到】
:
: good point.
: but why / is safer than any other paticular partition? also, one should
: always have a rescue disc in case of emergency.

相关主题
solaris 7 on pcdisk full, how do i handle this?
kde的问题有人在Win98上,装过Solaris8吗?帮帮忙,谢谢!!!!
mount FAT32 partition on solaris 8Does Solaris8.0 support 40GB hard disk?
进入Unix版参与讨论
L***e
发帖数: 42
11
Can anyone explain in steps how to move /usr/local to
another partition?
like /dev/dsk/c0t0d0s7 (/hom1)?
What should I do to move a file?
I figure should be:
mv -f /usr/local /home1
link -s /home1/usr/local /usr/local
This would make /usr/local be the subdirectory of /home1,
right?
What if I want it to be at the level of /home1, but change
to the partition
/home1 resides? Is there anything need to be done in
/etc/vfstab?
How to specify /usr/local to a specific partition. Like
/dev/dsk/c0t0d0s7?

【在 m*****e 的大作中提到】
:
: / is not safer than any other partition. The point is, if / fails, everything
: else fails even if you have a good /usr. If / is good, but /usr fails, you
: should be able to fix it. But if the bins are all on /usr, you fail too.
: You are right that rescue disc helps, although it's not so convenient to use.
: Seriously, in this case, the best way is to move all /usr/local stuff out to
: other partitions. It's usually where the custom packages are installed,
: and moving them out shouldn't affect anyth

m*****e
发帖数: 4193
12

yes.
yes.
You can remove /home1 from vfstab and mount it on /usr/local.
If you want to keep existing partitions as-is, you will have to repartition.
in your /etc/vfstab:
/dev/dsk/c0t1d0s7 /dev/rdsk/c0t1d0s7 /usr/local ufs 1 yes -

【在 L***e 的大作中提到】
: Can anyone explain in steps how to move /usr/local to
: another partition?
: like /dev/dsk/c0t0d0s7 (/hom1)?
: What should I do to move a file?
: I figure should be:
: mv -f /usr/local /home1
: link -s /home1/usr/local /usr/local
: This would make /usr/local be the subdirectory of /home1,
: right?
: What if I want it to be at the level of /home1, but change

L***e
发帖数: 42
13
m*****e
发帖数: 4193
14

They will be in /usr/local, and you will not be able to see all the files in
the original /usr/local if you don't copy them out to the old /home1.
Yes of course.
If you never did this before, I'd say take your own risk.
I have no experience installing Solaris by CD. All the machines
in my department were installed via network, and I upgraded lots
of them (hmmm, I upgraded 10 sun4u's last week, and I'm gonna
upgrade another 7 suns next week).
For Solaris 8 2G is enough. Lots of machines in my

【在 L***e 的大作中提到】

L***e
发帖数: 42
15
What about user home directories? /export/home?
Do you use NIS and put all user files on one HOME machine?
I wanted to set up a network installation server, but how do
I do that? It's not stated in the documentation. So far I
tried 2 machines and they don't give me an OPTION to set it
up as network installation server. Some of the old Unix
boxes don't even have a CD-rom, I will need to figure out
how to dismount one CD-rom and attach it to the other when
installing Solaris 8.
It's tough when the
m*****e
发帖数: 4193
16

Home directories are automounted via NFS/AMD :-)

【在 L***e 的大作中提到】
: What about user home directories? /export/home?
: Do you use NIS and put all user files on one HOME machine?
: I wanted to set up a network installation server, but how do
: I do that? It's not stated in the documentation. So far I
: tried 2 machines and they don't give me an OPTION to set it
: up as network installation server. Some of the old Unix
: boxes don't even have a CD-rom, I will need to figure out
: how to dismount one CD-rom and attach it to the other when
: installing Solaris 8.
: It's tough when the

1 (共1页)
进入Unix版参与讨论
相关主题
change read-only system to read/write? online waitingRe: [转载] How to install Solaris 7 Over NT?
Why do I always need to type ./ to run a command?solaris 7 on pc
could not talk to print service at cupsserverkde的问题
rsh port/protocol?mount FAT32 partition on solaris 8
不好意思,问个问题disk full, how do i handle this?
Dumb Questions on Solaris 2.7 Installation有人在Win98上,装过Solaris8吗?帮帮忙,谢谢!!!!
救命!! 问题比较难!Does Solaris8.0 support 40GB hard disk?
The sender info of mail commandHow to resize partitions on Solaris 9??
相关话题的讨论汇总
话题: usr话题: partition话题: home1话题: what话题: room