- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: create new logical volume not appear at fstab
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-19-2006 10:10 PM
06-19-2006 10:10 PM
create new logical volume not appear at fstab
I manage to create new logical volume under vg00/lvol9 online .
When I go to single user mode to run another diff command and go back to multiuser mode, the new directory under this lvol was missing in bdf command.
Run lvdisplay -v /dev/vg00/lvol9 it was exist.
Go back tu single user mode to run again lvextend command to the same lvol9 sucessfull.
Bdf also exist.
But when vi /etc/fstab this lvol9 not exist.
Check from vgdisplay and lvdisplay -v comamnd it was exist.
Hope you guys understand. Pls advice
Fauziah Mahdan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2006 10:18 PM
06-19-2006 10:18 PM
Re: create new logical volume not appear at fstab
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2006 10:23 PM
06-19-2006 10:23 PM
Re: create new logical volume not appear at fstab
# lvcreate -n lvoldata vg02
# lvextend -L 150 /dev/vg02/lvoldata /dev/dsk/c1t1d0
If you need a filesystem construct it according to
# newfs -F vxfs /dev/vg02/rlvoldata
You may use specific options, e.g. to support largefiles:
# newfs -F vxfs -o largefiles /dev/vg02/rlvoldata
See also newfs(1M) and newfs_vxfs(1M) .
Mount it at the desired directory:
# mount /dev/vg02/lvoldata /mountdirectory
For specific mount option examples look into the /etc/fstab, fstab(4) or consult mount_vxfs(1M).
Check:
# bdf
NOTE: Do not forget to add an appropriate entry in the /etc/fstab, fstab(4), if you want the logical volume automatically mounted on system start-up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2006 10:24 PM
06-19-2006 10:24 PM
Re: create new logical volume not appear at fstab
I guess u r missing something while doing this activity. Please follow the example below and do the needful.
Example:
Create a logical volume lvoldata of size 150 MB in volume group /dev/vg02 so that all physical extents are on /dev/dsk/c1t1d0:
# lvcreate -n lvoldata vg02
# lvextend -L 150 /dev/vg02/lvoldata /dev/dsk/c1t1d0
If you need a filesystem construct it according to
# newfs -F vxfs /dev/vg02/rlvoldata
You may use specific options, e.g. to support largefiles:
# newfs -F vxfs -o largefiles /dev/vg02/rlvoldata
See also newfs(1M) and newfs_vxfs(1M) .
Mount it at the desired directory:
# mount /dev/vg02/lvoldata /mountdirectory
For specific mount option examples look into the /etc/fstab, fstab(4) or consult mount_vxfs(1M).
Check:
# bdf
NOTE: Do not forget to add an appropriate entry in the /etc/fstab, fstab(4), if you want the logical volume automatically mounted on system start-up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2006 10:29 PM
06-19-2006 10:29 PM
Re: create new logical volume not appear at fstab
If you create a new logical volume from the command line, you should add an entry in the /etc/fstab yourself. If you use SAM, sam will add the entry in the fstab for you.
# lvcreate -n lvol9 /dev/vg00
# lvextend -L 1000 /dev/vg00/lvol9
# newfs -F vxfs /dev/vg00/rlvol9
# mkdir new_mount_point
# mount /dev/vg00/lvol9 /new_mount_point
add an entry in the /etc/fstab for lvol9
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2006 10:40 PM
06-19-2006 10:40 PM
Re: create new logical volume not appear at fstab
1) lvcreate -n lvol9 /dev/vg00
2)lvextend -L 15360 /dev/vg00/lvol9
3)newfs -F vxfs /dev/vg00/rlvol9
4) mkdir /oracle
5)mount /dev/vg00/lvol9 /oracle
The problem is 1st time did it was not in single user mode. Everything was perfect until I need to go to single user mode to run another extend at existing filesystem.
Then when I go back to user mode the directory that I create new one was missing.
Go back to single user mode rerun the step start at no 2 till the end then reboot the server. Teh new directory /oracle was there.
But vi fstab no exist.
Pls guide
I am afraid loosing the content in oracle directory again.
fauziah
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2006 10:49 PM
06-19-2006 10:49 PM
Re: create new logical volume not appear at fstab
After you create the filesystem manually (Not using SAM) you need to edit /etc/fstab and put the entry in there.
If you reboot and come up in single user mode the filesystem probably will not mount. You need to manually mount it
eg mount /oracle.
Cheers John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2006 10:57 PM
06-19-2006 10:57 PM
Re: create new logical volume not appear at fstab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2006 10:59 PM
06-19-2006 10:59 PM
Re: create new logical volume not appear at fstab
Everybody keep inform me the last step that I missed.
add an appropriate entry in the /etc/fstab.
ok friends I will follow the advice. Tomorrow will add the entry. Am I will loosing the content of /oracle directory if I need to reboot the server without adding any entry at fstab file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2006 11:14 PM
06-19-2006 11:14 PM
Re: create new logical volume not appear at fstab
Bill Hassell, sysadmin