LVM and VxVM

Add additional dump using crashconf

 
SOLVED
Go to solution
Marilyn DuChene
Frequent Advisor

Add additional dump using crashconf

I have 11.31 and am trying to add a second dump vol. My swap and dump are separate devices.

I ran:
lvcreate -C y -r n -L 5120 -n dump2 /dev/vg00
crashconf -a /dev/vg00/dump2
and I get:
/dev/vg00/dump2: error: device is fully occupied by a file system

How to proceed?
8 REPLIES 8
Benoy Daniel
Trusted Contributor

Re: Add additional dump using crashconf

To enable dump across boot without an immediate reboot, add the dump volume entry in /etc/fstab file:
... Dump defaults 0 0
vi /etc/fstab and add
/dev/vgxx/dumpxx ... dump defaults 0 0
Run /sbin/crashconf â a
This will allow the /etc/fstab file to be read, and all dump devices identified in it will be added to the current list of crash dump devices.
To verify:
Run crashconf -v to see whether the dump is configured.
Kapil Jha
Honored Contributor

Re: Add additional dump using crashconf

do a
dd if=/dev/null of=/dev/vg00/rdump2 bs=1024k

then crashconf -a

and/or

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1001616


BR,
Kapil+
I am in this small bowl, I wane see the real world......
Marilyn DuChene
Frequent Advisor

Re: Add additional dump using crashconf

I tried the dd command - and still it gives me the same error. I thought this might work - but no luck.

As for adding an entry in fstab - doesn't seem to matter if I do it on the command line or add it into /etc/fstab first and then try the crashconf -a.
melvyn burnard
Honored Contributor

Re: Add additional dump using crashconf

what does the lvdisplay of that lvol show?
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Marilyn DuChene
Frequent Advisor

Re: Add additional dump using crashconf

axis1#lvdisplay -v /dev/vg00/Dump2 |more
--- Logical volumes ---
LV Name /dev/vg00/Dump2
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 5200
Current LE 325
Allocated PE 325
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation strict/contiguous
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/disk/disk5_p2 325 325

Dennis Handly
Acclaimed Contributor
Solution

Re: Add additional dump using crashconf

>Kapil: dd if=/dev/null of=/dev/vg00/rdump2 bs=1024k

Did you really want /dev/null or /dev/zero?
Marilyn DuChene
Frequent Advisor

Re: Add additional dump using crashconf

/dev/zero works like a charm - I guess I didn't overwrite anything with the /dev/null (which seems obvious now...)

#dd if=/dev/zero of=/dev/vg00/rDump2 bs=1024k
939+0 records in
938+0 records out (and stopped it after a few seconds)

axis1#crashconf -a /dev/vg00/Dump2

checked w/ crashconf -v (and everything looks good) Thanks for the help.
Dennis Handly
Acclaimed Contributor

Re: Add additional dump using crashconf

>Thanks for the help.

If you are happy with the answers you got, please read the following about assigning points:
http://forums.itrc.hp.com/service/forums/helptips.do?#33