PDA

View Full Version : Having trouble verifying swap


TXCOWBOY
03-21-2006, 09:59 PM
I have an Hr10-250 that I upgraded from the original 250GD disk to a 500GB Seagate disk. During the upgrade I increased the swap space to 250MIB and used the tpip command to activate it. tipi came back and reported that it had initialized 250MIB. I am trying to verify from the logs that the swap initialized correctly. I used the instructions from another post to do this. Here is what I did.

First I put the drive in the D Tivo (HR10-250) and waited until it showed a picture from the satellite and then pulled the power cord.

Next I put the drive in my PC and booted from the PTV MFSTools CD.

mkdir /mnt/var
mount /dev/hdc9 /mnt/var

# grep -i swap /mnt/var/log/kernel
Jan 2 00:00:41 (none) kernel: Starting kswapd
Mar 14 17:56:44 (none) kernel: Activating swap partitions
Mar 14 17:56:44 (none) kernel: Adding Swap: 131064K swap-space (priority -1)
Jan 2 00:00:45 (none) kernel: Starting kswapd
Nov 7 00:34:47 (none) kernel: Activating swap partitions
Nov 7 00:34:47 (none) kernel: Adding Swap: 131064K swap-space (priority -1)
Bus error

It looks like to me that I have about 127MB of swap. I used 250 in the restore. I have tried loading the disk in the D Tivo, waiting until I see a picture on the screen and pulling the plug twice. Each time I seem to get the same results with the same times and dates. Is this just the beginning of the log file and my true swap is down further in the log. I can't get anymore information because I get the "Bus error".

Is it possible that I should wait longer for the swap file to initialize before pulling the plug?

Does anyone have any suggestions?

Thanks in advance for your help.

kschauwe
03-21-2006, 11:36 PM
Type in:
pdisk -l /dev/hda (then enter)
See what size the swap parition is.

TXCOWBOY
03-22-2006, 12:00 AM
I tried the pdisk command and it came back with

Swap Linux swap 512000@485512257 (250.0M)

Does that mean that it worked correctly and I have a 250MB swap?

Anyone?

TXCOWBOY
03-22-2006, 08:33 AM
I guess that I don't understand the correct way to check the swap space. The "pdisk" command seemed to work and I am assuming that the results I got show a 250MB swap. On the other hand, if that is the correct way to check the swap, why did the people in this thread about tpip ( http://www.tivocommunity.com/tivo-vb/showthread.php?t=251011&highlight=tpip ) go to so much trouble checking the logs.

As you can see above, so far I have not had much luck with checking the logs. Can someone please explain the correct procedure or why one way is better than the other.

Thanks!

JamieP
03-22-2006, 11:14 AM
I guess that I don't understand the correct way to check the swap space. The "pdisk" command seemed to work and I am assuming that the results I got show a 250MB swap. On the other hand, if that is the correct way to check the swap, why did the people in this thread about tpip ( http://www.tivocommunity.com/tivo-vb/showthread.php?t=251011&highlight=tpip ) go to so much trouble checking the logs.

As you can see above, so far I have not had much luck with checking the logs. Can someone please explain the correct procedure or why one way is better than the other.

Thanks!pdisk tells you the size of the swap partition. It does not tell you if it was initialized properly or if the kernel is recognizing the swap space. To check that, you either need to hack your tivo so you can run commands there, or pull the disk and check the logs. The logs are historical, so you'll see information there from before your upgrade as well as after. At first glance, it appears to me that your swap is not properly initialized: I don't see any recent messages that show a swap partition size.

TXCOWBOY
03-22-2006, 02:29 PM
JamieP

Every time I tried to use the grep command listed above it terminated in a "Bus error". I suspected that it was not showing all of the information. So, today I brought the disk into work with me and the guys in the computer department actually went in and looked at the entire log. Once they were inside, they some how did another "grep" command and sure enough it showed the 250GB swap was initialized and looked fine.

Thanks for explaining the different methods of checking the swap. It makes sense to me now.

JamieP
03-23-2006, 01:48 AM
JamieP

Every time I tried to use the grep command listed above it terminated in a "Bus error". I suspected that it was not showing all of the information. So, today I brought the disk into work with me and the guys in the computer department actually went in and looked at the entire log. Once they were inside, they some how did another "grep" command and sure enough it showed the 250GB swap was initialized and looked fine.

Thanks for explaining the different methods of checking the swap. It makes sense to me now.Glad you figured it out. Not sure why grep was crashing.