- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: VG creation from Storage
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2011 10:27 PM
06-06-2011 10:27 PM
30 Gb allocated from san . i need to create a new logical volume. could you please help me.
Please provide command step by step. first time i am going to create LV from SAN.
disk 58 0/7/1/0/4/0.24.44.0.0.2.0 sdisk CLAIMED DEVICE HP MSA VOLUME
Thanaks in advance.
Regards
RPS
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2011 10:34 PM
06-06-2011 10:34 PM
Re: VG creation from Storage
"ioscan -fnC disk" for the above disk (we need to know the device file names)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2011 10:50 PM
06-06-2011 10:50 PM
Re: VG creation from Storage
Os version is 11.23
Regards
RPS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2011 11:04 PM
06-06-2011 11:04 PM
Solutionit seems that your DSF is missing.
To create it, run:
#insf -v
You should then run #ioscan -fn
again and see your DSF for disk 58
In which Volume group do you want to create your new LV?
After the DSF for the disk58 has been created, then initialize it for LVM usage:
#pvcreate
After the disk has been initialized, add it to the VG, in which you want to create the new LV:
#vgextend
Then create new LV:
#lvcreate -L
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2011 02:28 AM
06-07-2011 02:28 AM
Re: VG creation from Storage
This LV is temporay purpose for one month. after one month i have reacalim. How to recail it.
regads
RPS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2011 02:35 AM
06-07-2011 02:35 AM
Re: VG creation from Storage
# umount
# lvremove /dev/
you can also potentially vgreduce the disk which is used for the VG:
#vgreduce
#pvremove
Then unpresent the disk from the server so it can be used elsewhere, this is being done on the disk array...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2011 10:17 AM
06-07-2011 10:17 AM
Re: VG creation from Storage
Thanks. i don't want to extend the vg . i needd to create PV+VG+LV+FS. please provide me steps.
Thanks in advance.
Regards
RPS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2011 10:30 AM
06-07-2011 10:30 AM
Re: VG creation from Storage
to create the DSF for the new disk?
then #ioscan -fn
again and give me the output of disk58.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2011 07:44 PM
06-07-2011 07:44 PM
Re: VG creation from Storage
Please find attached file.
Thanks
RPS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2011 09:28 PM
06-07-2011 09:28 PM
Re: VG creation from Storage
#ll /dev/vg*/group
Ok so your new DSFs that got created is according to this: /dev/dsk/c9t2d0, /dev/rdsk/c9t2d0
you wanted to create the PV from it so:
#pvcreate /dev/rdsk/c9t2d0
You didn't specify the parameters of VG, so I assume the defaults will be ok, it's temporary anyways, so:
#mkdir /dev/vgname
#mknod /dev/vgname/group c 64 0x0Y0000
where 'Y' is the number following the last minor number from the #ll /dev/vg*/group output
#vgcreate vgname /dev/dsk/c9t2d0
The 'vgname' should be unique to your system, it could be anything like vgora, vgtemp....doesn't really matter....
Then create the 30GB LV:
#lvcreate -L 30720 /dev/vgname
Create a FS within the LV:
#newfs -F vxfs -o largefiles /dev/vgname/rlvol1 (largefiles option is optional, if you are going to have files bigger than 2GB in that FS)
Finally mount the FS:
#mount /dev/vgname/lvol1 /your_mount_point
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2011 09:43 PM
06-07-2011 09:43 PM
Re: VG creation from Storage
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2011 09:43 PM
06-07-2011 09:43 PM
Re: VG creation from Storage
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2011 09:44 PM
06-07-2011 09:44 PM
Re: VG creation from Storage
# 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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2011 09:45 PM
06-07-2011 09:45 PM
Re: VG creation from Storage
OS Version is 11.23.
Rgards
RPS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2011 09:47 PM
06-07-2011 09:47 PM
Re: VG creation from Storage
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2011 09:48 PM
06-07-2011 09:48 PM
Re: VG creation from Storage
then:
#mkdir /dev/vgtest
#mknod /dev/vgtest/group c 64 0x090000
would be ok.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2011 09:57 PM
06-07-2011 09:57 PM
Re: VG creation from Storage
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2011 10:04 PM
06-07-2011 10:04 PM
Re: VG creation from Storage
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2011 05:05 AM
06-09-2011 05:05 AM
Re: VG creation from Storage
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2011 07:58 AM
06-09-2011 07:58 AM
Re: VG creation from Storage
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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2011 09:49 AM
06-09-2011 09:49 AM
Re: VG creation from Storage
then just unmount FS and export volume group
unmount the FS
#umount /mountpoint
Deactivate the Volume Group:
#vgchange -a n vgname
export VG
#vgexport vgname
considering u want to remove all LVs and data.
Remove the Physical Volume
#pvremove /dev/rdsk/c?t?d?
Regards
Sunny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2011 08:59 PM
06-12-2011 08:59 PM
Re: VG creation from Storage
Thanks.
Reagards
RPS