RE: [SLE] Adding new hard disk
Another good input, I will follow your suggestion. Thanks Fergus. Greeting M. Edwin -----Original Message----- From: Fergus Wilde [mailto:fwilde@chethams.org.uk] Sent: Thursday, May 08, 2003 3:15 PM To: suse-linux-e@suse.com Subject: Re: [SLE] Adding new hard disk On Thursday 08 May 2003 08:48, M. Edwin wrote:
Thanks for your opinion John. It sounds not too hard to do that :-) You done it on EIDE right? The problem I have is SuSE (7.3) cannot recognize my other SCSI disk connect through other SCSI card. I install other SCSI card because the SCSI on board is very old and it is difficult to find the disk match with it.
Maybe I will buy the new EIDE disk.
Perhaps worth mentioning that if you use a recursive copy to replicate the file structures you intend to relocate, you should use the -p flag to cp in order to preserve ownerships, permissions, etc. I forgot this once and it breaks things because the system can't read or write the files in the way it expects. Of course if you keep your old files around for a while you can recover from the breakage without difficulty, but it's worth avoiding the waste of time :-)
Kind Regards, M. Edwin
-----Original Message----- From: John Lamb [mailto:J.D.Lamb@btinternet.com] Sent: Thursday, May 08, 2003 2:12 PM To: suse-linux-e@suse.com Subject: Re: [SLE] Adding new hard disk
M. Edwin wrote:
Hi all,
I just check my proxy server and found that the harddisk is so
(my harddisk is only 4 GB). I have to delete some file to make more
room
but still I feel not enough. I check with df and 95% is used. Can anybody here tell me how to install new scsi harddisk and move some directory to the new disk without disturbing the existing directory structure. Said move /var/squid/cache or /var/log to the new one.
Thanks
in advance.
If you're adding rather than replacing the disk it shouldn't be too hard. I've done it with a new EIDE disk and also with solaris
limited partitions
when the update patches got too big.
I would create a partition /var2 on the new disk and create
directories
/var2/squid and /var/log. Then, as root, copy the files in /var/squid to
/var2/squid and /var/log to /var2/log. Then rename /var/squid to /var/squid-old and /var/log to /var/log-old and use ln to create symbolic links: # ln -s /var/squid /var2/squid # ln -s /var/log /var2/log
Everything should now work OK. It's probably sensible to shut down squid
while you do this. When I did it on solaris, I shut just about everything off for five minutes.
When you're sure everything is working OK, you can delete /var/squid-old
and /var/log-old. But, if something goes wrong, you should can go back to the old directories.
-- JDL
Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
-- Fergus Wilde Chetham's Library Long Millgate Manchester M3 1SB Tel: +44 161 834 7961 Fax: +44 161 839 5797 http://www.chethams.org.uk -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
participants (1)
-
M. Edwin