1833780 Members
2591 Online
110063 Solutions
New Discussion

Re: swap area ...

 
SOLVED
Go to solution
Manuales
Super Advisor

swap area ...

Hi friends !!!

i need start an application, buy the procedure tells to me
i have to activate swap area on my server.

steps are:
1.- swapon -a :
Enabling device paging on /dev/vg01/swap1.
swapon: /dev/vg01/swap1: No such device or address
Enabling device paging on /dev/vg01/swap2.
swapon: /dev/vg01/swap2: No such device or address
Enabling device paging on /dev/vg01/swap3.
swapon: /dev/vg01/swap3: No such device or address

2.- vgchange -a y vg01
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk
/c0t5d0":
Device busy
vgchange: Warning: couldn't query physical volume "/dev/dsk/c0t5d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query all of the physical volumes.
vgchange: Couldn't activate volume group "vg01":
Quorum not present, or some physical volume(s) are missing.

i'd like to knwo, why do i have these errors?
I don't understand this situation !!! <:0(

Thanks, Manuales.
17 REPLIES 17
Deoncia Grayson_1
Honored Contributor
Solution

Re: swap area ...

From the look of it you are experiencing some hardware errors...

do a diskinfo on /dev/dsk/c0t5d0, you should get information back pertaining to do this disk, you should also run an ioscan to make sure all your disks show up as Claimed, by doing
ioscan -funC disk

If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
Manuales
Super Advisor

Re: swap area ...

thanks, i have already verify this information and is o.k., these commands responses o.k

sa2:/dev->diskinfo /dev/rdsk/c0t5d0
SCSI describe of /dev/rdsk/c0t5d0:
vendor: SEAGATE
product id: ST19171W
type: direct access
size: 0 Kbytes
bytes per sector: 0

sa2:/dev->ioscan -funC disk
Class I H/W Path Driver S/W State H/W Type Description
======================================================================
disk 0 10/0.5.0 sdisk CLAIMED DEVICE SEAGATE ST19171W
/dev/dsk/c0t5d0 /dev/rdsk/c0t5d0
disk 1 10/0.6.0 sdisk CLAIMED DEVICE Quantum XP34361WD
/dev/dsk/c0t6d0 /dev/rdsk/c0t6d0
disk 2 10/12/5.2.0 sdisk CLAIMED DEVICE TOSHIBA CD-ROM XM-5701TA
/dev/dsk/c4t2d0 /dev/rdsk/c4t2d0

System continues with errors:
sa2:/dev->vgchange -a y vg01
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c0t5d0":
Device busy
vgchange: Warning: couldn't query physical volume "/dev/dsk/c0t5d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query all of the physical volumes.
vgchange: Couldn't activate volume group "vg01":
Quorum not present, or some physical volume(s) are missing.

why are these errors ???
can i generate something else?
why couldn't activate volume group vg01??

Thanks, Manuales.
Deoncia Grayson_1
Honored Contributor

Re: swap area ...

how many disks are apart of vg01?

do a strings on your lvmtab and attached the output, you can't activate your volume group because quorom is not presnt, which means you have some missing disks...

is c0t5d0 the only disk that belongs to this volume group? Do a pvdisplay on each disk that belongs to this volume, also try doing a dd if=/dev/dsk/c0t5d6 of=/dev/null bs=512 and let that run...does this run ok?
If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
Deoncia Grayson_1
Honored Contributor

Re: swap area ...

Also is there a file system on this disk?
If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
Manuales
Super Advisor

Re: swap area ...


thanks Deoncia for your help !!!! :=)

answer:

sa2:/etc->strings lvmtab
/dev/vg00
/dev/dsk/c0t6d0
/dev/vg01
/dev/dsk/c0t5d0

sa2:/dev/dsk->dd if=/dev/dsk/c0t5d0 of=/dev/null bs=512
/dev/dsk/c0t5d0: Device busy
dd: cannot open /dev/dsk/c0t5d0


is there any problem?

Thanks.
Manuales
Super Advisor

Re: swap area ...


do i must execute next?

vgchange -a e -q n /dev/vgpkgdb


Thanks, Manuales.
Manuales
Super Advisor

Re: swap area ...


do i must execute next?

vgchange -a e -q n /dev/vgpkgdb

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=965690


Thanks, Manuales.
Manuales
Super Advisor

Re: swap area ...

I executed next and i obtained next:

sa2:/dev->vgchange -a e -q n /dev/vg01
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c0t5d0":
Device busy
vgchange: Activation mode requested for the volume group "/dev/vg01" conflicts with configured mode.
vgchange: Warning: couldn't query physical volume "/dev/dsk/c0t5d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query all of the physical volumes.


for any error, i deleted syslog.log , do you think is good idea to reboot server to verify syslog.log? do you think could have been any problem to start server?

