- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- need to create 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
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
07-13-2004 07:02 AM
07-13-2004 07:02 AM
need to create a filesystem
I appreciate if you give me the procedures you use to do this. Seems like my OnlineJFS is not working correctly.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2004 07:07 AM
07-13-2004 07:07 AM
Re: need to create a filesystem
# vgdisplay -v /dev/vg02 | egrep "^Free PE|PE Size"
Multiply Free PE and PE size, the result should be >= 200MB.
2) Create the LV
# lvcreate -L 100 -n dump /dev/vg01
3) Create the file system
# newfs -F vxfs /dev/vg01/rdump
4) Mount it
# mount -F vxfs /dev/vg01/dump /mnt
5) extend the lv to 200 MB.
# lvextend -L 200 /dev/vg01/dump
6) increase the FS
# fsadm -F vxfs -b 200m /mnt
7) done.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2004 07:07 AM
07-13-2004 07:07 AM
Re: need to create a filesystem
# lvcreate -n dump /dev/vg02
# lvextend -L 100 /dev/vg02/dump
# newfs -F vxfs /dev/vg02/rdump
# mkdir /dump
# mount /dev/vg02/dump /dump
This should be okay, someone can fix the size.
# fsadm -F vxfs -b
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2004 07:11 AM
07-13-2004 07:11 AM
Re: need to create a filesystem
1. lvcreate -L 100 vg02
Then you get the block and raw device as the output of the command, lets assume it is /dev/vg02/lvolX.
2. newfs -F vxfs /dev/vg02/rlvolX
3. if it is a temporary FS then just mount it in /mnt: mount /dev/vg02/lvolX /mnt.
If it is perminent add a record to the /etc/fstab file.
4. Extend the logical volume:
lvextend -L 200 /dev/vg02/lvolX.
5. Extend the FS using online JFS:
fsadm -F vxfs -b 204800 /mnt (or the other moint point).
* (For the future - If the FS is in 100% for some reason then the fsadm command fails. You have to clean some space and run it again).
6. If you have a provblem with the online JFS you can umount, use extendfs -F vxfs /dev/vg02/rlvolX, and re-mount.
Good Luck !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2004 07:13 AM
07-13-2004 07:13 AM
Re: need to create a filesystem
If you're using the proper procedures & it still won't extend the FS on the fly, then check to make sure the the vxadv driver is in the kernel. using SAM is the easiest way.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2004 07:19 AM
07-13-2004 07:19 AM
Re: need to create a filesystem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2004 07:23 AM
07-13-2004 07:23 AM
Re: need to create a filesystem
fsadm -F vxfs -b 1024*Size_MB's /mountpoint
-F vxfs creates the file system as a vxfs filesystem type.
-b is block size so it's 1024*200 (if I were to use your 200MB example)
I noticed someone else used the -b 200m for megabytes. I've learned something new, like usual. And can't find it refered to in the man page.
Figured I would add this incase your scenerio were example numbers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2004 07:51 AM
07-13-2004 07:51 AM
Re: need to create a filesystem
This is my error message. I think when I used the fsadm -F vxfs -b 200 /testfs
the -b is not the right option?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2004 08:11 AM
07-13-2004 08:11 AM
Re: need to create a filesystem
I always use -b blocks. The fsadm_vxfs man pages more or less spells out the formula.
# fsadm -F vxfs -b 209715 /dump
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2004 08:15 AM
07-13-2004 08:15 AM
Re: need to create a filesystem
Where did you get that number, 209715? How do you convert from 200MB to blocks?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2004 08:15 AM
07-13-2004 08:15 AM
Re: need to create a filesystem
# fsadm -F vxfs -b 204800 /dump
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2004 08:22 AM
07-13-2004 08:22 AM
Re: need to create a filesystem
I set up the initial filesystem as 10MB. Now, I did this
fsadm -F vxfs -b 20480 /dump
I did a vgdisplau -vg02 and it showed that it is a PE of 16. Does that make a difference?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2004 08:23 AM
07-13-2004 08:23 AM
Re: need to create a filesystem
fsadm: cannot shrink /dev/vg02/dump - upgrade fs - inodes currently in use.
This is my error message. I think when I used the fsadm -F vxfs -b 200 /testfs
You are getting this error message because the filesystem is obviously more than 200 blocks - suffix "m" to 200 and try again
fsadm -F vxfs -b 200m /testfs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2004 08:26 AM
07-13-2004 08:26 AM
Re: need to create a filesystem
fsadm -F vxfs -b 20480 /dump
/dev/vg01/rdump is currently xxx sectors - size will be increased
write failure at block 4214782: no such device or address.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2004 06:13 PM
07-13-2004 06:13 PM
Re: need to create a filesystem
You said you are getting this error
" fsadm -F vxfs -b 20480 /dump
/dev/vg01/rdump is currently xxx sectors - size will be increased
write failure at block 4214782: no such device or address "
I can see in your first post you were trying to extend /dump in vg02 then howcome you are getting error for vg01 or is it typing mistake in your last post ?
Dou you also have /dump in vg01.. ?
Is it giving any error number if yes could you post it..
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2004 03:51 AM
07-14-2004 03:51 AM
Re: need to create a filesystem
Its my typo. Its actually at /dev/vg02/... and where I am getting this error.
Too many things going on in my mind.
Anyone have any input on why I am getting this error, when I am using 1024*MB.
Lets say I set up the filesystem with 10MB. I wanted to increase to 20MB, that means I would use
fsadm -F vxfs -b 20480 /dump
By the way, I created another 10MB file system and called it /testfs. I then try to extend it using
fsadm -F vxfs -b 20480 /testfs
and am getting the same error message. I thought fsadm can do it on the fly? By the way, I caught where there are versions 3 and version 4 and these correspond to the type of filesystem, would this make a difference here? How do I find the version of my filesystem?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2004 07:05 AM
07-15-2004 07:05 AM
Re: need to create a filesystem
This is what I did:
lvcreate -n test /dev/vg02
lvextend -L 10 /dev/vg02/test
newfs -F vxfs /dev/vg02/rtest
mkdir /test
mount /dev/vg02/test /test
fsadm -F vxfs -b 20480 /test
The error messages I am getting is probably related to the -b 20480 value. As you can see, I made the size of this filesystem 10MB, but a BDF on vg02 shows a PE size of 16MB.
The error msg is:
fsadm: /dev/vg02/rtest is currently 16384 sectors - size will be increased
write failure at block 4214782: no such device or address.
Why am I getting the 'write failure at block 4214782'?
I tried the -b 32768 and got the same error. I am not sure why its showing a write failure at block...? Any help here?
Thanks...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2004 04:58 PM
07-15-2004 04:58 PM
Re: need to create a filesystem
The answer to your first question i.e.
How to know the version is
fstyp -v /mountpoint
This should tell you the filesystem version.
And for your last post i will like to know the O.S. and bundle patch version as i think
a patch could fix this as whatever you are doing is correct and still you are getting the same error.
I have heard of some patches for fsadm to fix resizing problems but not exactly know the numbers.
I will try to get the numbers if you give the O.S and bundle patch details of yours.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2004 06:16 AM
07-19-2004 06:16 AM
Re: need to create a filesystem
Ok, my OS is 11.0 and the Bundle we have on the server is Sept 2003. The plan is for March 2004 to be installed this coming weekend.
When I did the fstyp -v, I see the version is a 3, and I believe I saw a version 4 for onlineJFS. I am not sure this would cause the problem I am having, but when I:
fsadm -F vxfs -b 20480 /testfs
I get this error msg:
fsdam: /dev/vg02/rtest is currently 16384 sectors - size will be increased.
write failure at block 4214782: no such device or address.
Not sure what failure at block 4214782 indicates?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2004 06:34 AM
07-19-2004 06:34 AM
Re: need to create a filesystem
I would suggest using a smaller size then adding MBs upto the max you want...
if the FS is unmounted i would suggest to use extendfs since it will claim all the space you allocated via lvextend...
You dont need to specify the bytes with extendfs IIRC.(if I remember correctly)
FROM THE MANPAGE:
#man extendfs
SYNOPSIS
/usr/sbin/extendfs [-F FStype] [-q] [-v] [-s size] special
-s size Specifies the number of DEV_BSIZE blocks to be added to
the file system. If size is not specified, the maximum possible size is used.