- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Setting up new VG and LV
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-15-2005 02:59 AM
06-15-2005 02:59 AM
**WARNING: Newbie questions about to be asked**
Ok, so...I'm used to dealing with AIX more than HP-UX, and my AIX knowledge is a bit out of date. The only reason that I'm asking the following question is that I need to get up to speed and learn this stuff ASAP for a project. That having been said, I apologize in advance for asking any stupid question, but at least I'm asking, right?
I have a CLARiiON CX400 that I have hooked to my RP7400. On the CLARiiON, I have created a LUN. I want that LUN to be accessible through my RP7400 server. For it to be accessible, it has to be mounted, obviously. However, I can't seem to create the "LUN" correctly in HP-UX. Here are the steps, as I understand them, that I should need to take.
1) Run ioscan -funC disk to see if the disk shows up (it does: /dev/dsk/c70d7)
2) Create the physical volume on the server (the RP7400) by using pvcreate.
3) Make the directory to use with mkdir
4) Create the volume group with vgcreate.
5) Create the logical volume with lvcreate
6) Create and mount a file system
At this point, I should be good to go, if this list is correct and all went well. However, I can't get past step 2: I get some error message about 'not a character disk'.
Can someone help me out and point me in the dir of correct instructions? I will be doing this on a test system (of course), and I'm not looking for someone to do this for me...just a point in the right direction.
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2005 03:04 AM
06-15-2005 03:04 AM
Solution# pvcreate /dev/rdsk/c7t0d7
3) Create /dev/vg?? dir and group file
Assume vg03 as an example
# mkdir /dev/vg03
# mknod /dev/vg03/group c 64 0x030000
The last string is the minor number for the group file which should be unique and ideally should match the vg??. To see all group files do:
# ll /dev/vg*/group
and note the 0x0????? number for each. Remember that this is a hex number.
Your steps 4-6 sound good.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2005 03:06 AM
06-15-2005 03:06 AM
Re: Setting up new VG and LV
pvcreate /dev/dsk/cXtYdZ
returns *not a character device*
just do:
pvcreate /dev/rdsk/cXtYdZ
Instead! Note rdsk instead of dsk.
/dev/dsk contains block special files
/dev/rdsk contains character special files.
I've never really understood why pvcreate doesn't accept either, but it doesn't!
All your other steps look fine.
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2005 03:14 AM
06-15-2005 03:14 AM
Re: Setting up new VG and LV
3b) You must create a "group" device node. The major device number is 64 and the minor device number must be unique. Do an "ls -l /dev/vg*/group" and note the minor device number. By convention, vg00 uses 0x000000, vg01 uses 0x010000, vg02 uses 0x020000, and so on but that is simply convention. As long as the minor device number is unique you are ok.
mkdir /dev/vg05
mknod /dev/vg05/group c 64 0x050000
You also need to activate thr Volume group before mounting filesystems so
5B) vgchange -a y /dev/vg05.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2005 03:17 AM
06-15-2005 03:17 AM
Re: Setting up new VG and LV
pvcreate needs rdsk, not dsk.
Here's a quick little cheatsheet.
# pvcreate /dev/rdsk/cxtydz
# mkdir /dev/vgxx
# mknod /dev/vgxx/group c 64 0x0X0000
# ll /dev/vgxx/group - shows new volume group
# vgcreate /dev/vgxx /dev/dsk/cxtydz
# vgdisplay -v vgxx | more
# lvcreate -L SIZE /dev/vgxx
# newfs -F vxfs /dev/vgxx/lvol1
# mkdir /NEWFILE
# mount /dev/vgxx /NEWFILE
# vi /etc/fstab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2005 03:51 AM
06-15-2005 03:51 AM
Re: Setting up new VG and LV
Following your instructions, I have successfully created the directory that I needed, and it is ready for testing.
This was just what I needed. Now, I'll document it and add it to my handy HP-UX toolbelt.
10 points all around!
Thanks again--
--James