Operating System - HP-UX
1753783 Members
7021 Online
108799 Solutions
New Discussion юеВ

Re: VG creation from Storage

 
SOLVED
Go to solution
GTFSpanneer
Frequent Advisor

Re: VG creation from Storage

Hi g3jza,

Thanks . please see the output.

:root>ll /dev/vg*/group
crw-r----- 1 root sys 64 0x000000 Apr 9 2007 /dev/vg00/group
crw-r--r-- 1 root sys 64 0x010000 Apr 16 2007 /dev/vg01/group
crw-r--r-- 1 root sys 64 0x020000 Apr 16 2007 /dev/vg02/group
crw-r--r-- 1 root sys 64 0x030000 Apr 16 2007 /dev/vg03/group
crw-r--r-- 1 root sys 64 0x040000 Apr 16 2007 /dev/vg04/group
crw-r--r-- 1 root sys 64 0x050000 Apr 16 2007 /dev/vg05/group
crw-r--r-- 1 root sys 64 0x060000 Apr 16 2007 /dev/vg06/group
crw-r--r-- 1 root sys 64 0x070000 Apr 16 2007 /dev/vg07/group
crw-r--r-- 1 root sys 64 0x080000 Apr 16 2007 /dev/vg08/group
Torsten.
Acclaimed Contributor

Re: VG creation from Storage

You should use the new agile device file when creating the VG, e.g. /dev/disk/disk__

No need to create a "group" file, if you are running 11.31 march 2008 or newer, just do a

# vgcreate /dev/vgname /dev/disk/disk__

the create the LVOL, create the file system and mount it (see above).

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Torsten.
Acclaimed Contributor

Re: VG creation from Storage

Use

# ioscan -m dsf

and search the new device file that matches /dev/dsk/c9t2d0.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
GTFSpanneer
Frequent Advisor

Re: VG creation from Storage

Hi Torsten,
OS Version is 11.23.

Rgards
RPS
g3jza
Esteemed Contributor

Re: VG creation from Storage

Torsten: he said OS is 11.23...
g3jza
Esteemed Contributor

Re: VG creation from Storage

ok,
then:

#mkdir /dev/vgtest
#mknod /dev/vgtest/group c 64 0x090000
would be ok.

Torsten.
Acclaimed Contributor

Re: VG creation from Storage

Sorry, haven't noticed this.


In this case you should vgextend the VG with the other path (/dev/dsk/c14t2d0) for multipathing (PVLINKS):

vgextend vgtest /dev/dsk/c14t2d0

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
g3jza
Esteemed Contributor

Re: VG creation from Storage

Torsten: That's a good point, to ensure high availability, forgot about that...
GTFSpanneer
Frequent Advisor

Re: VG creation from Storage

Hi g3jza,

Thank you very much. I have created the file system. And i need on more help from you. I need reclaim the space after one month.Please provide steps remove the fs+lv+vg+pv.

Thanks & Regards
RPS
g3jza
Esteemed Contributor

Re: VG creation from Storage

If you want to remove the FS+LV+VG+PV:

There's no need to remove the FS...I mean, you could just rm -rf /your_mount_point , where the LV is mounted, but that's not necessary, you can go ahead by removing LV+VG+PV like this:

unmount the FS first:
#umount /your_mount_point (where the LV is mounted)

deactivate the VG:
#vgchange -a n vgtest

Shortcut to removing VG:
#vgexport vgtest

one comment here: I hope that only the one LV you created was in vgtest, as the whole vgtest will "disappear"

Optionally remove the PV:
#pvremove /dev/rdsk/c9t2d0

Then tell your storage team to unpresent the disk/lun from the server, so it can be used elsewhere...