Thanks, Manuales.
A. Clay Stephenson
Acclaimed Contributor

Re: swap area ...

You should not have deleted syslog.log; that simply removes what might be valuable data. You would only use vgchange -a e on a Cluster aware volume group (ie a shared Service Guard VG). Your fundamental problem is that you do not have quorum for vg01 because less than a majority of the PV's which comprise vg01 are available. You might be ablke to activatre the vg by using vgchange -q n -a y /dev/vg01 but unless all your LVOL's are mirrored , you will still not have all the available data. Shutting down may help but my best guess is that you have a dead disk.
If it ain't broke, I can fix that.
Manuales
Super Advisor

Re: swap area ...



did you already this?

sa2:/dev->diskinfo /dev/rdsk/c0t5d0
SCSI describe of /dev/rdsk/c0t5d0:
vendor: SEAGATE
product id: ST19171W
type: direct access
size: 0 Kbytes
bytes per sector: 0

size 0 Kbytes !!!
why??

Thanks, Manuales.
A. Clay Stephenson
Acclaimed Contributor

Re: swap area ...

Because the host is having troble communicating with the device. The SCSI Inquiry was less than successfull. In short, it looks like a bad disk.
If it ain't broke, I can fix that.
Manuales
Super Advisor

Re: swap area ...

and ..

look at this:

if i use pvdisplay:

sa2:/dev/dsk->pvdisplay /dev/dsk/c0t5d0
pvdisplay: Warning: couldn't query physical volume "/dev/dsk/c0t5d0":
The specified path does not correspond to physical volume attached to
this volume group
pvdisplay: Warning: couldn't query all of the physical volumes.
pvdisplay: Couldn't retrieve the names of the physical volumes
belonging to volume group "/dev/vg01".
pvdisplay: Cannot display physical volume "/dev/dsk/c0t5d0".

and with another:
sa2:/dev/dsk->pvdisplay /dev/dsk/c0t6d0 | more
--- Physical volumes ---
PV Name /dev/dsk/c0t6d0
VG Name /dev/vg00
PV Status available
Allocatable yes
VGDA 2
Cur LV 8
PE Size (Mbytes) 4
Total PE 1023
Free PE 369
Allocated PE 654
Stale PE 0
IO Timeout (Seconds) default

what do you recommend to me ?

Thanks, Manuales.
Bill Hassell
Honored Contributor

Re: swap area ...

The disk at /dev/dsk/c0t5d0 is defective. There is nothing you can do to fix it except replace the disk, then rebuild the volume group and logical volumes and restore the data from your latest backup tape.


Bill Hassell, sysadmin
Deoncia Grayson_1
Honored Contributor

Re: swap area ...

Manuales,

You have to get that disk replaced because it is no longer available to you for use. If this is not mirrored then I hope you have a good backup in order to restore any lost data.

If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
Manuales
Super Advisor

Re: swap area ...


Thanks ...

i'm attaching to you an image how sam shows to me information about all disk on my operating system.

Do you think this disk is bad ?

Thanks, Manuales.
Manuales
Super Advisor

Re: swap area ...


what are steps to configure swap area? this is to redirect to another disk

how do i do it?
in this moment was on :

vg01
sa2:/dev/vg01->ls -lrt
total 0
crw-r--r-- 1 root sys 64 0x010000 Apr 21 1999 group
brw-r----- 1 root sys 64 0x010001 Apr 21 1999 swap1
crw-r----- 1 root sys 64 0x010001 Apr 21 1999 rswap1
brw-r----- 1 root sys 64 0x010002 Apr 22 1999 swap2
crw-r----- 1 root sys 64 0x010002 Apr 22 1999 rswap2
brw-r----- 1 root sys 64 0x010003 Apr 27 1999 swap3
crw-r----- 1 root sys 64 0x010003 Apr 27 1999 rswap3
crw-r----- 1 root sys 64 0x010004 Jan 30 2000 rorahome
brw-r----- 1 root sys 64 0x010004 Jul 2 2003 orahome

and i wanted to make:
swapon -a ...> here i had problems with vg01 and c0t5d0 disk, how can i redirect to another disk?

thanks !! Manuales.
Deoncia Grayson_1
Honored Contributor

Re: swap area ...

Manuales,

You don't have another disk to use as swap, c0t5d0 is bad and must be replaced asap!! There is not another disk available to redirect this to, you used this disk for swap and once you have this one replace it can be reconfigured again. I'm sure if you do a swapinfo that you have a small space of swap configured in vg00. you do not want to redirect anything to vg00, so your best option is to get c0t5d0 replaced in order for you to reconfigure your swap. Also you will have to recreate your volume group vg01 and restore any information in regards to orahome back to the disk once it has been replaced.
If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon