cancel
Showing results for 
Search instead for 
Did you mean: 

Invalid file system swap

Wolfgang Thiele
Occasional Contributor

Invalid file system swap

Hi,
on HP-UX 11.23 :
#lvextend -L 700 /dev/vg00/lvol3
Warning: rounding up logical volume size to extent boundary at size "704" MB.
Logical volume "/dev/vg00/lvol3" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

#fsadm -b 716800 /
fsadm: Invalid file system swap

What can i do?
10 REPLIES
Michal Kapalka (mikap)
Honored Contributor

Re: Invalid file system swap

hi,

fsadm could be used only on mounted file systems for example /home ....

you need to go to the single user mode,

and them use extendfs, but the swap space should be continues.

In my opinion i will create aditional swap ( second swap ) and them adding it to the /etc/fstab

mikap
sujit kumar singh
Honored Contributor

Re: Invalid file system swap

Hi could you please post the O/P of swapinfo -tam and cat /etc/fstab and bsd O/ps.
regards
sujit
Nido
Trusted Contributor

Re: Invalid file system swap

Hi,

You should have Contiguous free space available to increase the primary swap area.
I'm sure in this case, you will not be having Contiguous free space.

>>>>#fsadm -b 716800 /
>>>>fsadm: Invalid file system swap
Above command shouldn't be used for swap area. swap doesn't hold any FileSystem.


Take a look on the documents for more details:

http://docs.hp.com/en/B2355-90672/ch06s07.html?btnNext=next%A0%BB


HTH
" Let Villagers Be Happy!! "
Basheer_2
Trusted Contributor

Re: Invalid file system swap

Hello,

This is the easy way.

first find out the existing swap space using

swapinfo -tam

decide if you are using space from vg00 or you are using a one from your SAN.

now go to sam

sam

select Disks and File systems
select logical volume
(it will display all of your lvs)
goto actions ( By hitting the Tab key, you can scroll around)

Select Create
Select your volume group (say vg00)
Select Define New Logical Volume
for LV Name: lvswap1
for LV Size: 20480 (i.e 20 MB of SWAP)
Modifyl LV Defaults
tab around and select Contiguous and OK
Usage: Select Swap Device
Swap Priority: select 1
Select Add
Select OK
Select OK
Tab and File and Exit

You need to reboot, Everything else is OK

Let me know if you need more detail information.

fo verify after reboot

swapinfo -tam

Sajjad Sahir
Honored Contributor

Re: Invalid file system swap

Dear friend

if u need u can create a device swap
lvcreate -C y -n swapanme -L size -m 1 /dev/vg00
activate the swap by using swapon -a

if u want this swap next reboot onwards
make an entry in /etc/fstab file

understand fsadm will work only mount file system only. also if online jfs is there u can use this command to extend the file system other wise u have to use extendfs command

thanks and regards
Sajjad sahir
Wolfgang Thiele
Occasional Contributor

Re: Invalid file system swap

Hi, thanks for your answers.
I can not reboot the system!

fsadm -b .... / I used it on other systems with out downtime.

#swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 1 4095 0% 0 - 1 /dev/vg00/lvol2
dev 13984 1 13983 0% 0 - 1 /dev/vgswap/lvol1
dev 14001 1 13999 0% 0 - 1 /dev/dsk/c6t1d7
reserve - 11479 -11479
memory 16363 8724 7639 53%
total 48444 20206 28237 42% - 0 -


bdf /
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 524288 524096 192 100% /

Who have a idea?
Anoop P_2
Regular Advisor

Re: Invalid file system swap

==>bdf /
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 524288 524096 192 100% /<==

Let us remove the misconception

/dev/vg00/lvol3 is not swap, but the root file system.

This is usually a contiguous one:

--- Logical volumes ---
LV Name /dev/vg00/lvol3
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 2048
Current LE 128
Allocated PE 256
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation strict/contiguous
IO Timeout (Seconds) default

Depending on how the allocation was done at the time of installation, you may be able to extend this, but I have not really come across a situation where you use fsadm to make use of the additional space in the partition.

Any way, your utilization of / is already at 100% and fsadm would fail unless you manage to bring it down to lesser than 98%; ideally that is.

What is more important is to get things clearer. That you are not dealing with swap here, but only the root file system.


sujit kumar singh
Honored Contributor

Re: Invalid file system swap

Hi the swapinfo O/P.

dev 14001 1 13999 0% 0 - 1 /dev/dsk/c6t1d7

what is this? a swap created on the raw disk and that also without any VG or LV.
Please post the `cat /etc/fstab` O/P.

this is a device swap created with raw disk!

Also please try to find out if that disk belongs to what VG and for that VG please show the vgdisplay -v O/P.

Please attach the two O/Ps,. and yes as suggested the fsadm shall be failing with high probablity if teh FS being extended is 100% Full, so think of taking some unused files from /.

regards
sujit
Wolfgang Thiele
Occasional Contributor

Re: Invalid file system swap

Hi,
i not known the contex between file system swap and online expansion of filesystem / . I test the online expansion with lvextend and fsadm of other filesystem (/var). Thats was without problem.

Show the error:
#bdf /
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 524288 495624 28480 95% /
root@parzival:/daten1/icis.reports/okv #fsadm -b 716750 /
fsadm: Invalid file system swap

thanks and regards
Wolfgang Thiele
Wolfgang Thiele
Occasional Contributor

Re: Invalid file system swap

The solution of the problem is:
- reduce the usage of /
and / or
- #fsadm -F vxfs -b 704M /
vxfs fsadm: /dev/vg00/rlvol3 is currently 524288 sectors - size will be increased

#bdf /
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 720896 301912 415760 42% /