- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- vxfs fsadm: write failure
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
03-05-2004 03:22 AM
03-05-2004 03:22 AM
Server: HPUX 11.0 OnlineJFS 3.3 Version 4
I am trying to increase the size of one file system after I reduced the size of another file system that are on the same volume group
(vg01). When I tried to increase disk space it failed with this error.
# fsadm -F vxfs -b 4096000 /u01
vxfs fsadm: /dev/vg01/rlvu01 is currently 3145728 sectors - size will be increased
vxfs fsadm: write failure at block 8290302 : No such device or address
10 points to any good answer.
TIA, Gino
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2004 03:26 AM
03-05-2004 03:26 AM
SolutionYOu didn't run 'lvextend' prior to using fsadm. If you didn't then you are not specifying the exact size in fsadm that you used with your lvextend. It is convenient to use 'm' suffix to the size so that there won't be any confusion.
lvextend -L 4096 /dev/vgxx/lvolx
fsadm -b 4096m /u01
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2004 03:27 AM
03-05-2004 03:27 AM
Re: vxfs fsadm: write failure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2004 03:27 AM
03-05-2004 03:27 AM
Re: vxfs fsadm: write failure
Did you run the lvextend command first on the logical volume on which the /u01 file system is placed?
First,
lvextend -L 4000 /dev/vgXX/lvolY
then,
fsadm -F vxfs -b $((4000*1024)) /u01
If you use the $(( )) syntax, then you let the shell do the math for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2004 03:27 AM
03-05-2004 03:27 AM
Re: vxfs fsadm: write failure
I strongly recommand taking full backup prior to this.
For the lvol where you reduced the size.
fsadm -F vxfs -b "new_size_in_MB" /mount_point
lvreduce -L "size_in_MB" /dev/vgxx/lvolxx
Then check vgdisplay and see if free PE have increased or not?
If the free space is there then you do lvextend and then fsadm.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2004 03:29 AM
03-05-2004 03:29 AM
Re: vxfs fsadm: write failure
Here's what I ran in sequential order:
lvextend -L 1024 /dev/vg01/lvu01
(this was too small an allocation).
lvextend -L 4096 /dev/vg01/lvu01
vgdisplay /dev/vg01
fsadm -F vxfs -b 4096000 /u01
10 points to any good answer.
TIA, Gino
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2004 03:32 AM
03-05-2004 03:32 AM
Re: vxfs fsadm: write failure
I did successfully reduce the size of a different file system before I tried to increase the size of the file system. There were no errors and a 'bdf' shows the reduced size now.
10 points to any good answer.
TIA, Gino
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2004 03:33 AM
03-05-2004 03:33 AM
Re: vxfs fsadm: write failure
Also, try lvextend first and then fsadm. I would recommend doing backups of both file system prior doing all these.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2004 03:35 AM
03-05-2004 03:35 AM
Re: vxfs fsadm: write failure
Find if the lvol is actually at 4096MB size by doing 'lvdisplay /dev/vgxx/lvolx'. If so, you should be able to extend.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2004 03:50 AM
03-05-2004 03:50 AM
Re: vxfs fsadm: write failure
lvextend -L 4096 /dev/vg01/lvu01
fsadm -F vxfs -b $((4096*1024)) /u01
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2004 03:50 AM
03-05-2004 03:50 AM
Re: vxfs fsadm: write failure
lvdisplay /dev/vg01/lvu01
--- Logical volumes ---
LV Name /dev/vg01/lvu01
VG Name /dev/vg01
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 3072
Current LE 768
Allocated PE 768
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
10 points to any good answer.
TIA, Gino
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2004 03:52 AM
03-05-2004 03:52 AM
Re: vxfs fsadm: write failure
There you go
LV Size (Mbytes) 3072
Your previous 'lvextend' was not successful or you didn't run. Once the LV is extended, then only you can extend the filesystem on it.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2004 04:01 AM
03-05-2004 04:01 AM
Re: vxfs fsadm: write failure
I ran it this time and it seems to be successful.
bosov2 / # # fsadm -F vxfs -b 4194304 /u01
bosov2 / #
I didn't see any errors but a 'bdf' shows the same size as before. Should I run the
'fsadm' command again?
/dev/vg01/lvu01 3145728 1898601 1170525 62% /u01
10 points to any good answer.
TIA, Gino
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2004 04:05 AM
03-05-2004 04:05 AM
Re: vxfs fsadm: write failure
1) fsadm -b filesystemA using a smaller value
2) lvreduce filesystemA's LVOL
3) lvextend filesystemB's LVOL
4) fsadm -b filesystemB using a larger value
Anything else is simply wrong.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2004 04:05 AM
03-05-2004 04:05 AM
Re: vxfs fsadm: write failure
You should have seen a message '...size will be increased'.
It doesn't hurt to run fsadm again. Worst the case it is going to error out.
-Sri
PS: You don't need to say '10 points to any good answer'. People here will respond whether you assign points or not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2004 04:09 AM
03-05-2004 04:09 AM
Re: vxfs fsadm: write failure
I think we are confused here.
Please let us know following.
1. what was the original size of /u01?
2. What will be the final size for this LV?
3. What is the situation now.
4. What commands u ran to accomplish that.?
Thanks,
-Piyush.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2004 04:25 AM
03-05-2004 04:25 AM
Re: vxfs fsadm: write failure
I ran 'lvextend' again and it failed most likely because there's not enough allocatable space available.
bosov2 / # lvextend -L 4096 /dev/vg01/lvu01
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg01/lvu01" could not be extended.
Failure possibly caused by strict allocation policy
10 points to any good answer.
TIA, Gino
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2004 04:27 AM
03-05-2004 04:27 AM
Re: vxfs fsadm: write failure
If no space is available in vg, then allocate and try to extend the LV.
Thanks
-pap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2004 04:34 AM
03-05-2004 04:34 AM
Re: vxfs fsadm: write failure
I believe we are going in rounds and rounds.
1. Your lvextend later was successful.
lvextend -L 4096 /dev/vg01/lvu01
Confirm it first with 'lvdisplay /dev/vg01/lvu01' again.
2. Run fsadm
fsadm -F vxfs -b 4194304 /u01
or
fsadm -F vxfs -b 4096m /u01
You should see a message "... will be increased" there.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2004 04:35 AM
03-05-2004 04:35 AM
Re: vxfs fsadm: write failure
I used a smaller amount of disk space and I ran those two commands successfully.
I guess the rule here is to check how much
space is available regardless of what has been reduced/extended on a volume group.
lvextend -L 3500 /dev/vg01/lvu01
Logical volume "/dev/vg01/lvu01" has been successfully extended.
Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf
fsadm -F vxfs -b $((3500*1024)) /u01
vxfs fsadm: /dev/vg01/rlvu01 is currently 3145728 sectors - size will be increased
bosov2 / # bdf /u01
Filesystem kbytes used avail %used Mounted on
/dev/vg01/lvu01 3584000 1898714 1581299 55% /u01
10 points to any good answer.
TIA, Gino
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2004 04:50 AM
03-05-2004 04:50 AM
Re: vxfs fsadm: write failure
-b 4096M for 4096 MB. This makes it a bit easier if you use the -L option to lvextend because the numbers are the same.
If you don't use the "M" bit in your blocksize, remeber that doing the calculation for number of blocks depends on the block size the filesystem was created with which you can determine with "mkfs" with the "-n" option.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2004 04:54 AM
03-05-2004 04:54 AM
Re: vxfs fsadm: write failure
I apologize for the confusion. Hopefully I have it right now.
Thank you for all your help!
10 points to any good answer.
TIA, Gino