Operating System - HP-UX
1827293 Members
1305 Online
109717 Solutions
New Discussion

Re: Checking RAW Filesystem

 
Amit Dixit_2
Regular Advisor

Checking RAW Filesystem

Hi,
What is the command to check raw filesystem on
on the system and their size.

Thank,
Amit
5 REPLIES 5
Pete Randall
Outstanding Contributor

Re: Checking RAW Filesystem

Amit,

Raw generally refers to devices, although you can have raw logical volumes. In the case of raw devices, "ll /dev/rdsk" will identify them and "diskinfo /dev/rdsk/cNtNdN" will report their size. In the case of raw logical volumes, "ll /dev/vg*/rlvol*" will identify them and lvdisplay will tell you their size.


Pete

Pete
Robert-Jan Goossens
Honored Contributor

Re: Checking RAW Filesystem

Hi Amit,

You could use the lvdisplay command to check the size of the raw volume, works the same as for volums with a filesystem.

test the swap volume.

# lvdisplay -v /dev/vg00/lvol2

Regards,
Robert-Jan
Franky_1
Respected Contributor

Re: Checking RAW Filesystem

Hi,

i think to meet your requirements you should do the following

lvdisplay (-v) /dev/vgXX/lvolXX

Regards

Franky
Don't worry be happy
G. Vrijhoeven
Honored Contributor

Re: Checking RAW Filesystem

Hi Amit,

The lvdisplay /dev/vg/lvol will provide the size. If you want the know how full it is i guess you need to contact your DBA ( I assume it is used by a database).

Regards,

Gideon
A. Clay Stephenson
Acclaimed Contributor

Re: Checking RAW Filesystem

The terms "raw" and "filesystem" are mutually exclusive. Raw devices (whole disks, disk slices, or logical volumes) only have meaning to the applications accessing them. As noted, you can use lvdisplay -v to display the size of a raw logical volume. If you are using something other than an LVM logical volume then diskinfo might be useful or the VxVM equivalent to lvdisplay.

Another simple check to see if the underlying media is okay is a dd.

e.g.
dd if=/dev/vg01/rlvol1 bs=64k of=/dev/null
If it ain't broke, I can fix that.