3 Replies Latest reply: Feb 1, 2013 4:09 PM by Cindys-Oracle RSS

    Swap space

    user1466636
      Hi - when i do a swap -l on my system one of the swap devices is /var/crash. That seems not smart since when the system has issues with memory it could fill up /var/crash with coredumps that could in turn affect memory since it is part of swap - do you agree? Thanks
        • 1. Re: Swap space
          Cindys-Oracle
          The swap and swap monitoring thing is kind of confusing so to be sure, can you provide your swap -l and dumpadm output?

          Thanks, Cindy
          • 2. Re: Swap space
            user1466636
            $ swap -l
            swapfile dev swaplo blocks free
            /dev/vx/dsk/swapvol 251,5 16 8201840 3762096
            /var/crash/swapvol2 ?,? 16 4095984 3581472
            • 3. Re: Swap space
              Cindys-Oracle
              Okay, I see the problem now. Looks like this swap volume was added incorrectly by using syntax similar to VX syntax.

              This swap volume is not /var/crash, its actually /var/crash/swapvol2.

              It should look more like this:

              # swap -l
              swapfile dev swaplo blocks free
              /dev/zvol/dsk/rpool/swap 274,2 8 4194296 4194296

              What's concerning is the device nodes are missing so I think you should remove this device and re-add it, but I need to know if this is a ZFS or a UFS root file system on this system.

              My guess is that its ZFS but I want to confirm.

              Thanks, Cindy

              Thanks, Cindy