Differences between version 7 and revision by previous author of ipcop.
Other diffs: Previous Major Revision, Previous Revision, or view the Annotated Edit History
Newer page: | version 7 | Last edited on Tuesday, September 9, 2003 6:15:20 pm | by CraigBox | Revert |
Older page: | version 6 | Last edited on Tuesday, September 9, 2003 12:42:46 pm | by CriggieCriggie | Revert |
@@ -3,26 +3,27 @@
Someone who uses it can document this more. [AddToMe]
----------------------------------
-This is from Nick Rout (nick@
rout.
co.
nz) when he ran out of [Inode]s
on /var on his [Ipcop
] box. Nick is active in [CLUG]. Added by [Criggie]
-Subject: HELP! How do I make more [Inode]s
+This is from Nick Rout (nick at
rout dot
co dot
nz) when he ran out of [Inodes|
Inode] on /var on his [ipcop
] box. Nick is active in [CLUG].
+
+Subject: HELP! How do I make more [inodes|
Inode] %%%
Date: 09 Sep 2003 11:53:35 +1200
-for
the record I did the following:
+For
the record I did the following:
-. from the backup box [scp
] the [
rsync]
binary to the [
ipcop]
box, as its not included there by default. must remember to remove it. first i checked which libraries it links to, which looked minimal so I figured it would
+. from the backup box [SCP
] the rsync(1)
binary to the ipcop box, as its not included there by default. must remember to remove it. first i checked which libraries it links to, which looked minimal so I figured it would
work on ipcop.
-whereis [
rsync] %%%
-ldd /usr/bin/rsync %%%
-scp -P 222 /usr/bin/rsync ipcop:/usr/bin/rsync %%%
+
whereis rsync
+ ldd /usr/bin/rsync
+ scp -P 222 /usr/bin/rsync ipcop:/usr/bin/rsync
1. from the backup box, make a temp directory and cd into it, after making sure there was enough room on that partition for the data to be transferred.
2. from the backup machine:
-[
rsync]
avz -e "ssh -p 222" ipcop:/var/log/* .
+
rsync avz -e "ssh -p 222" ipcop:/var/log/* .
-a = archive (preserves file attributes and recurses thru directories) %%%
-v = verbose %%%
-z = compress to speed up over the network %%%
@@ -31,20 +32,20 @@
wait for rsync to finish. %%%
3. on ipcop
-umount /var/log %%%
-mke2fs -j -N 65536 /dev/harddisk3 %%%
-(make a new file system with approx 4 times as many inodes as before) %%%
-mount /var/log %%%
+
umount /var/log
+ mke2fs -j -N 65536 /dev/harddisk3
+(make a new file system with approx 4 times as many inodes as before)
+ mount /var/log
4 on backup machine
-[
rsync]
-avz -e "ssh -p222" . ipcop:/var/log %%%
+
rsync -avz -e "ssh -p222" . ipcop:/var/log
wait again
5. check out everything looks right on [ipcop] and (for good measure) reboot it.
-Luckily having /var/log mounted is not essential for continued running. If i'd had to do this on / I would have needed to use a rescue disk, which would have meant attaching a [
monitor]
, [
keyboard]
etc. As it is I didn't go within 20 feet of the [ipcop] box.
+Luckily having /var/log mounted is not essential for continued running. If i'd had to do this on / I would have needed to use a rescue disk, which would have meant attaching a monitor, keyboard etc. As it is I didn't go within 20 feet of the [ipcop] box.
[IsomerMadeMeDoThis]