Update /etc/fstab with the appropriate information.  Also, read
http://linuxvm.org/Info/HOWTOs/movefs.html to double-check your thinking on
methodology.

The lsof command will identify who might be using stuff in /opt.  You would
probably want to do a "telinit 1" command first, so that you don't have to
worry about it.


Mark Post

-----Original Message-----
From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of Peter
E. Abresch Jr. - at Pepco
Sent: Wednesday, April 28, 2004 12:11 PM
To: [EMAIL PROTECTED]
Subject: Adding Spaces to a filesystem


I am running Linux SLES8 SP03 in a native LPAR. My root file system is
running out of space. I was going to create a separate file system for
directory /opt and move the data under this directory to the new file
system. I have obtained a new DASD UCB address 2536 and here is what I
plan to do.

dasdfmt ?v ?n 2536 ?d cdl ?l LNX003 ?b 4096 ?p

I was then going to define 2 equal partitions using:

fdasd ?-verbose ?l LNX003 and follow the menu prompts

Create 2 Reiser File systems using
mkreiserfs /dev/dasdc1
mkreiserfs /dev/dasdc2

I was then going to create a temporary mount point and mount one of the
new file systems.
mount ?t reiserfs /dev/dasdc1 /tempmount

Shutdown all users of directory /opt
How can I identify users of /opt?

Move all data from /opt to /tempmount
Can someone provide a cp command that will do this with all
subdirectories.

Unmount new filesystem using
umount /tempmount

mount the new filesystem on /opt using
mount ?t reiserfs /dev/dasdc1 /opt

Start my processes up again.

Have can I insure that this new filesystem is automatically mounted at
boot time? Can anyone provide pointers, opinions, or recommendations?
Thanks.

Peter




----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions, send email
to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to