- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: LUN's
Operating System - HP-UX
1752307
Members
5326
Online
108786
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО07-21-2006 08:23 AM
4 REPLIES 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2006 08:33 AM
тАО07-21-2006 08:33 AM
Solution
A LUN is just some disk space. If you are using LVM then you first must determine the ctd number of the LUN. You can use ioscan -fnCdisk and look for the new LUN. If there is no /dev/dsk/cxtxdx number then you will have to run insf -e to get it reconized by the OS.
Once you have the /dev/dsk/ctd number then you will use pvcreate to prepare the LUN for use in a volume group:
pvcreate /dev/rdsk/cxtxdx
Where the x's are the number like c0t1d0.
Then use vgextend to get the LUN into an existing volume group like vg01 for example:
lvextend vg01 /dev/dsk/c0t1d0
Then use either part or all of the LUN by createing a logical volume on the LUN like lvol1 for example.
lvcreate -n lvol1 vg00 /dev/dsk/c0t1d0
then you will have to make a file system on the lvol with newfs and lets say makeing it a vxfs type file system:
newfs -F vxfs /dev/vg01/lvol1
When that completes you can then mount it after you create the mount point, /app for example:
mkdir /app
mount /dev/vg01/lvol1 /app
Then you have it mounted. If you want to make the mount perminant the add a line to /etc/fstab like this:
/dev/vg01/lvol1 /app vxfs 0 2
There are plenty of other options but that will get it done as a basic mount.
Once you have the /dev/dsk/ctd number then you will use pvcreate to prepare the LUN for use in a volume group:
pvcreate /dev/rdsk/cxtxdx
Where the x's are the number like c0t1d0.
Then use vgextend to get the LUN into an existing volume group like vg01 for example:
lvextend vg01 /dev/dsk/c0t1d0
Then use either part or all of the LUN by createing a logical volume on the LUN like lvol1 for example.
lvcreate -n lvol1 vg00 /dev/dsk/c0t1d0
then you will have to make a file system on the lvol with newfs and lets say makeing it a vxfs type file system:
newfs -F vxfs /dev/vg01/lvol1
When that completes you can then mount it after you create the mount point, /app for example:
mkdir /app
mount /dev/vg01/lvol1 /app
Then you have it mounted. If you want to make the mount perminant the add a line to /etc/fstab like this:
/dev/vg01/lvol1 /app vxfs 0 2
There are plenty of other options but that will get it done as a basic mount.
If it has wheels or a skirt, you can't afford it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2006 08:41 AM
тАО07-21-2006 08:41 AM
Re: LUN's
At one level, your question has no meaning because a filesystem is mounted not a LUN or a disk.
Your first task is to do an ioscan -fn to see if the new device is visible and is marked "CLAIMED". Next do an "insf" to create the device node (e.g. /dev/dsk/c6t3d13).
At this point you can proceed with adding the LUN to a volume or disk group. Create logical volumes, and finally run newfs to create a filesystem. You then run mkdir to create a mountpoint; and finally, you can mount it.
The good news is that you can do all of this with SAM.
All of the above assumes that this is a newly created LUN; if you are trying to import a LUN that houses an existing volume group, LVOL's, and filesystems then that is a horse of a different color.
Your first task is to do an ioscan -fn to see if the new device is visible and is marked "CLAIMED". Next do an "insf" to create the device node (e.g. /dev/dsk/c6t3d13).
At this point you can proceed with adding the LUN to a volume or disk group. Create logical volumes, and finally run newfs to create a filesystem. You then run mkdir to create a mountpoint; and finally, you can mount it.
The good news is that you can do all of this with SAM.
All of the above assumes that this is a newly created LUN; if you are trying to import a LUN that houses an existing volume group, LVOL's, and filesystems then that is a horse of a different color.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2006 08:53 AM
тАО07-21-2006 08:53 AM
Re: LUN's
Your HPUX Server will see the LUNS as disks, they will need to have the same kind of files like a regular disk... For future reference just take a look at this site that some useful cookbooks about LVM:
http://www2.itrc.hp.com/service/iv/node.do?node=prodITRC%2FWW_Start%2FN1%7C20%7C3%7C1
http://www2.itrc.hp.com/service/iv/node.do?node=prodITRC%2FWW_Start%2FN1%7C20%7C3%7C2
And as Mr. Stephenson said you can do this with SAM.
LN
http://www2.itrc.hp.com/service/iv/node.do?node=prodITRC%2FWW_Start%2FN1%7C20%7C3%7C1
http://www2.itrc.hp.com/service/iv/node.do?node=prodITRC%2FWW_Start%2FN1%7C20%7C3%7C2
And as Mr. Stephenson said you can do this with SAM.
LN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2006 04:42 AM
тАО07-24-2006 04:42 AM
Re: LUN's
Thanks guys.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP