On Wednesday 28 April 2004 13:10, Peter E. Abresch Jr. - at Pepco wrote: > 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.
cp -pfr /opt /tempmount would do, but better would be: # cd /opt # tar cvf - . | ( cd /tempmount ; tar xvf - ) > > Unmount new filesystem using > umount /tempmount =====>>> clean /opt, don't forget... > > 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 > Florencio. ---------------------------------------------------------------------- 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
