- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- After re-creating lvol, bdf shows old size
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
Forums
Discussions
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
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
01-10-2002 01:51 PM
01-10-2002 01:51 PM
Problem is: bdf reports the old value of the lvol's size. I trimmed it WAY down from 1gb. to 100mb.
Is there a file that has the old value(s) and needs to be tweaked?
Thanks!
Brad
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2002 01:57 PM
01-10-2002 01:57 PM
Re: After re-creating lvol, bdf shows old size
Did you remove the LV (lvremove) and then recreate it (lvcreate)? Or did you do an lvreduce?
Did you use newfs or fsadm on the new LV? Is it hfs or vxfs?
A little more information would be helpful.
Can you show the output of bdf for the LV?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2002 01:57 PM
01-10-2002 01:57 PM
Re: After re-creating lvol, bdf shows old size
I assume you following the following steps after taking the backup of /usr1.
1. lvremove /dev/vg0x/lvolx
2. lvcreate -n lvolx -L 100 /dev/vg0x/lvolx
3. newfs -F vxfs /dev/vg0x/rvolx
4. Copy the data back
If you followed the above process, you should be seeing only 100MB. I see two possibilities with your problem
1. Either you mistakenly mentioned 1000 instead of 100 during the lvcreate OR
2. You didn't use the above procedure but lvreduced the same lvol without unmounting the
file system. If so, try to unmount and mount the file system again. If this doesn't fix the problem, following the above procedure.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2002 01:58 PM
01-10-2002 01:58 PM
Re: After re-creating lvol, bdf shows old size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2002 01:59 PM
01-10-2002 01:59 PM
Re: After re-creating lvol, bdf shows old size
2. lvcreate -n lvolx -L 100 /dev/vg0x
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2002 01:59 PM
01-10-2002 01:59 PM
Re: After re-creating lvol, bdf shows old size
Did you create a new file system with 'newfs' command ? Does the 'lvdisplay -v' shows the correct size ? Can you do an 'fsck'on the LV to correct the problem ?
These are the normal steps:
1)backup file system
2)Remove LV (lvremove)
3)Create new LV (lvcreate -L new_size)
4)Create file system (newfs)
5)Restore backup
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2002 01:59 PM
01-10-2002 01:59 PM
Re: After re-creating lvol, bdf shows old size
Did you remove the lv completely and then recreated it ?. It should not take anything from the old lv. There are two file in /dev/vg_name called lv_name and rlv_name. Here vg_name is the name of the VG to which this lv belongs and lv_name is the name of the lv. the rlv_name is the name of the raw file for the lv.
When you remove the lv, it removed both the files and that removes all the lv info. Then you create a new lv and it recreates the file and recreated the lv on the disk as per size specified. Then you do a "newfs" on this lv to create a new filesystem and then add this lv info in /etc/fstab to mount the lv automatically during system boot.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2002 02:08 PM
01-10-2002 02:08 PM
Re: After re-creating lvol, bdf shows old size
Here's the bdf output:
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol9 1024000 1363 958728 0% /usr2
I used SAM to remove the lvol and also to create the new lvol. The lvol type is vxfs. Since no one suggested that I use SAM, was SAM a mistake?
Per Sri's suggestion I unmounted and remounted the lvol, but to no avail.
Since I've not restored data, I can re-recreate it if need be.
Thanks for the helpful and speedy responses!
Brad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2002 02:12 PM
01-10-2002 02:12 PM
Re: After re-creating lvol, bdf shows old size
Using SAM is good for these tasks. Did you create a file system after creating the lvol ?
Can u do an lvdisplay -v /dev/vgxx/lvolx
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2002 02:13 PM
01-10-2002 02:13 PM
Re: After re-creating lvol, bdf shows old size
If it is a simple lv creation with no strings then it is okay to do the removal and recreation through SAM. Give it one more try. I still don't understand why it didn't work in the first place. Hope there was no error during the lv removal and recreation phase.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2002 02:16 PM
01-10-2002 02:16 PM
Re: After re-creating lvol, bdf shows old size
No problem doing this with SAM. Try doing this time with command line one more time since you havn't restored data. This would give you chance if there are any errors during each command.
What does lvdisplay -v /dev/vgnn/lvnn shows..??
Reduce the logical volume to the needed size:
# lvreduce -L [lv_size_MB] /dev/vgnn/lvolnn
-Goodluck
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2002 02:29 PM
01-10-2002 02:29 PM
Re: After re-creating lvol, bdf shows old size
Yes I can do a lvdisplay; the results are attached.
I guess I'm going to do a lvremove
lvcreate
newfs
We'll see what happens...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2002 02:34 PM
01-10-2002 02:34 PM
Re: After re-creating lvol, bdf shows old size
The lvdisplay shows the correct size of the file system. Try this:
# newfs -F fs_type /dev/vg00/rlvol9
# mount /dev/vg00/lvol9 /mount_dir
# bdf
Also do an fsck on the lvol for any errors.
# fsck /dev/vg00/rlvol9
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2002 02:42 PM
01-10-2002 02:42 PM
Re: After re-creating lvol, bdf shows old size
"# lvcreate -n lvol9 -L 100 /dev/vg00/lvolx
lvcreate: Volume group "/dev/vg00/lvolx" does not exist in the "/etc/lvmtab" fil
e."
I've attached /etc/lvmtab for your viewing pleasure.
What should I do now?
BAM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2002 02:45 PM
01-10-2002 02:45 PM
Re: After re-creating lvol, bdf shows old size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2002 02:46 PM
01-10-2002 02:46 PM
Re: After re-creating lvol, bdf shows old size
you lvdisplay output shows the size of the lv as 100MB.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2002 02:54 PM
01-10-2002 02:54 PM
Re: After re-creating lvol, bdf shows old size
lvdisplay looks good what about bdf..??
Try recreating lvmtab by vgscan. First have a copy of lvmtab then run vgscan
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2002 02:55 PM
01-10-2002 02:55 PM
Re: After re-creating lvol, bdf shows old size
Check my correction. Your commmadn should be
lvcreate -n lvol9 -L 100 /dev/vg00
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2002 02:56 PM
01-10-2002 02:56 PM
Re: After re-creating lvol, bdf shows old size
The last lvcreate error you report is because the last argument should be the VG name, not an LV name:
lvcreate -n lvol9 -L 100 /dev/vg00
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2002 03:03 PM
01-10-2002 03:03 PM
Re: After re-creating lvol, bdf shows old size
Any other suggestions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2002 03:13 PM
01-10-2002 03:13 PM
Re: After re-creating lvol, bdf shows old size
I forgot to do the newfs command.
THANKS! for all the help everybody.
Until my next quandry,
Brad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2002 03:13 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2002 03:15 PM
01-10-2002 03:15 PM
Re: After re-creating lvol, bdf shows old size
you can also do a "vgdisplay -v /dev/vg00" to see what is the vgdisplay info. Can you post a "lvlnboot -v" output. if the problem is not solved by unmounting and remounting the filesystems.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2002 03:42 PM
01-10-2002 03:42 PM
Re: After re-creating lvol, bdf shows old size
I know you've got your answer but things just seem a little odd. So, I ran thru the procedure of removing and recreating a filesystem and logical volume and have attached the output for you. Perhaps you can compare it to what you did to see if and where your procedure differed.
I just don't see how bdf kept showing the wrong info IF you did umount, lvremove, lvcreate, newfs, and mount in the correct order without errors.
Best of luck,
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2002 03:56 PM
01-10-2002 03:56 PM
Re: After re-creating lvol, bdf shows old size
Forgot the 'newfs' command...see my postscript in your original post! ;-)
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x6a2bcb60e503d6118ff40090279cd0f9,00.html
Regards!
...JRF...