Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

safe to relocate /opt?

Status
Not open for further replies.

jasperfs

Programmer
Aug 22, 2002
1
US
I have a machine where the partition holding /opt is full and won't let me install new software.

I would like to relocate opt to another partition, then just use a symbolic link in / to point to its new location.

Q: can I safely just "mv" opt to the new location while in normal multi-user mode?

I don't think there are contents in there that would hose the machine if I do a "live" move - but thought I would check before trying.

Thanks!

Jason
 
tar cfvp /path/opt.tar ./opt

umount /opt

rm -rf /opt

cd /path
tar xfvp opt.tar
ln -s /path/opt.tar /opt

yes you can...
or you can
boot into maint mode..
vgchange -a y /dev/vg00
lvextend /dev/vg00/optvol
extendfs /dev/vg00/optvol
vgchange -a n /dev/vg00
reboot/shutdown -r now
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top