Operating System - HP-UX
1825804 Members
2413 Online
109687 Solutions
New Discussion

vxfs fsadm: /dev/vg01/lvol1 is not the root inode of a vxfs file sytem

 
SOLVED
Go to solution
Oleg Mercader-Kashin
Frequent Advisor

vxfs fsadm: /dev/vg01/lvol1 is not the root inode of a vxfs file sytem

Hi All,

I try to desfrag the disk as following:

/sbin/umount /dev/vg01/lvol1
/usr/sbin/fsadm -F vxfs -s -e -d /dev/vg01/lvol1

but get the error msg:
vxfs fsadm: /dev/vg01/lvol1 is not the root inode of a vxfs file sytem

Sorry but I don't understand what is wrong...
I have a HP 9000/800 HP-UX 11.0.
11 REPLIES 11
RAC_1
Honored Contributor
Solution

Re: vxfs fsadm: /dev/vg01/lvol1 is not the root inode of a vxfs file sytem

/usr/sbin/fsadm -F vxfs -s -e -d /dev/vg01/rlvol1

you need to put in raw vol name.
There is no substitute to HARDWORK
RAC_1
Honored Contributor

Re: vxfs fsadm: /dev/vg01/lvol1 is not the root inode of a vxfs file sytem

/usr/sbin/fsadm -F vxfs -s -e -d /dev/vg01/rlvol1

you need to put in raw vol name.

And if that does not work, then just extendfs will do just fine.
There is no substitute to HARDWORK
Robert-Jan Goossens_1
Honored Contributor

Re: vxfs fsadm: /dev/vg01/lvol1 is not the root inode of a vxfs file sytem

Oleg,

If you have OnlineJFS installed try this.

# /sbin/mount /dev/vg01/lvol1
# /usr/sbin/fsadm -F vxfs -s -e -d /mountpoint

Best regards,
Robert-Jan
Oleg Mercader-Kashin
Frequent Advisor

Re: vxfs fsadm: /dev/vg01/lvol1 is not the root inode of a vxfs file sytem

Thx a lot, probably a raw device! I'll check it the next night.
Oleg Mercader-Kashin
Frequent Advisor

Re: vxfs fsadm: /dev/vg01/lvol1 is not the root inode of a vxfs file sytem

No, with the raw device I've got the same msg :-(
HELP!
Geoff Wild
Honored Contributor

Re: vxfs fsadm: /dev/vg01/lvol1 is not the root inode of a vxfs file sytem

Yes - you don't defrag the lvol - you defrag the mount point...

Here's a little script for you:

# cat /usr/local/bin/fsadm.defrag
#!/bin/sh
# defrag all mounted file systems
LOG=/tmp/fsadm.defrag.log
if [ -f $LOG ]
then
mv $LOG $LOG.old
fi
cat /dev/null > $LOG

for i in `mount -l | grep -v stand |awk '{print $1}'`
do
echo "defraging " $i "at "`date` >> $LOG
fsadm -F vxfs -d -D -e -E $i >> $LOG
done


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Devender Khatana
Honored Contributor

Re: vxfs fsadm: /dev/vg01/lvol1 is not the root inode of a vxfs file sytem

Hi,

A file system should be mounted when you are defragmenting it and the target mount point should be defined as the option with -d.

man fsadm_vxfs for details.

HTH,
Devender
Impossible itself mentions "I m possible"
Muthukumar_5
Honored Contributor

Re: vxfs fsadm: /dev/vg01/lvol1 is not the root inode of a vxfs file sytem

Are you sure that /dev/vg01/lvol1is using vxfs.

Check this first:

# fstyp /dev/vg01/lvol1

Then,

# fsadm -F vxfs -e -s -E

will do it.

--
Muthu
Easy to suggest when don't know about the problem!
Oleg Mercader-Kashin
Frequent Advisor

Re: vxfs fsadm: /dev/vg01/lvol1 is not the root inode of a vxfs file sytem

# fstyp /dev/vg01/lvol1
vxfs
# fsadm -F vxfs -e -s -t 10 -E /datos
fsadm: the -e option requires "HP OnLineJFS (Advanced Vxfs)"

But I haven't OnlineJS so seems that only can do a desfrag offline.... :-(
Geoff Wild
Honored Contributor

Re: vxfs fsadm: /dev/vg01/lvol1 is not the root inode of a vxfs file sytem

That is correct, from man fsadm_vxfs "The online reorganization and online resize features of fsadm are
available only with the HP OnLineJFS product."

You will need to purchase OnlineJFS (well worth it - though I wish HP included it free across all OE's - not just Enterprise and MC - like AIX does).

Rgds...Geoff

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Oleg Mercader-Kashin
Frequent Advisor

Re: vxfs fsadm: /dev/vg01/lvol1 is not the root inode of a vxfs file sytem

OK, thx a lot, I'll look for OpenJFS.