Changes between Version 7 and Version 8 of TipAndDoc/HA/NFS


Ignore:
Timestamp:
Mar 25, 2011 11:46:23 PM (13 years ago)
Author:
mitty
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TipAndDoc/HA/NFS

    v7 v8  
    198198}}} 
    199199  * see [./log#lvcreate--size1.5G-ndrbdvgnfs] for detail 
     200 
     201 === ubuntu-hab === 
     202 ==== fdisk ==== 
     203 * mitty@ubuntu-hab:~$ sudo fdisk -u /dev/sdb 
     204{{{ 
     205Command (m for help): n 
     206Command action 
     207   e   extended 
     208   p   primary partition (1-4) 
     209p 
     210Partition number (1-4): 1 
     211First sector (63-4194303, default 63): 
     212Using default value 63 
     213Last sector, +sectors or +size{K,M,G} (63-4194303, default 4194303): +2000M 
     214 
     215Command (m for help): t 
     216Selected partition 1 
     217Hex code (type L to list codes): 8e 
     218Changed system type of partition 1 to 8e (Linux LVM) 
     219 
     220Command (m for help): p 
     221 
     222Disk /dev/sdb: 2147 MB, 2147483648 bytes 
     223255 heads, 63 sectors/track, 261 cylinders, total 4194304 sectors 
     224Units = sectors of 1 * 512 = 512 bytes 
     225Sector size (logical/physical): 512 bytes / 512 bytes 
     226I/O size (minimum/optimal): 512 bytes / 512 bytes 
     227Disk identifier: 0x4ab4a81c 
     228 
     229   Device Boot      Start         End      Blocks   Id  System 
     230/dev/sdb1              63     4096063     2048000+  8e  Linux LVM 
     231Partition 1 does not end on cylinder boundary. 
     232 
     233Command (m for help): w 
     234The partition table has been altered! 
     235 
     236Calling ioctl() to re-read partition table. 
     237Syncing disks. 
     238}}} 
     239 
     240 ==== pvcreate/vgcreate/lvcreate ==== 
     241 * mitty@ubuntu-hab:~$ sudo pvcreate /dev/sdb1 
     242{{{ 
     243  Physical volume "/dev/sdb1" successfully created 
     244}}} 
     245 * mitty@ubuntu-hab:~$ sudo vgcreate -s 32 vgnfs /dev/sdb1 
     246{{{ 
     247  Volume group "vgnfs" successfully created 
     248}}} 
     249 * mitty@ubuntu-hab:~$ sudo lvcreate --size 1.5G -n drbd vgnfs 
     250{{{ 
     251  Logical volume "drbd" created 
     252}}} 
     253  * see [./log#lvm2onubuntu-hab] for detail