- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- create new desk help, please.
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
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
10-14-2002 09:54 AM
10-14-2002 09:54 AM
I am going to stop all application activity, backup the system and remove the /tmp drive.
I have a summary of the commands I would like to use followed by the information that support the commands. I do not have a test system I can test this on, only one production system so I have to make sure this works. Thanks for any suggestions I might get.
Commands I would like to use:
umount /tmp
lvremove /dev/vg00/lvol04
lvcreate -L 1000 -n lvol04 /dev/vg00
newfs -f xvfs /dev/vg00/lvol04 /dev/dsk/c1t6d0
newfs -f xvfs /dev/vg00/lvol04 /dev/dsk/c2t6d0
mount -a
#this info is already in the fstab.
fstab info:
/dev/vg00/lvol4 /tmp vxfs delaylog 0 2
bdf info:
/dev/vg00/lvol4 1048576 364238 645386 36% /tmp
vgdisplay info:
vgdisplay -v /dev/vg00 |more.
VG Name /dev/vg00
VG Write Access read/write
VG Status available
--- Physical volumes ---
PV Name /dev/dsk/c1t6d0
PV Status available
Total PE 2169
Free PE 268
Autoswitch On
PV Name /dev/dsk/c2t6d0
PV Status available
Total PE 2169
Free PE 268
Autoswitch On
LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 1024
Current LE 256
Allocated PE 512
Used PV 2
--- Logical volumes ---
LV Name /dev/vg01/lvol1
LV Status available/syncd
LV Size (Mbytes) 64756
Current LE 16189
Allocated PE 16189
Used PV 1
--- Physical volumes ---
PV Name /dev/dsk/c3t1d0
PV Name /dev/dsk/c5t0d0 Alternate Link
PV Status available
Total PE 16191
Free PE 2
Autoswitch On
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2002 10:00 AM
10-14-2002 10:00 AM
Re: create new desk help, please.
backup data (good)
lvremove (no problem)
lvcreate -L 1024 ... good so far
newfs -F vxfs .... alright
now:
since you want to mirror this to to second disk on the root volume group, and assuming you have MirrorDisk already:
lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c2t6d0
note: when you run lvremove on the original logical volume you remove, it will remove the mirror with it.
You fstab entries seem fine.
Ted
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2002 10:00 AM
10-14-2002 10:00 AM
Re: create new desk help, please.
in other words, do not use lvcreate with /dev/vg00/lvol04... use /dev/vg00/lvol4
Ted
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2002 10:03 AM
10-14-2002 10:03 AM
Re: create new desk help, please.
Ted
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2002 10:04 AM
10-14-2002 10:04 AM
Re: create new desk help, please.
So the commans should look like this?(see below)
do you extend the data before or afteryou create the new file system?
Commands:
BU Data
umount /tmp
lvremove /dev/vg00/lvol04
lvcreate -L 1000 -n lvol04 /dev/vg00
lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c2t6d0
newfs -f xvfs /dev/vg00/lvol04 /dev/dsk/c1t6d0
newfs -f xvfs /dev/vg00/lvol04 /dev/dsk/c2t6d0
mount -a
Thanks,
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2002 10:04 AM
10-14-2002 10:04 AM
Re: create new desk help, please.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2002 10:06 AM
10-14-2002 10:06 AM
Solutionlvcreate -L 1000 -m 1 -s y -n lvol04 /dev/vg00
the -s option indicates that mirrored physical extents will not be assigned to the same disks. This will mirror your new lvol with one step.. then run the newfs next
Ted
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2002 10:07 AM
10-14-2002 10:07 AM
Re: create new desk help, please.
#fuser -c /tmp
kill all processes if possible if not you will need to reboot the server and not mount /tmp on reboot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2002 10:07 AM
10-14-2002 10:07 AM
Re: create new desk help, please.
almost missed those 0's!
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2002 10:09 AM
10-14-2002 10:09 AM
Re: create new desk help, please.
Since you got (268*4=1072MB) left in vg00 you can create a "new" LV for /tmp, modify /etc/fstab and after you reboot your machine you can delete the "old" LV (ie lvol4).
# lvcreate -L 1000 -n lvol5 -m 1 /dev/vg00
==> Assuming lvol5 is not used yet.
# newfs -F vxfs /dev/vg00/rlvol5
# vi /etc/fstab
==> Replace the "old" /tmp entry marked as lvol4 with lvol5.
# /etc/shutdown -r -y 0
After the system comes up you'll have the new LV (ie lvol5) mounted onto /tmp. Now remove the old LV (ie lvol4)
# lvremove /dev/vg00/lvol4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2002 10:10 AM
10-14-2002 10:10 AM
Re: create new desk help, please.
#lvcreate -L 1000 -n lvol04 /dev/vg00 /dev/dsk/c1t6d0 .
#lvextend -m 1 /dev/vg00/lvol04 /dev/dsk/c2t6d0
# newfs -F vxfs /dev/vg00/rlvol04
YOu cna specify other option like block size etc . with -o option wiht newfs . DO a man newfs_vxfs to get more information .
Rest of the stuff are fine .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2002 10:17 AM
10-14-2002 10:17 AM
Re: create new desk help, please.
Do I have to extend the volume or leave it after I create it?
lvcreate -L 1000 -n lvol9 -m 1 /dev/vg00
newfs -F vxfs /dev/vg00/rlvol9
vi the /etc/fstab
reboot
lvremove /dev/vg00/lvol4
Thanks,
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2002 10:20 AM
10-14-2002 10:20 AM
Re: create new desk help, please.
the basic order of commands for removing and recreating:
umount
lvremove
lvcreate
newfs
update /etc/fstab
mount
the newfs command after an lvcreate will configure the file system using all space in the logical volume.. no need to extend at all. And since you have already mirrored with your lvcreate command, you have no need for the lvextend command here
Ted
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2002 10:29 AM
10-14-2002 10:29 AM