Script started on Tue Oct 18 14:18:17 2005 linuxsrvr - root - : /root ------------------------------------------------ root@linuxsrvr [/root] ------------------------------------------------ --> export PS1="-->" Tue Oct 18 14:18:47 PDT 2005 -->lvm Please supply an LVM command. Available lvm commands: Use 'lvm help ' for more information dumpconfig Dump active configuration formats List available metadata formats help Display help for commands lvchange Change the attributes of logical volume(s) lvcreate Create a logical volume lvdisplay Display information about a logical volume lvextend Add space to a logical volume lvmchange With the device mapper, this is obsolete and does nothing. lvmdiskscan List devices that may be used as physical volumes lvmsadc Collect activity data lvmsar Create activity report lvreduce Reduce the size of a logical volume lvremove Remove logical volume(s) from the system lvrename Rename a logical volume lvresize Resize a logical volume lvs Display information about logical volumes lvscan List all logical volumes in all volume groups pvchange Change attributes of physical volume(s) pvcreate Initialize physical volume(s) for use by LVM pvdata Display the on-disk metadata for physical volume(s) pvdisplay Display various attributes of physical volume(s) pvmove Move extents from one physical volume to another pvremove Remove LVM label(s) from physical volume(s) pvresize Resize a physical volume in use by a volume group pvs Display information about physical volumes pvscan List all physical volumes segtypes List available segment types vgcfgbackup Backup volume group configuration(s) vgcfgrestore Restore volume group configuration vgchange Change volume group attributes vgck Check the consistency of volume group(s) vgconvert Change volume group metadata format vgcreate Create a volume group vgdisplay Display volume group information vgexport Unregister volume group(s) from the system vgextend Add physical volumes to a volume group vgimport Register exported volume group with system vgmerge Merge volume groups vgmknodes Create the special files for volume group devices in /dev vgreduce Remove physical volume(s) from a volume group vgremove Remove volume group(s) vgrename Rename a volume group vgs Display information about volume groups vgscan Search for all volume groups vgsplit Move physical volumes into a new volume group version Display software and driver version information -->df -h Filesystem Size Used Avail Use% Mounted on /dev/cciss/c0d0p2 184G 75G 110G 41% / tmpfs 32G 8.0K 32G 1% /dev/shm -->more /etc/fstab /dev/cciss/c0d0p2 / reiserfs acl,user_xattr 1 1 /dev/cciss/c0d0p1 swap swap pri=42 0 0 devpts /dev/pts devpts mode=0620,gid=5 0 0 proc /proc proc defaults 0 0 usbfs /proc/bus/usb usbfs noauto 0 0 sysfs /sys sysfs noauto 0 0 /dev/cdrom /media/cdrom subfs fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0 /dev/fd0 /media/floppy subfs fs=floppyfss,procuid,nodev,nosuid,sync 0 0 # Install NFS mounts ############################################### -->fdisk -l Disk /dev/sda: 47 MB, 47185920 bytes 2 heads, 45 sectors/track, 1024 cylinders Units = cylinders of 90 * 512 = 46080 bytes Disk /dev/sda doesn't contain a valid partition table Disk /dev/sdb: 36.2 GB, 36203397120 bytes 64 heads, 32 sectors/track, 34526 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Disk /dev/sdb doesn't contain a valid partition table Disk /dev/sdc: 36.2 GB, 36203397120 bytes 64 heads, 32 sectors/track, 34526 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Disk /dev/sdc doesn't contain a valid partition table Disk /dev/sdd: 36.2 GB, 36203397120 bytes 64 heads, 32 sectors/track, 34526 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Disk /dev/sdd doesn't contain a valid partition table Disk /dev/sde: 36.2 GB, 36203397120 bytes 64 heads, 32 sectors/track, 34526 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Disk /dev/sde doesn't contain a valid partition table Disk /dev/sdf: 36.2 GB, 36203397120 bytes 64 heads, 32 sectors/track, 34526 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Disk /dev/sdf doesn't contain a valid partition table Disk /dev/sdg: 36.2 GB, 36203397120 bytes 64 heads, 32 sectors/track, 34526 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Disk /dev/sdg doesn't contain a valid partition table Disk /dev/sdh: 36.2 GB, 36203397120 bytes 64 heads, 32 sectors/track, 34526 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Disk /dev/sdh doesn't contain a valid partition table Disk /dev/sdi: 36.2 GB, 36203397120 bytes 64 heads, 32 sectors/track, 34526 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Disk /dev/sdi doesn't contain a valid partition table -->pvcreate /dev/sdb Physical volume "/dev/sdb" successfully created -->pvcreate /dev/sdc Physical volume "/dev/sdc" successfully created -->pvcreate /dev/sdd Physical volume "/dev/sdd" successfully created -->pvcreate /dev/sde Physical volume "/dev/sde" successfully created -->pvcreate /dev/sdf Physical volume "/dev/sdf" successfully created -->pvcreate /dev/sdg Physical volume "/dev/sdg" successfully created -->pvcreate /dev/sdh Physical volume "/dev/sdh" successfully created -->pvcreate /dev/sdi Physical volume "/dev/sdi" successfully created -->pvdisplay --- NEW Physical volume --- PV Name /dev/sdb VG Name PV Size 33.72 GB Allocatable NO PE Size (KByte) 0 Total PE 0 Free PE 0 Allocated PE 0 PV UUID J4x2pd-03M4-atKG-utv5-2Atp-COT7-XPIE7l --- NEW Physical volume --- PV Name /dev/sdc VG Name PV Size 33.72 GB Allocatable NO PE Size (KByte) 0 Total PE 0 Free PE 0 Allocated PE 0 PV UUID 5PBQ7g-Mfbc-bg7n-n5vl-9wEX-Nmc1-CJH7Nv --- NEW Physical volume --- PV Name /dev/sdd VG Name PV Size 33.72 GB Allocatable NO PE Size (KByte) 0 Total PE 0 Free PE 0 Allocated PE 0 PV UUID YMB8RB-rgmC-6iYO-X1W9-c8Qu-Qb4k-4n35uc --- NEW Physical volume --- PV Name /dev/sde VG Name PV Size 33.72 GB Allocatable NO PE Size (KByte) 0 Total PE 0 Free PE 0 Allocated PE 0 PV UUID TwBAAF-XoGX-rRQp-VkZ0-ev7W-c5gq-V0U3ik --- NEW Physical volume --- PV Name /dev/sdf VG Name PV Size 33.72 GB Allocatable NO PE Size (KByte) 0 Total PE 0 Free PE 0 Allocated PE 0 PV UUID bvftkf-0lkJ-6ach-9bn7-MoEH-zpbt-68E3Q1 --- NEW Physical volume --- PV Name /dev/sdg VG Name PV Size 33.72 GB Allocatable NO PE Size (KByte) 0 Total PE 0 Free PE 0 Allocated PE 0 PV UUID g7685M-B8h9-x1dT-x0oZ-uofX-kCgk-Jpp2dc --- NEW Physical volume --- PV Name /dev/sdh VG Name PV Size 33.72 GB Allocatable NO PE Size (KByte) 0 Total PE 0 Free PE 0 Allocated PE 0 PV UUID 2QFC2p-O4hX-cIcu-yjqD-6IwZ-Mhe3-7e3cED --- NEW Physical volume --- PV Name /dev/sdi VG Name PV Size 33.72 GB Allocatable NO PE Size (KByte) 0 Total PE 0 Free PE 0 Allocated PE 0 PV UUID bvgUmw-VMdv-8FMu-aQuc-ohuR-SJgV-BPLHma -->vgcreate vg155 /dev/sdb /dev/sdc /dev/sdd /dev/sde /dev/sdf /dev/sdg /dev/sdh /dev/sdi Volume group "vg155" successfully created -->vgdisplay --- Volume group --- VG Name vg155 System ID Format lvm2 Metadata Areas 8 Metadata Sequence No 1 VG Access read/write VG Status resizable MAX LV 0 Cur LV 0 Open LV 0 Max PV 0 Cur PV 8 Act PV 8 VG Size 269.72 GB PE Size 4.00 MB Total PE 69048 Alloc PE / Size 0 / 0 Free PE / Size 69048 / 269.72 GB VG UUID yYsVCj-VQNr-2CkE-EL2B-3Y19-lmct-AQRC4q -->lvcreate -L 269720 vg155 Logical volume "lvol0" created -->lvdisplay --- Logical volume --- LV Name /dev/vg155/lvol0 VG Name vg155 LV UUID pARqIR-xFgS-YtjB-V761-C0TL-MknJ-nAMR4l LV Write Access read/write LV Status available # open 0 LV Size 263.40 GB Current LE 67430 Segments 8 Allocation inherit Read ahead sectors 0 Block device 253:0 -->mkfs -t ext3 /dev/mapper/vg155-lv0Kol0 mke2fs 1.36 (05-Feb-2005) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 34537472 inodes, 69048320 blocks 3452416 blocks (5.00%) reserved for the super user First data block=0 2108 block groups 32768 blocks per group, 32768 fragments per group 16384 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424, 20480000, 23887872 Writing inode tables: done/2108 Creating journal (8192 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 36 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. vi /etc/fstab (add:) /dev/vg155/lvol0 /RAIDabc ext3 defaults 0 0 -->mkdir /RAIDabc -->mount -a -->df -h Filesystem Size Used Avail Use% Mounted on /dev/cciss/c0d0p2 184G 75G 110G 41% / tmpfs 32G 8.0K 32G 1% /dev/shm /dev/mapper/vg155-lvol0 260G 33M 247G 1% /RAIDabc -->date Tue Oct 18 16:42:25 PDT 2005 -->exit Script done on Tue Oct 18 16:42:26 2005