1838725 Members
6717 Online
110129 Solutions
New Discussion

lvcreate problem

 
Javier Ortiz Guajardo
Frequent Advisor

lvcreate problem

I want to create a raw space, so i´m using the command:

$ lvcreate -L 2048 /dev/vgxx

Then i use the command fstyp

$ fstyp /dev/vgxx/rlvoly
vxfs

I´m not using the newfs, because i want to define a raw space.

it is a bug? or i need a patch?

Please your Help.
Thanks
The obstacles are those things that the people see when they left to see their goals.
5 REPLIES 5
A. Clay Stephenson
Acclaimed Contributor

Re: lvcreate problem

If you simply did an lvcreate then you could completely by accident reuse previously used space that happened to contain a vxfs filesystem. Frankly, I can't imagine the thought process that led you to run fstyp on a raw volume. In any event, whether or not a filesystem was laid down previously doesn't matter, if your application is using the space as a raw volume then it won't care in the least what preexisting data are there.
If it ain't broke, I can fix that.
A. Clay Stephenson
Acclaimed Contributor

Re: lvcreate problem

I suppose that I should add that LVM commands do all their work in the reserved areas (VGRA) of the disk. They do not affect the remaining areas of a disk so it is quite possible to read an artifact of an earlier filesystem but again a raw disk application doesn't care.
If it ain't broke, I can fix that.
Javier Ortiz Guajardo
Frequent Advisor

Re: lvcreate problem

your right, the application doesn´t care the VGRA, the problem is that we are backing up this raw devices with dataprotector 5.5, so when we try to restore the information, dataprotector fails because it wants to restore the information in vxfs type.

I mean dataprotector validate the type of the area.

Please your comments!!

Thanks
The obstacles are those things that the people see when they left to see their goals.
A. Clay Stephenson
Acclaimed Contributor

Re: lvcreate problem

I can't open your attachment but I can't imagine why DP would run fstyp against a raw device either. It shouldn't care. I suspect that you are trying to restore a filesystem object. It could also be a patch related issue but since you don't bother to identify your DP version or OS version, AND you didn't bother ro say that this was really a DP problem in the first place; it's difficult to be very helpful. I would post your problem in the DP area; you would probably get more meaningful answers.
If it ain't broke, I can fix that.
A. Clay Stephenson
Acclaimed Contributor

Re: lvcreate problem

Okay, I was able to open your attachment. There are two possible scenarios:

1) You are trying to restore over a mounted filesystem. If so then umount the filesystem.

2) The restore detected a super-block. If you are SURE that you want to blast this raw volume and are going to restore over it then dd about 10MB or so and blast the LVOL.

e.g. dd if=/dev/zero bs=1024k count=10 of=/dev/vgxx/rlvolx

You should then be able to restore over it.

Again, you should have posted this as a DP problem.
If it ain't broke, I can fix that.