A A A

Please consider registering
guest

Log In

Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Adding more swap space on new disk.
March 30, 2015
11:50 am
Lo0oM
Admin
Forum Posts: 217
Member Since:
September 30, 2012
Offline

Hi

 

Description:

OS HPUX 11.23 IA. Lack of swap. I added new disk and configured additional swap on it.

 

Solution:

1. Current swap space

# swapinfo -tam

             Mb      Mb      Mb   PCT  START/      Mb
TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME
dev        4096      96    3986    2%       0       -    1  /dev/vg00/lvol2
reserve       -     545    -545
memory     8181    1830    6351   22%
total     16373    2570   13775   16%       -       0    -

 

# ioscan -fnC disk

# ioscan -fnkCdisk
Class     I  H/W Path       Driver     S/W State   H/W Type     Description
============================================================================
disk      0  0/0/2/0.0.0.0  sdisk      CLAIMED     DEVICE       TEAC    DV-28E-C
                           /dev/dsk/c0t0d0   /dev/rdsk/c0t0d0
disk      2  0/1/1/0.1.0    sdisk      CLAIMED     DEVICE       COMPAQ  BD0728A4C4 (new disk)
                          
disk      1  0/1/1/1.2.0    sdisk      CLAIMED     DEVICE       COMPAQ  BF072863BA
                           /dev/dsk/c3t2d0     /dev/dsk/c3t2d0s1   /dev/dsk/c3t2d0s2   /dev/dsk/c3t2d0s3   /dev/rdsk/c3t2d0    /dev/rdsk/c3t2d0s1  /dev/rdsk/c3t2d0s2  /dev/rdsk/c3t2d0s3

 

# pvcreate -f  /dev/rdsk/c2t1d0 (creating phisical volume).

 

# vgextend /dev/vg00 /dev/dsk/c2t1d0 (extending current volume group)

 

You can found disk path by diskinfo command if you not sure

# diskinfo /dev/rdsk/c2t1d0

SCSI describe of /dev/rdsk/c2t1d0:
             vendor: COMPAQ
         product id: BD0728A4C4
               type: direct access
               size: 71132000 Kbytes
   bytes per sector: 512

 

 

# lvcreate -L 4000 -C y -r n /dev/vg00 (create new logical volume with size 4000Mb)

Logical volume "/dev/vg00/lvol9" has been successfully created with
character device "/dev/vg00/rlvol9".
Logical volume "/dev/vg00/lvol9" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

 

 

# swapon /dev/vg00/lvol9

# swapinfo -tam (checking)

             Mb      Mb      Mb   PCT  START/      Mb
TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME
dev        4096      96    3986    2%       0       -    1  /dev/vg00/lvol2
dev        4096      99    3983    2%       0       -    1  /dev/vg00/lvol9
reserve       -     545    -545
memory     8181    1830    6351   22%
total     16373    2570   13775   16%       -       0    -

 

 

2. Add configuration to fstab:

# vi /etc/fstab

/dev/vg00/lvol3 / vxfs delaylog 0 1
/dev/vg00/lvol1 /stand vxfs tranflush 0 1
/dev/vg00/lvol4 /home vxfs delaylog 0 2
/dev/vg00/lvol5 /tmp vxfs delaylog 0 2
/dev/vg00/lvol6 /usr vxfs delaylog 0 2
/dev/vg00/lvol7 /var vxfs delaylog 0 2
/dev/vg00/lvol8 /opt vxfs delaylog 0 2
/dev/vg00/lvol9 .   swap  defaults 0 0

 

Thank you.

 

 

 

Forum Timezone: UTC 0

Most Users Ever Online: 31

Currently Online:
4 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 0

Members: 0

Moderators: 0

Admins: 1

Forum Stats:

Groups: 3

Forums: 20

Topics: 214

Posts: 214

Newest Members: Lo0oM

Administrators: Lo0oM (217)