- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to create a new volume group & chunk?
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
04-11-2004 09:13 PM
04-11-2004 09:13 PM
1) Can I hv step by step to create a new volume group? (Example volume group name is vg00)
In windows base, can I say the volume group is similar to a hard disk partition? Example c, d, e or etc
2) Can I hv step by step to create a new chunk? Actually what is different between volume group and chunk?
regards.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2004 09:21 PM
04-11-2004 09:21 PM
SolutionI think you want to create a vg ( say vg05 better) with one or more chunk(logical volumes).
Say the hdd device file is /dev/rdsk/c2t3d4 of 8 GB capacity.
# pvcreate /dev/rdsk/c2t3d4
# mkdir /dev/vg05
# mknod /dev/vg05/group c 64 0x050000
# vgcreate /dev/vg05 /dev/dsk/c2t3d4
# lvcreate -L 8192 /dev/vg05
# newfs -F vxfs -o largefiles /dev/vg00/rlvol1
# mkdir /test
# mount /dev/vg05/lvol1 /test
You have a 8 GB filesystem ready for use.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2004 09:23 PM
04-11-2004 09:23 PM
Re: How to create a new volume group & chunk?
2).
pvcreate -f /dev/rdsk/c?t?d?
pvcreate -f /dev/rdsk/c?t?d?
mkdir /dev/vg??
mknod /dev/vg??/group c 64 0x020000
vgcreate /dev/vg?? /dev/dsk/c?t?d? /dev/dsk/c?t?d?
vgchange -a y /dev/vg??
man lvm and read some books .. I can not teach u LVM in a thread !
I never heard of chunk !!! (Stripe ?) Anyway read about LVM to have an idea !
Regds,
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2004 09:26 PM
04-11-2004 09:26 PM
Re: How to create a new volume group & chunk?
Determine the hard disk where to create the VG. iocan -fnC disk will show you the device file name.
suppose you want to create the vg77 on a hard disk /dev/rdsk/c0t1d0
1. pvcreate -f /dev/rdsk/c0t1d0
2. mkdir /dev/vg77
3. mknod /dev/vg77/group c 64 0x770000
4. vgcreate /dev/vg77 /dev/dsk/c0t1d0
i think what you refer to the chunk is the file systems, for creating filesystem, you need to create logical volumes.
5. lvcreate -L 1000 /dev/vg77 will create a logical volume of 1GB (/dev/vg77/lvol1)
6. mkfs -F vxfs /dev/vg77/rlvol1 will create a vxfs filesystem
7. mkdir /test1 (creating mount point)
8. mount -F vxfs /dev/vg77/lvol1 /test1
will make the logical volume (chunk) on the hard disk usable
your c,d,e,on your windows is similar to the filesystems on your unix machine
the attachment is really excellent for a beginner to understand the concepts
with best wishes
Naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2004 09:29 PM
04-11-2004 09:29 PM
Re: How to create a new volume group & chunk?
sks
1. Use ioscan to find device file name for the new disk:
#ioscan -funC disk
2. May initialize the disk:
#mediainit -v /dev/rdsk/c0t3d0
3. Use pvcreate command to create LVM data structures needed by LVM to begin using the disk as a physical volume. If the disk was previously part of another group, you may need to use the -f option on pvcreate:
#pcreate -f /dev/rdsk/c0t3d0
The disk is now ready to be added to a new or existing volume group.
4. Create a directory /dev/vgnn for the volume group. /dev/vg00 already exists on a pre-installed system.
#mkdir /dev/vg00
5. Create control file /dev/vgnn/group. This file provides the means by which LVM kernel and LVM commands communicate within the volume group. #mknod /dev/vg00/group 64 0x010000 Where 64 is major number (Always). 0x010000 is minor number (Always ends in 0000). hh is the hexadecimal representation of the volume group number. The group files should be owner by root, with rw-r----- permissions.
6. Create the volume group and specify the physical volumes it will contain. You can assign several volumes to a group at one time.
#vgcreate /dev/vg00 /dev/dsk/c0t3d0 /dev/dsk/c0t4d0
The options on vgcreate include:
-e max_physical_extents (default=1016/8683)
-l max_logical_vols (default=255)
-p max_physical_vols (default=16)
-s physical_extent_size (default=4 MB)
7. Verify the volume group.
# vgdisplay -v /dev/vg00
# pvdisplay -v /dev/dsk/c0t3d0
# pvdisplay -v /dev/dsk/c0t4d0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2004 04:48 AM
04-13-2004 04:48 AM
Re: How to create a new volume group & chunk?
As a system admin, we configure the logical volumes (or chunks) within a volume group and it is the DBA's job to add the chunk to the database.