- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: fsadm -b
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
09-30-2005 06:01 AM
09-30-2005 06:01 AM
I've done the following so far:
pvcreate /dev/rdsk/c9t1d0
vgextend /dev/vg09 /dev/dsk/c9t1d0
vgdisplay -v /dev/vg09 to verify disk added
The total PE (Physical extents) is 12156 and the Allocated PE is 10557.
Note: We have online JFS.
Now I want to extend the logical volume:
lvextend -l 12156 /dev/vg09/lvol1
Then I need to extend the File System.
Is this the correct command?
fsadm -F vxfs -b
AND HOW do I calculate the sectors?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2005 06:14 AM
09-30-2005 06:14 AM
Re: fsadm -b
If you do:
# fstyp -v /dev/vgNN/lvolX
...and look at the value of 'f_frsize' you will have the VxFS block (sector) size. This will be a power of two starting at 1024 (the usual value).
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2005 06:31 AM
09-30-2005 06:31 AM
Re: fsadm -b
fsadm -F vxfs -b
Say you want to extend a filesystem to 512MB.
fsadm -F vxfs -b 512m /filesystem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2005 06:32 AM
09-30-2005 06:32 AM
Re: fsadm -b
What is the PE_Size? The multiplication of PE_Size and no. of PE's will give you the new file system size in MB.
No. of sectors will be got by dividing this size by sector size.
Also you can define the size in MB as well in the command line itself.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2005 06:35 AM
09-30-2005 06:35 AM
Re: fsadm -b
I did the fstyp and found that the block size is 8192. To calculate the number of sectors for the entire disk do I just mulitply that by the total number of PE's?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2005 06:36 AM
09-30-2005 06:36 AM
Re: fsadm -b
example
if I wanted to add 4gb to a 4gb lv I would do
lvextend -L $(( 4096+4096)) /dev/vg/lv
fsadm -F vxfs -b $(( (4096 + 4096) * 1024)) /fs
what you can do is lvdisplay your logical volume.
and take the MB size and put it in fsadm
LV Size (Mbytes) 300
fsadm -F vxfs -b 300m /fs
or
fsadm -F vxfs -b $((300 * 1024)) /fs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2005 06:43 AM
09-30-2005 06:43 AM
Re: fsadm -b
PE size 32
* # of PE's 1599
-----
= 51168
* 1024
-----
= 52,396,032
==========
So my command would be
fsadm -F vxfs -b 52396032 /u03/oradata
or
fsadm -F vxfs -b 51158M /u03/oradata
The disk I'm adding is 50 GB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2005 06:48 AM
09-30-2005 06:48 AM
Re: fsadm -b
So "12156 (number of LE) * 32 (PE size)" = 388992 MB. Is that correct?
So to extend the filesystem:
fsadm -b 388992m /u03/oradata
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2005 06:50 AM
09-30-2005 06:50 AM
Re: fsadm -b
No this is not correct.
You need to give the final size not the size by which you are extending.
So here the command should be
#fsadm -F vxfs -b 388992m /u03/oradata
(Where your LVOL size is currently 388992 MB).
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2005 06:56 AM
09-30-2005 06:56 AM
Re: fsadm -b
So yes it is:
PE size 32
# PE's 12156
--------
388992
* 1024
--------
398,327,808
So now the command would be either:
fsadm -F vxfs -b 398327808 /u03/oradata
or
fsadm -F vxfs -b 38892M /u03/oradata
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2005 06:58 AM
09-30-2005 06:58 AM
Re: fsadm -b
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2005 07:00 AM
09-30-2005 07:00 AM
Re: fsadm -b
#fsadm -F vxfs -b 388992m /u03/oradata
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2005 07:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2005 07:16 AM
09-30-2005 07:16 AM
Re: fsadm -b
No math woohoo!
Worked like a charm.
Thanks everyone for the input.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2005 07:19 AM
09-30-2005 07:19 AM
Re: fsadm -b
By the way I used an "M" and not an "m" in the fsadm command.
It worked.