HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- creating a file system (LVM 10.20)
Operating System - HP-UX
1833528
Members
2803
Online
110061
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
Forums
Discussions
Discussions
Discussions
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
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
04-13-2001 11:15 AM
04-13-2001 11:15 AM
I want to create a separate file system on vg00. How do I dtermine if I have the space first, then how do I create the filesystem?
Thanks!
Thanks!
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2001 11:53 AM
04-13-2001 11:53 AM
Re: creating a file system (LVM 10.20)
Use "vgdisplay -v vg00" to see if there are free extents to create a new logical volume. Then use lvcreate to create a logical volume. Next, use newfs or mkfs to create a filesystem. Or, run SAM and go in under Filesystems to create a new filesystem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2001 11:55 AM
04-13-2001 11:55 AM
Solution
Hello Glenn,
there are a few commands which can help you determine if you have space available.
Sam will help you with that, but here are the commands from the command line:
vgdisplay -v /dev/vg00
=> look for the line which says Free PE. If that says anything else but 0 then you should have some space left.
If the PE size is set to 4 MB (that is the default) then you multiply the free PE by 4 and have the available MB number.
You can then easily create a new lvol with the size you want and mount that new lvol to a mountpoint.
Once you have determined that you have space, you can try to run sam and have sam do all the steps for you.
I just posted the manual steps in a similiar thread... check it out:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x4bc4d1e5762fd5118fef0090279cd0f9,00.html
Good luck,
Steffi Jones
there are a few commands which can help you determine if you have space available.
Sam will help you with that, but here are the commands from the command line:
vgdisplay -v /dev/vg00
=> look for the line which says Free PE. If that says anything else but 0 then you should have some space left.
If the PE size is set to 4 MB (that is the default) then you multiply the free PE by 4 and have the available MB number.
You can then easily create a new lvol with the size you want and mount that new lvol to a mountpoint.
Once you have determined that you have space, you can try to run sam and have sam do all the steps for you.
I just posted the manual steps in a similiar thread... check it out:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x4bc4d1e5762fd5118fef0090279cd0f9,00.html
Good luck,
Steffi Jones
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2001 12:09 PM
04-13-2001 12:09 PM
Re: creating a file system (LVM 10.20)
Glenn,
To see if you have any free space do "vgdisplay -v vg00". Under the --volume groups -- heading you will see "Free PE". Also look at "PE size" This is 4mb by default but may be different for your system. If you do have free PE's next look at the end of the vgdisplay for -- Physical Volumes - This will show the free space on each disk. If you have disk mirroring you will want to make sure you have adequate space on two disk to hold your file system.
If your physical volumes looked like this for example;
PV Name /dev/dsk/cXtXd0
PV Status available
Total PE 1023
Free PE 100
PV Name /dev/dsk/cYtYd0
PV Status available
Total PE 1023
Free PE 100
You would have 100*4mb = 400mb free on each disk. If you have free space then to create the file system you would do the following;
lvcreate -n {lvol_name} /dev/vg00
{lvol_name} = name you want for the lvol
Creating without a size will allow you to extend to the disk you want rather than letting the system do it. next;
lvextend -L {size in mb} /dev/vg00/{lvol_name} /dev/dsk/cXtXd0
create the file system structure by doing;
newfs -F vxfs /dev/vg00/r{lvol_name}
Use "r" for raw. If you want an HFS filesystem substitute hfs for vxfs.
create your mount point using mkdir
mount your file system;
mount /dev/vg00/{lvol_name} /{mount point}
Add your file system to /etc/fstab so it will be mounted on the next boot.
if you have mirroring then you need to extend onto the second disk;
lvextend -m 1 /dev/vg00/{lvol_name} /dev/dsk/cYtYd0
To see if you have any free space do "vgdisplay -v vg00". Under the --volume groups -- heading you will see "Free PE". Also look at "PE size" This is 4mb by default but may be different for your system. If you do have free PE's next look at the end of the vgdisplay for -- Physical Volumes - This will show the free space on each disk. If you have disk mirroring you will want to make sure you have adequate space on two disk to hold your file system.
If your physical volumes looked like this for example;
PV Name /dev/dsk/cXtXd0
PV Status available
Total PE 1023
Free PE 100
PV Name /dev/dsk/cYtYd0
PV Status available
Total PE 1023
Free PE 100
You would have 100*4mb = 400mb free on each disk. If you have free space then to create the file system you would do the following;
lvcreate -n {lvol_name} /dev/vg00
{lvol_name} = name you want for the lvol
Creating without a size will allow you to extend to the disk you want rather than letting the system do it. next;
lvextend -L {size in mb} /dev/vg00/{lvol_name} /dev/dsk/cXtXd0
create the file system structure by doing;
newfs -F vxfs /dev/vg00/r{lvol_name}
Use "r" for raw. If you want an HFS filesystem substitute hfs for vxfs.
create your mount point using mkdir
mount your file system;
mount /dev/vg00/{lvol_name} /{mount point}
Add your file system to /etc/fstab so it will be mounted on the next boot.
if you have mirroring then you need to extend onto the second disk;
lvextend -m 1 /dev/vg00/{lvol_name} /dev/dsk/cYtYd0
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP