1753861 Members
7411 Online
108809 Solutions
New Discussion юеВ

Re: vgname deletion

 
SOLVED
Go to solution
siva baskaran
Regular Advisor

vgname deletion

hi,

i created a vg named vg01 three month back, now i would like increase the size of hard disk like i going to chage another hard disk, so to do this, i changed the vg status to disable and pulgout the hard disk and fix the another hard disk, but now i couldn't able to create vg as vg01 name, and one more thing i haven't remove the particular vg which was previuosly.

now i couldn't able to remove particular vg even after issued vgscan, simply to say i couldn't able to remove the entry in /etc/lvtab

it is giving error is particluar disk not found message.


simple proble i have to remove entry from /etc/lvmtab because of when try to create vg named vg01 it is saying it's alsready exist

so how to remove the entry or any another way?


thanks
siva
2 REPLIES 2
RAC_1
Honored Contributor
Solution

Re: vgname deletion

Let's do one thing at a time. If you want to create vg01 with new disk (I hope you have taken required backups), just do vgchange -a n vg01 and then vgexport -v vg01.

Then create VG again.

mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000
(minor number should be uniq and not used anywhere on system)
pvcreate /dev/rdsk/cxtxdx -> new disk
vgcreate /dev/vg01 /dev/dsk/cxtxdx
vgchange -a y vg01

Then rest of the things-lvcreate and mounts as you like.
There is no substitute to HARDWORK
sajeer_2
Regular Advisor

Re: vgname deletion

HI siva,

T remove entry from /etc/lvmtab,you have to do vgexport.

Umount all file systems in the specific VG.
vgchange -a n /dev/vgXX
vgexport /dev/vgXX

Check /etc/lvmtab

Crate vg with new disk as mentioned by RAC.

sajeer