- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Adding new HD
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
05-13-2003 09:17 AM
05-13-2003 09:17 AM
Adding new HD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2003 09:32 AM
05-13-2003 09:32 AM
Re: Adding new HD
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2003 09:35 AM
05-13-2003 09:35 AM
Re: Adding new HD
# ioscan -fnC disk
==> Take note of the unused disk device path that you want to use in vg01. Assume it's c1t1d0.
# pvcreate /dev/rdsk/c1t1d0
# mkdir /dev/vg01
# mknod /dev/vg01/group c 64 0x010000
==> Minor number 0x010000 must be unique. If the only VG you have is vg00 in /dev, then the above should be unique.
# vgcreate /dev/vg01 /dev/dsk/c1t1d0
# vgdisplay -v vg01
==> Now vg01 has been created. Next step is to create your logical volume and filesystem. Say you want a 4GB vxfs filesystem mounted on /opt/oracle.
# lvcreate -L 4000 -n lvol1 /dev/vg01
==> Create a 4GB LV (lvol1).
# newfs -F vxfs /dev/vg01/rlvol1
==> Create the FS.
# mkdir /opt/oracle
# mount /dev/vg01/lvol1 /opt/oracle
The last step would be to edit your /etc/fstab file so that it gets mounted everytime the system reboots.
All the above can be easily done in SAM but getting use to command line method will help in the long run. For instruction in SAM see ..
http://www.docs.hp.com/hpux/onlinedocs/B2355-90742/B2355-90742.html
The section is "Adminstering A System: Managing DIsks and Files", click on "Managing Disks" -> "Managing Logical Volumes using SAM".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2003 09:36 AM
05-13-2003 09:36 AM
Re: Adding new HD
Then you can use vgextend to add the disk to that group, then you are good to go.
Sam will ask you all the questions you need to do.
Do this:
Add the disk.
ioscan -fn disk and/or reboot the system
run ioscan and make sure the new disk is there.
sam
disk & filesystmes
volumne groups
actions add volume group.
That will create the volume group.
Same basic path to extend.
You should however be able to do this at the command line.
Its not so hard.
If you post the /dev/dsk/c#t#d# number me or someone else can give hyou the commands.
Bill Hassell was once quoted as saying that real sysadmins don't use gui's. While not a strict adherent to this philosophy for lvm management its important to know the commands in case you ever have to do emergency maintenance without the benefit of sam.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2003 09:36 AM
05-13-2003 09:36 AM
Re: Adding new HD
Start sam
Disks and File Systems
Volume Groups
Actions -> Create
Complete the required steps. Then, press [ OK ] to perform the task.
[ Select New Volume Group Name... ] (required)
[ Select Disk(s)... ] (required)
[ Modify Default Volume-Group Options... ] (optional)
[ Configure Disk(s)... ] (optional)
[ Define New Logical Volume(s)... ] (optional)
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2003 11:18 AM
05-13-2003 11:18 AM
Re: Adding new HD
;-)
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2003 11:40 AM
05-13-2003 11:40 AM
Re: Adding new HD
But I would suggest you to do some more planning when setup file systems (since you said you have only one VG defined on the system now). It's a good practice to have only root LVs defined on vg00. All other disks can be kept on seperate VGs depends up on your requirement. In future, you can define systems with only root and mirror disks in vg00 and keep all other disks on VGs other than vg00. It will be good to take backups, recovery tapes, file system management and even during a system recovery process. Just thought of adding this ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2003 10:12 AM
05-14-2003 10:12 AM
Re: Adding new HD
***********************************************
Tim Sanko May 13, 2003 19:18 PM GMT [ 0 pts ]
I thought Bill said that anybody could be an Admin as long as they could patch the kernel with the debugger, awk and sed!!! ;-) Tim
Thank you,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2003 06:54 AM
05-19-2003 06:54 AM
Re: Adding new HD
You could use grep to find a parameter, and awk to modify a tunable, and sed to add a line to the file to add a new tunable.
It was an old timer joke. only an old admin would even try to blame it on another (really old) admin.
Tim