1833046 Members
2442 Online
110049 Solutions
New Discussion

VG Question

 
SOLVED
Go to solution
PIYUSH D. PATEL
Honored Contributor

Re: VG Question

Hi,

List the following

ll /dev/vg*/group and check whether the vg07 dir existes or not or the group file exists or not.

You can create another vg08 if not present with the same above commands.

Piyush
Diadina Cotte
Advisor

Re: VG Question


Sorry... but i am new to all this ...so:

root@apache:/dev#>lvcreate -L 1500000 /dev/vg07
Logical volume "/dev/vg07/lvol2" has been successfully created with
character device "/dev/vg07/rlvol2".
lvcreate: Not enough free physical extents available.
Logical volume "/dev/vg07/lvol2" could not be extended.
Run the "lvextend" command to create space on the Logical Volume.
root@apache:/dev#>

the 1500000 is for 1.5 GB

..the diskinfo....

root@apache:/dev#>diskinfo /dev/rdsk/c0t0d2
SCSI describe of /dev/rdsk/c0t0d2:
vendor: MTI
product id: 3200 B02
type: direct access
size: 17782784 Kbytes
bytes per sector: 512
root@apache:/dev#>
Coffee please ;-)
Jeff Schussele
Honored Contributor

Re: VG Question

HI,

The -L specifies MB
Use -L 1500 for 1.5 Gb

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Tal Drigov_1
Occasional Advisor

Re: VG Question

Hey,

run vgdisplay -v vg07, see how much free PE's you've got,
then run lvcreate -l /dev/vg07

Tal.
Two words lead the world....HP
S.K. Chan
Honored Contributor

Re: VG Question

Not quite it should be ..
# lvcreate -L 1500 /dev/vg07
if you want a 1.5GB logical volume.

You need to do some cleanup now that you probably got lvol2 created by with "zero" size. Do ..
# vgdisplay -v vg07 | more
look at all of your LVs. My guess is now you got lvol2 in 0 size you would need to remove it first before you re-create it with the above command. To remove the LV ..
# lvremove /dev/vg07/lvol2
Diadina Cotte
Advisor

Re: VG Question

One last thing...

root@apache:/dev#>mount /dev/vg07/lvol1/extern01
mount: /dev/vg07/lvol1/extern01 was either ignored or not found in /etc/fstab
root@apache:/dev#>

The entries on the fstab are:

/dev/vg07/lvol1 /extern01 hfs rw,suid 0 2
/dev/vg07/lvol2 /extern02 hfs rw,suid 0 2
/dev/vg07/lvol3 /extern03 hfs rw,suid 0 2

Do I need to delete this entries or edit it?


Coffee please ;-)
Helen French
Honored Contributor

Re: VG Question

You can try this:

# mount -a ( mounts all valid FS from fstab)
# mount /dev/vg07/lvol1 /extern01 ( you need to give space between the two parameters. Remember to create mount points before issuing this commdand- mkdir)
Life is a promise, fulfill it!
Jeff Schussele
Honored Contributor

Re: VG Question

Hi,

You need a space between the LV structure & the mount point.

mount /dev/vgxx/lvolxx /mnt_point

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
S.K. Chan
Honored Contributor

Re: VG Question

If you have created a vxfs FS on /dev/vg07/lvol1 simply by the "typical" newfs command ..
# newfs -F vxfs /dev/vg07/lvol1
then your entry in /etc/fstab should look like this ..

/dev/vg07/lvol1 /extern01 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2

After you edit the entries simply run ..
# mount -a
Diadina Cotte
Advisor

Re: VG Question

Thanks to all you guys!
problem solve :D
Coffee please ;-)
Jeff Schussele
Honored Contributor

Re: VG Question

Hi Diadina,

Glad we could help :^)
Got quite the LVM lesson there, didn't you?
Not quite as intimidating now is it?

Have a great day!
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Diadina Cotte
Advisor

Re: VG Question

Hehehe... well after this... I got the picture.

thanks!
Coffee please ;-)
Martin Johnson
Honored Contributor

Re: VG Question

Did you verify that the default values for the vgcreate were adequate for the intended use of this volume group. In the past I have found that the default max PEs, max LVs and max PV can be too small. Now is the time decide these things as they cannot be modified after the volume group is created.

The only way to change things is to backup the data, delete the logical volumes and the volume group, then re-create the volume group with the new values(then re-create the LVs and restore the data).


Marty