- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: add new disk
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
12-09-2003 02:30 AM
12-09-2003 02:30 AM
add new disk
step by step (vg, lv, etc)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 02:36 AM
12-09-2003 02:36 AM
Re: add new disk
If external, be prepared in advance for a bit of advice HP gave me: do not put an external disc drive on the same string as tape drive, CD-ROM drive, etc. as it slows the disc down and is not supported.
Also be aware of cable lengths: if you have a small number of external devices (up to 3 I believe) you can have a total of 10 feet of cable connecting them. As soon as you add a fourth device the maximum cable length goes down to 5 feet.
Once you have answered this part you will be in a position to plan VGs, LVs, etc.
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 02:37 AM
12-09-2003 02:37 AM
Re: add new disk
# sam -> disk devices -> Volume groups -> Actions and Add
From command line, you need to:
# pvcreate ..options .. PV_NAME
# mkdir /dev/vgXX
# mknod /dev/vgXX/group c 64 0x0?0000
# vgcreate /dev/vgXX PV_NAME
# vgchange -a y /dev/vgXX
# vgdisplay -v /dev/vgXX
# lvcreate -L size_in_MB /dev/vgXX (or lvextend followed by newfs or extendfs)
Read man pages for more information
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 02:38 AM
12-09-2003 02:38 AM
Re: add new disk
Well, the basics are:
pvcreate /dev/rdsk/cXtYdZ
(where cXtYdZ is the device file for the disk being used ex: c1t2d0)
Note: you might have to do a pvcreate -f /dev/rdsk/cXtYdZ if the disk has been used before.
vgcreate /dev/vgXX /dev/dsk/cXtYdZ
(where XX is the vg name ex: vg01)
lvcreate -L ### /dev/vgXX
(where ### is the size in MBs.)
newfs -F vxfs -o largefiles /dev/vgXX/rlvolX
(where rlvolX is the name of the logical volume created in previous step, also note the vxfs type file system and large files being enabled to allow files over 2GB)
mkdir /mount_point
mount /dev/vgXX/lvolX /mount_point
Hope this helps!
-Bryan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 02:41 AM
12-09-2003 02:41 AM
Re: add new disk
Totally forgot these steps before the vgcreate command:
mkdir /dev/vgXX
mknod /dev/vgXX/group c 64 0xYY0000
Note: YY is the minor number for the volume group. For example vg01 will usually have a minor number of 01.
-Bryan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 02:42 AM
12-09-2003 02:42 AM
Re: add new disk
pvcreate /dev/rdsk/c0t0d0
decide which volume group you want it in or if you want to create a new one.
If adding to an existing volume group "vgextend vggroup /dev/dsk/c0t0d0" and go to step 5. Otherwise
1) "ls /dev/vg*/group". Look at the minor numbers (they look something like 0x010000) and chose one for your new volume group that doesn't exist e.g 0x04000
2) mkdir /dev/vgmygroup
3) mknod /dev/vgmygroup/group c 64 0x04000
4) vgcreate vgmygroup /dev/dsk/c0t0d0. If the disk is very large, you might need to add a -s 8 or even a -s 16 in that vgcreate command
5) lvcreate -LXXX vgmygroup (XXX is the number of megabytes you want)
6) newfs -F vxfs /dev/vgmygroup/rlvol1 (or whatever rlvol just got created)
7) "mkdir /mynewdisk" to create a mount point
8) mount /dev/vgmygroup/lvol1 /mynewdisk
9) edit /etc/fstab accordingly
10) put on a little party hat and dance around.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 02:47 AM
12-09-2003 02:47 AM
Re: add new disk
If the disk is for a Disk array, Make sure you set the disk with unique id.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2003 02:49 AM
12-09-2003 02:49 AM
Re: add new disk
From the command line you can do this , if the disk is already added and you know the disk device name . Say for eg its is /dev/dsk/c1t0d0 then you do :
1. #pvcreate /dev/rdsk/c1t0d0
2. #If you want to include this disk in an exisitng volume group then do
#vgextend /dev/vg_name /dev/dsk/c1t0d0
Or if you want a new VG then do
#mkdir /dev/vg_name
#mknod /dev/vg_name/group c 64 0xAB0000
where AB are any unused volume group minor numbers in HEX .
#vgcreate /dev/vg_name /dev/dsk/c1t0d0 .
2. If you want to create a new logical volume on this disk the ndo
#lvcreate -n lv_name /dev/vg_name
#lvextend -L lv_size_MB /dev/vg_name/lv_name /dev/dsk/c1t0d0
if you want to extend an existing logical volume on to this disk then include this disk in that VG as explained earlier and use lvextend .
3.If you want to create a new filesystem on the new LV then do this :
#newfs -F bxfs /dev/vg_name/rlv_name .
If you extended an existing LV then don't use newfs . Istead use this :
#fsadm -F vxfs -b lv_sizeMB /mount_point .
4. If you want to mount the new LV then :
#mkdir /mount_point_name
#mount /dev/vg_name/lv_name /mount_point
the update /etc/fstab as required .