- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Replace a filesystem
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
Discussions
Discussions
Forums
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
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
тАО05-01-2009 08:46 AM
тАО05-01-2009 08:46 AM
Thanks
MSwift
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2009 08:52 AM
тАО05-01-2009 08:52 AM
Re: Replace a filesystem
This assumes you don't want to change any of the properties of the filesystem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2009 08:58 AM
тАО05-01-2009 08:58 AM
Re: Replace a filesystem
lvremove
lvcreate
newfs
lvextend -m 1
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2009 09:01 AM
тАО05-01-2009 09:01 AM
Re: Replace a filesystem
Similar to Dennis's suggestion, though, I would 'newfs' ('mkfs') the filesystem rather than recursively (and slowly) remove its contents:
# umount /app02
# mkfs -F vxfs -o largefiles /dev/vg03/lvol2
# mount /dev/vg03/lvol2 /usr/ed
Be sure to edit '/etc/fstab' to replace '/app02' with '/usr/ed'
This leaves all the underlying LVM configuration intact. LVM mirroring occurs at the logical volume level and the filesystem lies above that.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2009 11:30 AM
тАО05-01-2009 11:30 AM
Re: Replace a filesystem
Dear
1. umount the files sytem.
umount /app02
2. remove logical volume
by using lvremove
3. create new logical volume
lvcreate -L size /dev/vg03/lvol2
4.create new file system by using newfs command
5. create new dir /usr/ed
finally mount the file system in that dir.
thanks and regards
Sajjad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2009 03:11 PM
тАО05-01-2009 03:11 PM
Re: Replace a filesystem
MSwift.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2009 03:24 PM
тАО05-01-2009 03:24 PM
SolutionI tend to refer to 'mkfs' instead of 'newfs' only because though 'newfs' is a "friendly" front-end to the 'mkfs' the bulk of the information (options and arguments) can be found in the manpages for 'mkfs', as for example:
http://www.docs.hp.com/en/B3921-60631/mkfs_vxfs.1M.html
Regards!
...JRF...